Re: Lines of code counter
Couldn't you just turn line numbers on and scroll to the bottom? This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Will Tomlinson To: CF-Talk Sent: Wed Sep 13 04:09:53 2006 Subject: Lines of code counter Anybody got a tool that'd read all the files in my neverendingcart.cfc application, and tell me how many thousands of lines of code are in it? That'd be a cool tool! Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252938 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
ROFL! I think he wants all of the files in one go, rather than just one file at a time. On 9/13/06, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] wrote: Couldn't you just turn line numbers on and scroll to the bottom? -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252939 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
thanks, but i still just get a null pointer error. that returns false for me which is just graceful error catching... did you get an array (or struct) returned? Got it. cftry cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# cfset code = f.listDirectory(d:\\wwwroot\\ryanmitchell.co.uk\\www\\) cfdump var=#code# cfcatch type=any cfoutputp#cfcatch.message#/p pCaught an exception, type = #CFCATCH.TYPE# /p br / StackTrace: br/ cfloop index = i from = 1 to = #ArrayLen(CFCATCH.TAGCONTEXT)# cfset sCurrent = #CFCATCH.TAGCONTEXT[i]# p#sCurrent[ID]# #cfcatch.Message#br Error Detail: #cfcatch.Detail#br Line: #sCurrent[LINE]#br Column: #sCurrent[COLUMN]#br Template: #sCurrent[TEMPLATE]#/p /cfloop /cfoutput /cfcatch /cftry Notice the directory being passed needs double slashes to escape them. !k -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:01 PM To: CF-Talk Subject: RE: PHP webservice returns a Null pointer error I'm getting the object dump easily with this: cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# I'm taking a look at the service itself now... !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error i couldnt get to the stage where i could use it thanks for the help, if its not asking too much, you can have a go yourself. webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl method: listDirectory parameters: dir - d:\wwwroot\ryanmitchell.co.uk\www\ i made a basic php test SOAP client, which gives: http://www.ryanmitchell.co.uk/phptest.php very frustrating!! Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252940 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error
thanks, but i still just get a null pointer error. that returns false for me which is just graceful error catching... did you get an array (or struct) returned? Got it. cftry cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# cfset code = f.listDirectory(d:\\wwwroot\\ryanmitchell.co.uk\\www\\) cfdump var=#code# cfcatch type=any cfoutputp#cfcatch.message#/p pCaught an exception, type = #CFCATCH.TYPE# /p br / StackTrace: br/ cfloop index = i from = 1 to = #ArrayLen(CFCATCH.TAGCONTEXT)# cfset sCurrent = #CFCATCH.TAGCONTEXT[i]# p#sCurrent[ID]# #cfcatch.Message#br Error Detail: #cfcatch.Detail#br Line: #sCurrent[LINE]#br Column: #sCurrent[COLUMN]#br Template: #sCurrent[TEMPLATE]#/p /cfloop /cfoutput /cfcatch /cftry Notice the directory being passed needs double slashes to escape them. !k -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:01 PM To: CF-Talk Subject: RE: PHP webservice returns a Null pointer error I'm getting the object dump easily with this: cfset f = CreateObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#f# I'm taking a look at the service itself now... !k -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: CF-Talk Subject: Re: PHP webservice returns a Null pointer error i couldnt get to the stage where i could use it thanks for the help, if its not asking too much, you can have a go yourself. webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl method: listDirectory parameters: dir - d:\wwwroot\ryanmitchell.co.uk\www\ i made a basic php test SOAP client, which gives: http://www.ryanmitchell.co.uk/phptest.php very frustrating!! Ryan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252941 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
On Saturday 09 September 2006 08:25, Massimo Foti wrote: In DW, open the find and replace dialog, then select specific tag from the search drop-down. That's a kind of functionality that I haven't seen elsewhere and can be really useful whenever you work on a tag based Why not just search in Eclipse for 'yourtagname' ? -- Tom Chiverton Helping to elementarily disseminate advanced markets This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252942 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Linux webserver
On Wednesday 13 September 2006 00:06, Russ wrote: Does anyone actually run X-Windows on a production server? I've found it to be very unstable, and in general you shouldn't run X on a production web server. I don't, but not because it's unstable (hell, my desktop is runing Xgl wobbly windows funkyness !) - it's just another service that the software doesn't need, so part of hardening the O/S is to turn it off. -- Tom Chiverton Helping to elementarily introduce internet segments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252943 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Linux webserver
On Wednesday 13 September 2006 00:01, Doug Brown wrote: Well, kind of like windows desktop interface. I am willing to learn all the command line stuff, but in my opinion it will slow down the process of managing my server if that is the only way to go. It will to begin with yes. -- Tom Chiverton Helping to simultaneously maintain synergistic customers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252944 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
Due to a tragic EOL mishap, I've only got one line of code. Oh woe is me! At least a simple file count gets the job done now... O.o On 9/13/06, James Holmes [EMAIL PROTECTED] wrote: ROFL! I think he wants all of the files in one go, rather than just one file at a time. On 9/13/06, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] wrote: Couldn't you just turn line numbers on and scroll to the bottom? -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252946 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
On Wednesday 13 September 2006 04:09, Will Tomlinson wrote: Anybody got a tool that'd read all the files in my neverendingcart.cfc application, and tell me how many thousands of lines of code are in it? The GNU tool 'wc' is what you want. -- Tom Chiverton Helping to biannually customize value-added convergence This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252945 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
PDFBox
Anyone using PDFBox to extract PDF content on CF 7 (standard)? I'm doing it on CF 6 but does anyone know of any issues with using it on 7? If anyone knows alternative solutions for extracting pdf text on 7 that would be great too :) Thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252947 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PDFBox
Do you by any chance use Oracle? Oracle Text has good tools to do this. On 9/13/06, Gareth Hughes [EMAIL PROTECTED] wrote: Anyone using PDFBox to extract PDF content on CF 7 (standard)? I'm doing it on CF 6 but does anyone know of any issues with using it on 7? If anyone knows alternative solutions for extracting pdf text on 7 that would be great too :) -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252948 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
On Saturday 09 September 2006 08:25, Massimo Foti wrote: In DW, open the find and replace dialog, then select specific tag from the search drop-down. That's a kind of functionality that I haven't seen elsewhere and can be really useful whenever you work on a tag based Why not just search in Eclipse for 'yourtagname' ? I don't want to sound rude, but it's clear to me you never tried that kind of functionality in DW. It offers much more than just finding a specific tag. Give it a try and you will see by yourself. Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252949 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PDFBox
Gareth Hughes wrote: Anyone using PDFBox to extract PDF content on CF 7 (standard)? I'm doing it on CF 6 but does anyone know of any issues with using it on 7? beside it not doing arabic/farsi unicode text it works ok under cf7 from our limited testing in july. note that hebrew appears to work ok, so it's not an RTL thing. i suppose the adobe XPAAJ lib might also work for this (though i've never tried it). ben's published a few articles/tags on using this library. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusion Reactor issues
Hello Rick, Actually ColdFusion is running within a FusionReactor container, so even when CF is overloaded you should still be able to access FR. It was designed this way. What URL are you using to access FR? Over a normal URL your webserver (IIS?) could become unresponsive when CF starts to clog up. This is why FusionReactor runs it's own backup web server, so you can always access it as long as your JAVA RUNTIME is still alive (which in this case it is). By default the FR Webserver is on port 8088, so your URL should look like this: http://your.machineName.com:8088/fusionreactor/fhtml.cfm?mode=login I also recommend setting up crash protection to limit the number of simultanious requests, requests which run for too long or use too much memory. This will help your server stay responsive. For more information on how to configure FR please take a look at: http://www.fusion-reactor.com/support.html I hope that helps! If you need more detailed information you could always email the FR support guys at [EMAIL PROTECTED] Regards, Andreas FusionReactor Sales Team === ORIGINAL MESSAGE === Maureen Barger wrote: Can you: -adjust your jvm memory settings so you have more available memory for CF? -adjust your FR settings so it doesn't kill threads, or at least allow more threads until it starts killing them off? Raise the level of the rivers, and the rocks won't be noticeable. Unfortunately FR is within the CF container, so if CF is unresponsive, FR will be too. :( Okay, however, once CF becomes responsive again, how do I get Fusion Reactor to reconnect to my instance? It seems that the only way to do so is to restart Coldfusion, which is undesirable. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252951 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
Here is one that I used before just to check it out. Right now my app has 12,849 lines Suwt! Thank you! I'll post my line count later. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252952 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Lines of code counter
Here is one that I used before just to check it out. Right now my app has 12,849 lines Ok, I just checked mine and it's NASA code as I expected. lol 21,309 lines of code in my neverendingcart.cfc app. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252953 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
Current have 31,306 lines half way through development of a project to replace a 107,000 line spaghetti monster. On 9/13/06, Will Tomlinson [EMAIL PROTECTED] wrote: Here is one that I used before just to check it out. Right now my app has 12,849 lines Ok, I just checked mine and it's NASA code as I expected. lol 21,309 lines of code in my neverendingcart.cfc app. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252954 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
On Wednesday 13 September 2006 10:23, Massimo Foti wrote: I don't want to sound rude, but it's clear to me you never tried that kind of functionality in DW. Never used DW for CFML editing, no, not after the first time I tried. Very bad experience. I'm now just as dedicated to not using as you are too using it :-) It offers much more than just finding a specific tag. Give it a try and you will see by yourself. Uh, OK, but: 1) My desktop runs Linux 2) It's too much hassle to download and install it in WINE or VMWare 3) The 'specific tag' option does more than finding by tag name ? Have you entered that into the CFEclipse issue tracker ? -- Tom Chiverton Helping to completely industrialise robust CEOs This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252955 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
Here is one that I used before just to check it out. Right now my app has 12,849 lines Mine is 15,976. I slightly modified your code which had a couple of problems: 1. it was reading all files, including images, 2. it bugs on files with no extension. 3. added extension TXT since I have multilingual strings in txt files. cfdirectory directory=C:\inetsrv\wwwroot\FAFO action=list name=mySite filter=* sort=directory recurse=yes cfset totalLines = 0 !---loop over all the files and filter on list of extensions--- cfloop query=mySite cfif type eq file cfif listLen(name, '.') GT 1 AND cfc,cfm,xml,as,sql,css,html,txt CONTAINS listGetAt(name, 2, '.') !---create an array of line items (parse by ascii carriage return and output the name of the file--- cffile action=read file=#directory#\#name# variable=curFile cfset myArray = listToArray(curFile, #Chr(13)#) cfoutput#name#br //cfoutput !---add current files line count to total--- cfset totalLines = totalLines + arrayLen(myArray) /cfif /cfif /cfloop !---output line count total--- cfoutput#totalLines#/cfoutput -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252956 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
I don't want to sound rude, but it's clear to me you never tried that kind of functionality in DW. Never used DW for CFML editing, no, not after the first time I tried. Very bad experience. I'm now just as dedicated to not using as you are too using it :-) I am not attached to use DW as it may seems. If you read the comments I posted along the years (including this thread) you can see by yourself. I currently use a mix of DW, Homesite and CFEclipse to write CFML, I think they are all missing in different areas. I actually think that the number one issue CF developers are facing is the lack of a state of the art IDE. Something equivalent to Visual Studio for ..NET, Zend Studio for PHP, IntellJ or Eclipse for Java. CFEclipse could have the potential to be that kind of tool but, in my own opinion, it's not there yet. 2) It's too much hassle to download and install it in WINE or VMWare 3) The 'specific tag' option does more than finding by tag name ? This could give you an idea, unfurtunately is missing http://livedocs.macromedia.com/dreamweaver/8/using/14_tex61.htm Have you entered that into the CFEclipse issue tracker ? It's too much hassle :-) Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252957 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
Massimo I would very much apreciate if you could add specific features that you would like to see in CFEclipse to the issue tracker (http://trac.cfeclipse.org) All you need to do is register and add some ideas of functionality that its missing and I shall have a look and see what I can do. Regards Mark Drew On 9/13/06, Massimo Foti [EMAIL PROTECTED] wrote: I don't want to sound rude, but it's clear to me you never tried that kind of functionality in DW. Never used DW for CFML editing, no, not after the first time I tried. Very bad experience. I'm now just as dedicated to not using as you are too using it :-) I am not attached to use DW as it may seems. If you read the comments I posted along the years (including this thread) you can see by yourself. I currently use a mix of DW, Homesite and CFEclipse to write CFML, I think they are all missing in different areas. I actually think that the number one issue CF developers are facing is the lack of a state of the art IDE. Something equivalent to Visual Studio for ..NET, Zend Studio for PHP, IntellJ or Eclipse for Java. CFEclipse could have the potential to be that kind of tool but, in my own opinion, it's not there yet. 2) It's too much hassle to download and install it in WINE or VMWare 3) The 'specific tag' option does more than finding by tag name ? This could give you an idea, unfurtunately is missing http://livedocs.macromedia.com/dreamweaver/8/using/14_tex61.htm Have you entered that into the CFEclipse issue tracker ? It's too much hassle :-) Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252958 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: setting info in an application
I have a directory without an application file where there is Why not just write out to a 'includethistext.txt' file on the protected form's action, ideally outside the webroot, but if all you need is protection you can do it in the protected directory. Then on the unprotected form, read that file in using CFFILE from the location that you know you wrote it out to and then display it on the unprotected form. That way, if the application goes down, when it comes back up, it still has the file to read from. I feel I'm missing something in your explanation though. No, I don't think that you're missing anything. I was thinking of includes and application variables and hadn't used cfFile in quite a while so I didn't think of it. Is there any reason why I shouldn't just write out a .cfm so that I can easily include it and that can designate multiple variables instead of 1 piece of text. I find it talking over the project that there's probably 3 pieces of text. thank you. daniel ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252959 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Lines of code counter
Wow, after almost 5 years of developing reports, web systems, document imaging, etc, I am over 650,000 lines of code on my production box. Granted, some was done many years ago and I'm not TOO proud of... but it still counts =) Chris -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 7:27 AM To: CF-Talk Subject: Re: Lines of code counter Here is one that I used before just to check it out. Right now my app has 12,849 lines Mine is 15,976. I slightly modified your code which had a couple of problems: 1. it was reading all files, including images, 2. it bugs on files with no extension. 3. added extension TXT since I have multilingual strings in txt files. cfdirectory directory=C:\inetsrv\wwwroot\FAFO action=list name=mySite filter=* sort=directory recurse=yes cfset totalLines = 0 !---loop over all the files and filter on list of extensions--- cfloop query=mySite cfif type eq file cfif listLen(name, '.') GT 1 AND cfc,cfm,xml,as,sql,css,html,txt CONTAINS listGetAt(name, 2, '.') !---create an array of line items (parse by ascii carriage return and output the name of the file--- cffile action=read file=#directory#\#name# variable=curFile cfset myArray = listToArray(curFile, #Chr(13)#) cfoutput#name#br //cfoutput !---add current files line count to total--- cfset totalLines = totalLines + arrayLen(myArray) /cfif /cfif /cfloop !---output line count total--- cfoutput#totalLines#/cfoutput -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252960 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: setting info in an application
No, I don't think that you're missing anything. I was thinking of includes and application variables and hadn't used cfFile in quite a while so I didn't think of it. Is there any reason why I shouldn't just write out a .cfm so that I can easily include it and that can designate multiple variables instead of 1 piece of text. I find it talking over the project that there's probably 3 pieces of text. I just used a *.txt without much though other than it was mentioned that it was to hold text. There would be no problem writing out to a *.cfm file and setting variables to be used in the unprotected form via cfinclude. Once caveat is that if you write out to a *.cfm, then CF will interpret that and you may have to ensure strict security to ensure that no malicious CFML code can ever enter that file. Cheers ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252961 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Lines of code counter
On Wednesday 13 September 2006 12:27, Claude Schneegans wrote: Here is one that I used before just to check it out. Right now my app has 12,849 lines Isn't find . -name '*cfc' -o -name '*cfm' -o -name '*xml' -o -name '*as' -o -name '*sql' -o -name '*css' -o -name '*html' -o -name '*txt' | xargs wc -l|tail -1 much, much quicker ? -- Tom Chiverton Helping to interactively improve efficient CEOs This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252962 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Holy crap I like CFEclipse!
On Wednesday 13 September 2006 12:40, Massimo Foti wrote: I actually think that the number one issue CF developers are facing is the lack of a state of the art IDE. Something equivalent to Visual Studio for ..NET, Zend Studio for PHP, IntellJ or Eclipse for Java. I agree - and this isn't a new problem - ever since about CFMX6 Homesite has got less and less usefull compaired to JEdit, Eclipse or other products that *have* moved forward. -- Tom Chiverton Helping to synergistically innovate dot-com bandwidth This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252963 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Strange Behavior on Local PC
cfform action=temp.cfm method=post Address: cfinput type=text name=address size=40 maxlength=50 required=yes message=Please enter your address validateat=onServer input type=submit value=Submit Form /cfform When I submit the form without entering anything in the field, I should get a CF generated error message that the form entry is incomplete. Code behaves properly on my test and production server, but not my local machine running Win XP SP2. Instead of displaying this error, it displays nothing. And I really mean nothing, a completely blank page. Viewing the source shows the same thing, nothing. If I change the validateat to onSubmit it behaves properly, with a Javascript error. Probably a stupid suggestions, but... have you submitted the form both by hitting Enter key and by actually clicking the submit button? Years ago I used to see this behavior submitting forms that have only a single field other than the submit, where certain circumstances will cause the field to not post. This is not a CF issue. I can't remember whether it was an IE-specific thing (along the lines of how IE doesn't pass the name of the submit button when enter key is used to submit). Cheers, Kris ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252964 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
I'll throw in another vote for MG:Unity. I've built applications using Mach-II, and Model-Glue seems cleaner and easier. But that's just me ... Either works well for application building. I will say that MG makes it so simple to separate pieces of your presentation that I'm currently using it for what is essentially a static site, just to keep the pieces of layout and content discrete. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252965 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Linux webserver
You could always install it and default the system to run level 3 Russ wrote: Does anyone actually run X-Windows on a production server? I've found it to be very unstable, and in general you shouldn't run X on a production web server. You will need to learn command line to administer those servers. Some tasks can be automated using webmin or Plesk or something, but eventually you'll have to do some command line stuff. Russ -Original Message- From: Munson, Jacob [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 6:58 PM To: CF-Talk Subject: RE: Linux webserver X Windows is the basis for the graphic shells that come with most Linux Distros. The popular ones are KDE and Gnome, which are both based on X Windows. Personally I like KDE. It has a lot of good sys admin applets, that sometimes help where the distro's tools leave off. -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:29 PM Has anyone here used X Windows on their linux systems? Good bad or ugly? This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252966 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Holy crap I like CFEclipse!
The one thing I can absolutely guarantee is that the closer it gets to being there the less and less I will use it, that's for sure! Thanks, Ken Ferguson 214.636.6126 -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 6:40 AM To: CF-Talk Subject: Re: Holy crap I like CFEclipse! I don't want to sound rude, but it's clear to me you never tried that kind of functionality in DW. Never used DW for CFML editing, no, not after the first time I tried. Very bad experience. I'm now just as dedicated to not using as you are too using it :-) I am not attached to use DW as it may seems. If you read the comments I posted along the years (including this thread) you can see by yourself. I currently use a mix of DW, Homesite and CFEclipse to write CFML, I think they are all missing in different areas. I actually think that the number one issue CF developers are facing is the lack of a state of the art IDE. Something equivalent to Visual Studio for ...NET, Zend Studio for PHP, IntellJ or Eclipse for Java. CFEclipse could have the potential to be that kind of tool but, in my own opinion, it's not there yet. 2) It's too much hassle to download and install it in WINE or VMWare 3) The 'specific tag' option does more than finding by tag name ? This could give you an idea, unfurtunately is missing http://livedocs.macromedia.com/dreamweaver/8/using/14_tex61.htm Have you entered that into the CFEclipse issue tracker ? It's too much hassle :-) Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252967 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: compacting mssql tables.
I've found that the best way is to do two commands: DBCC CHECKIDENT (authors, RESEED, 0) DBCC CHECKIDENT (authors, RESEED) The first sets the auto-increment number to zero (then it counts up till it finds an open number), and the second moves the auto-increment beyond the largest existing value. Doing only one or the other wasn't as good... if there are any gaps in your existing auto-increment values then doing the first one alone will eventually cause primary key violations (assuming the auto-increment field is a primary key) Mark -Original Message- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:12 AM To: CF-Talk Subject: RE: compacting mssql tables. Daniel, Hi there, rather than recreate a table I would like to compact it, so the increment seed counter refreshes starting at 1. Is there a way to do this? You've got a couple of options. 1) You can use TRUNCATE TABLE authors to wipe the table and restore the identity seed. 2) Use DBCC CHECKIDENT(authors, RESEED, 1) to reset the seed to 1 (or any number you want to reseed to.) NOTE: The table name in the above examples is authors. If you use the DBCC CHECKINDENT w/RESEED option, just make sure you pick a starting seed *greater than* the highest identity value in the table. (If you've deleted all the rows, this isn't an issue.) -Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252968 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Framework
I'm wondering if anyone can make any recommendations on a good book on Model Glue, as well as some of the other popular frameworks. I've never worked with any of them and I'm thinking about taking the plunge. On 9/13/06 9:19 AM, Tom McNeer [EMAIL PROTECTED] wrote: I'll throw in another vote for MG:Unity. I've built applications using Mach-II, and Model-Glue seems cleaner and easier. But that's just me ... Either works well for application building. I will say that MG makes it so simple to separate pieces of your presentation that I'm currently using it for what is essentially a static site, just to keep the pieces of layout and content discrete. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252969 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Lines of code counter
My text editor has line numbering features. SURELY whatever editor you're using has the same thing. Even Dreamweaver's code view has line numbering. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 10:10 PM To: CF-Talk Subject: Lines of code counter Anybody got a tool that'd read all the files in my neverendingcart.cfc application, and tell me how many thousands of lines of code are in it? That'd be a cool tool! Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252970 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Odd installation issue
I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252971 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Framework
I'd also like to know... books or online resources. -Original Message- From: Charles Sheehan-Miles [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:34 AM To: CF-Talk Subject: Re: Framework I'm wondering if anyone can make any recommendations on a good book on Model Glue, as well as some of the other popular frameworks. I've never worked with any of them and I'm thinking about taking the plunge. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252972 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: setting info in an application
Once caveat is that if you write out to a *.cfm, then CF will interpret that and you may have to ensure strict security to ensure that no malicious CFML code can ever enter that file. Yeah that was a fear of mine. I have the directory protected but I suppose all protections can be worked-around. Thank you for your help. daniel ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252973 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Odd installation issue
Do you have Norton Anti-Virus installed on this server? If you do, turn that beast off until install is complete. Teddy On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252974 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Odd installation issue
Nope, no NAV running. Though I would expect it to cause problems before this point, but not AT this point. Once you get to the point where you're in the web browser hitting the administrator, I'd expect no problems out of an av scanner. Thanks, Ferg -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:17 AM To: CF-Talk Subject: Re: Odd installation issue Do you have Norton Anti-Virus installed on this server? If you do, turn that beast off until install is complete. Teddy On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252975 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT Database design
Thank you all for the reply. I think I will go with the normalized approach. One master table and then a separate table for each type of event. Regards Victor On 9/12/06, Tom Kitta [EMAIL PROTECTED] wrote: Just don't forget that its faster to query DB directly then use a View (not by much) - rather then creating a view invest your time into a stored procedure(s). Should you use Stored Proc instead of straight SQL - well if you do a lot of querying most likely yes, if not then you may go with ad hoc SQL. -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:54 PM To: CF-Talk Subject: Re: SOT Database design Knowing that future event types may be added, I vote for option 1. It feels wrong to have have a bunch of sometimes unnecessary fields. If you're on MSSQL (probably doable in other DBs, but I wouldn't know), you can set up 'views' which look like a table to CF, but do the join you are talking about. On 9/12/06, Tom Kitta [EMAIL PROTECTED] wrote: With the example you describe you can get away with a single table unless you predict changes in the future or application revolves around these events etc. Example: ColdFusion error logger - logs different ColdFusion errors. You can just have one error table and record all possible error properties that CF can throw even through non-SQL error will not have SQL info in them. I use single table and don't even bother recording most events in separate fields. On the other hand more database normalized approach would be to have more than one table - for example event master table, linked to event type and say event line item table with event line item type table. 4 tables - you can model all different event types now - normalized ... but does you application need this? In short if the events are important to the application, its central part, do the normalized approach. If they are just a side thing and your application development budget is not through the roof, you can settle down for one table approach (if the events are not very disjoint - otherwise you have no choice). TK -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 4:14 PM To: CF-Talk Subject: SOT Database design Hi, I have a database design question. I have to model a db to capture multiple types of events. While all of them are events the information needed to be captured for each subcategory of event is quite different. I think there are (at least) two ways of doing it: 1. Have a master event table that captures all the information that is common to all events and then have other tables that capture information that is specifically to each category linked to the master table. 2. Use just one table to capture all the information needed for all types of events. Not sure which one will be the best approach from a point of view of speed and maintenance. In the first case I will need a joint between the tables to retrieve all the info about an event, but has the advantage that if a new event type is required I can add it without modifying the existing code. In the second case no joint, so easier retrieval but maybe a little bit more involved if I need to expend it. Anyone has any suggestions? Thanks Victor PS Platform will be CFMX 7.x, MS-SQL 2005 and I estimate about 5k events per year with about 45-50 columns if using just one table ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252976 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
On 9/13/06, Che Vilnonis [EMAIL PROTECTED] wrote: I'd also like to know... books or online resources. No books yet. Online stuff only. Sample apps seem to be more plentiful than anything. Depending on your background, the trickiest part of either MG or Mach II will be the OO side of it. Learning how to structure the backend side (i.e., model) will take some trial and error. The sample apps are good for this. Any official documentation is on the respective websites for Model Glue (http://model-glue.com/) and Mach II (http://www.mach-ii.com/). Docs are also included in the download. Join the lists for each if you have questions and to follow developments. Sean Corfield has sample apps in both. So does Brian Kotek. Matt Woodward and Peter Farrell are the guys for Mach II. Go to their blogs and filter by category. Also see MachBlog.org for full blown blog built in MachII. Probably the best tutorial to get you going in Model Glue is Raymond Camden's. This is a pre-Unity tutorial, but I would actually recommend first learning the pre-Unity version. That way you are focused only on the MG framework. Then learn ColdSpring and Reactor. Then see how Joe Rinehart took the three and created Unity. FYI - Mach II also plays well with ColdSpring and Reactor. The Mach II guys have decided not to incorporate those directly into that framework, but to do so yourself is quite easy. Brian has his sample bookstore app in this. I can't remember if Sean did M2/CS/Reactor or not. Rob Gonda has AJAX examples in both MG and M2 Use google to search on names mentioned -- Matt Williams It's the question that drives us. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252977 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Odd installation issue
I have had NAV stop at the point speak of it. NAV has a habit of thinking java changes are virus related. Other than NAV, I have not seen a stopping point at the configuration before. Typically if you get the configuration after deployment, your installation was successful enough to execute CFML correctly. Sorry, Teddy On 9/13/06, Ken Ferguson [EMAIL PROTECTED] wrote: Nope, no NAV running. Though I would expect it to cause problems before this point, but not AT this point. Once you get to the point where you're in the web browser hitting the administrator, I'd expect no problems out of an av scanner. Thanks, Ferg -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:17 AM To: CF-Talk Subject: Re: Odd installation issue Do you have Norton Anti-Virus installed on this server? If you do, turn that beast off until install is complete. Teddy On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252978 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: PHP webservice returns a Null pointer error
I just run this example this morning and I received and array [empty] result. cfset testObj = createObject(webservice,http://www.ryanmitchell.co.uk/rtCMS.php?wsdl;) cfdump var=#testObj# cfset testDir = testObj.listDirectory(d:\\wwwroot\\ryanmitchell.co.uk\\www\\) cfdump var=#testDir# -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252979 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
If I may take a brief break from the admittedly well-deserved praise for MG:U and discuss why I am choosing not to use it. I was using MG 1.1 but I have decided to switch to Mach ii because I, personally, am not fond of the integrated MG:U/Reactor. I know you can use MG without Reactor, but that doesn't seem to be the focus of it (and I know I have seen posts mentioning that Reactor can impact your load times unless you specifically disable it in MG:U). I have on my blog expressed my dislike of three things that you need to consider when choosing MG:U (some of which specifically relate to the Reactor integration). One is the active record pattern, which Reactor uses. I think the active record pattern reduces the flexibility of your application - I always use the example that if you decide that Reactor is too much of a drag on your site's performance, you will have a hell of a time ripping it out or trying to recreate aspects of it. I also am not fond of scaffolds, as I think in most cases they aren't very useful - however they are totally optional I suppose so I am not going to make a big fuss about them. Lastly, I just don't think Reactor is there yet. It is a great concept that Doug has put a lot of work into, but it seems to me that enormous scope and complexity has caused it to be error plagued. I am on the list and I often feel inundated with Reactor issues. Personally, I have chosen to move to Mach ii. I believe it is a solid framework and isn't all that different from straight MG (i.e. like the 1.1days) - mostly some verb changes. I like that it wants to be a solid framework and only that. If you want added functionality, there are a number of plugins available from the community (and some pre-packaged but not pre-loaded). I am also finding it is not as complex as it is portrayed - I compare it to driving stick while MG:U is automatic. I prefer stick...I like the fine tuned control it gives you. Anyway, as this post is full of MG:U fans, I am not ripping on MG:U or trying to start some framework flame war. I just think that you need to get past the hype a bit when choosing a framework. This may mean that you still choose MG:U, but it is worth considering the alternatives (Mach ii, Fusebox and ColdBox). -- - Brian Rinaldi blog - http://www.remotesynthesis.com/blog CF Open Source List - http://www.remotesynthesis.com/cfopensourcelist Boston CFUG - http://www.bostoncfug.org ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252980 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFC question
Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252981 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Odd installation issue
That has been my experience every other time too. This is the first time I've ever had any issue with installation and that's a LOT of installations! I'll try disabling everything else that's running on the box that I can disable and see if I can get it to go past that step. The strangest thing is that it serves CF pages just fine; it's just the admin that I can't get into. Surely there should be a method for making an end-run around that bit and configuring anything that it missed by hand? I was hoping I'd get someone post who had this exact same problem last week and fixed it by doing x. No such luck though, huh? Thanks, Ken Ferguson 214.636.6126 -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:44 AM To: CF-Talk Subject: Re: Odd installation issue I have had NAV stop at the point speak of it. NAV has a habit of thinking java changes are virus related. Other than NAV, I have not seen a stopping point at the configuration before. Typically if you get the configuration after deployment, your installation was successful enough to execute CFML correctly. Sorry, Teddy On 9/13/06, Ken Ferguson [EMAIL PROTECTED] wrote: Nope, no NAV running. Though I would expect it to cause problems before this point, but not AT this point. Once you get to the point where you're in the web browser hitting the administrator, I'd expect no problems out of an av scanner. Thanks, Ferg -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:17 AM To: CF-Talk Subject: Re: Odd installation issue Do you have Norton Anti-Virus installed on this server? If you do, turn that beast off until install is complete. Teddy On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252982 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC question
So you have the original value maybe? Ade -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: 13 September 2006 15:54 To: CF-Talk Subject: CFC question Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252985 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFC question
On 9/13/06, Victor Moore [EMAIL PROTECTED] wrote: Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? In that example, variables.myVar is not *local*. It's *global* to the CFC such that *any* method in that CFC has access to its value. Now, if the code said: cfset var myVar = arguments.someArg / then that might just be for creating a short-hand reference to the value. In CFCs, the variables scope is global, meaning that any method of the CFC (and any sub-classes, by the way), has access to its value. If you want a truly local variable for a method, use the var setting, as noted above. Regards, Dave. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252986 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFC question
I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? To make it persistant in the lifetime of the CFC See Ray Camden's site for a explaniation of the scopes within a CFC which says it way better than I could. http://ray.camdenfamily.com/downloads/cfcscopes.pdf ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252988 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC question
Most likely so that if someone changes the argument name you only have to change it once, instead of each time that it appears inside of the function. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:54 AM To: CF-Talk Subject: CFC question Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252983 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Linux webserver
On Wednesday 13 September 2006 14:21, Jake Churchill wrote: You could always install it and default the system to run level 3 This still leaves the executables around though, of course. -- Tom Chiverton Helping to appropriately reinvent world-class channels This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252984 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFC question
Syntax like that is usually used within an init() method to set a passed variable to the CFCs global variable scope to be used by other methods. When a CFC is cached or called outside of a one shot invoke, this is a must to prevent having to pass the variable in again and again. For example, someone would do the following: CFSET objectreference=Createobject('component', 'testobject').init('datasourcename') CFSET objectreference.getuser(userid) In the second line, there is no need to send in the datasource name as it was sent in when the object was created. Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252987 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PDFBox
Cool, thanks for the info Paul. I'll give it a try then. And no James, unfortunately not using Oracle. Thanks for the heads up though. Cheers - Original Message - From: Paul Hastings [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, September 13, 2006 10:32 AM Subject: Re: PDFBox Gareth Hughes wrote: Anyone using PDFBox to extract PDF content on CF 7 (standard)? I'm doing it on CF 6 but does anyone know of any issues with using it on 7? beside it not doing arabic/farsi unicode text it works ok under cf7 from our limited testing in july. note that hebrew appears to work ok, so it's not an RTL thing. i suppose the adobe XPAAJ lib might also work for this (though i've never tried it). ben's published a few articles/tags on using this library. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252989 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC question
Typically if you are doing manipulation of the value, you don't want to alter the input value, but rather a copy of it. Cfset var firstName = Trim(arguments.firstname) / Vs Cfset arguments.firstName = Trim(arguments.firstname) / If you're not manipulating it further, then it might be a bit redundant at first: Cfset var localfirstName = arguments.firstname / But by writing it this way, you make sure that if further down the road, if you find out that whitespace is being added to the end of certain firstnames, and you want to add the trim operation, you don't have to add it for every reference to arguments.firstname. So it's a best practice in that it allows you for more maintainable code. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail: Â Â Â [EMAIL PROTECTED] -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:54 AM To: CF-Talk Subject: CFC question Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252990 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
OT: log files contain screen resolution
Sorry for the off topic, but I cant find an answer so far. Can Apache's log files pick up the users screen resolution? Can any web servers's log files? Or is this something you need to add yourself to track? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252991 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFC question
This just came up on something for me this morning and I read that by doing this, it allows your .init() function to access the variables. Ryan, Terrence wrote: Typically if you are doing manipulation of the value, you don't want to alter the input value, but rather a copy of it. Cfset var firstName = Trim(arguments.firstname) / Vs Cfset arguments.firstName = Trim(arguments.firstname) / If you're not manipulating it further, then it might be a bit redundant at first: Cfset var localfirstName = arguments.firstname / But by writing it this way, you make sure that if further down the road, if you find out that whitespace is being added to the end of certain firstnames, and you want to add the trim operation, you don't have to add it for every reference to arguments.firstname. So it's a best practice in that it allows you for more maintainable code. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail: [EMAIL PROTECTED] -Original Message- From: Victor Moore [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:54 AM To: CF-Talk Subject: CFC question Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252992 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFC question
Good points and nice doc by Ray. I didn't know about the variables scope being available to the whole cfc. Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252993 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: upgradeing jar file in coldfusion server
I guess it depends on your situation. This is not a definitive list, but these are the things I found were completely or somewhat broken with 1.5: - ldap over ssl - web services - verity admin To us that loss of functionality was better than Coldfusion randomly crashing with the 1.4 jvm. (documented linux jvm specific bug) Leon -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 8:08 PM To: CF-Talk Subject: Re: upgradeing jar file in coldfusion server Leon Oosterwijk wrote: Eventhough Adobe doesn't support CFMX on 1.5 it does work, with some minor inconveniences. i don't know if i'd call croaking that server's webservices a minor inconvenience. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252994 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: log files contain screen resolution
Sorry for the off topic, but I cant find an answer so far. Can Apache's log files pick up the users screen resolution? Can any web servers's log files? Or is this something you need to add yourself to track? No, it's client side information. You could code some javascript that fired on page load that polled a log service your wrote passing the user's current screen resolution when the page initially loads. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252995 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: log files contain screen resolution
For the webserver to capture it, I think it would have to be sent with an HTTP request (e.g. as a CGI variable) which I don't think it is. We caputre this information via JavaScript by setting the JS variables screen.width and screen.height into a hidden form variable and then processing it on the server. Jon On 9/13/06, Chad Gray [EMAIL PROTECTED] wrote: Sorry for the off topic, but I cant find an answer so far. Can Apache's log files pick up the users screen resolution? Can any web servers's log files? Or is this something you need to add yourself to track? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252996 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: log files contain screen resolution
Yes, they can, using the js file provided with urchin (and probably google analytics). Urchin has js that forces a download of a gif to which it appends the screen resolution among other things. Russ -Original Message- From: COLLIE David [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 11:34 AM To: CF-Talk Subject: RE: log files contain screen resolution Sorry for the off topic, but I cant find an answer so far. Can Apache's log files pick up the users screen resolution? Can any web servers's log files? Or is this something you need to add yourself to track? No, it's client side information. You could code some javascript that fired on page load that polled a log service your wrote passing the user's current screen resolution when the page initially loads. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252997 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: log files contain screen resolution
Yes, they can, using the js file provided with urchin (and probably google analytics). Urchin has js that forces a download of a gif to which it appends the screen resolution among other things. Hahah splitting hairs here but that is just Javascript trickery using a gif file that will totally skew your log file analysis unless you are aware that it is happening. Still client side isn't it? :) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252998 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Framework
To add my 2c, Denny, Reactor isn't really a framework. It is a way to automate the persistence of objects. In OO programming, you often create DAOs and Gateways (data access objects and table data gateways) to abstract your database access code for single records and recordsets. Firstly, I have some issues with the idea of Gateays returning queries, but that is neither here nor there. Reactor just auto creates those. You probably want to create a set of service objects (one per object - singletons created using a factory or ColdSpring if you want to be fancy!) for doing all of the business logic and the business objects themselves will often have logic (Product.getPrice() may calculate price based on your discounts or whatever). Then you need a controller which you can write yourself or use Model Glue (classic - not Unity!) or Mach -II for. If you are only getting started with OO, I'd thorough recommend checkout out all of the great blog postings on OO programming and would start there. I think it's quite a leap from procedural CF straight to MG Unity, and if yu had to jump straight to a framework, I'd consider mach-ii or Model Glue without Reactor and ColdSpring. ColdSpring solves a real probvlem, but have the problem first and then enjoy the relief i provides. Reactor also speeds development, but I don't think you'll fully understand the trade offs until you've written a few DAOs and agonized over where to put the code for joined objects (how you you get all of the Users in a Company - CompanyService.getUsers()? and if so, what DAO does it call - CompanyDAO or UserDAO). Once you've played with that for a while, you'll be able to choose between Reactor, Transfer (which is looking very interesting - Mark keep up the great work and the shameless plugs!), cfhibernate, or rolling your own ORM. Best Wishes, Peter ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252999 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
To add my 2c, Denny, Reactor isn't really a framework. It is a way to automate the persistence of objects. In OO programming, you often create DAOs and Gateways (data access objects and table data gateways) to abstract your database access code for single records and recordsets. Firstly, I have some issues with the idea of Gateays returning queries, but that is neither here nor there. Reactor just auto creates those. You probably want to create a set of service objects (one per object - singletons created using a factory or ColdSpring if you want to be fancy!) for doing all of the business logic and the business objects themselves will often have logic (Product.getPrice() may calculate price based on your discounts or whatever). Then you need a controller which you can write yourself or use Model Glue (classic - not Unity!) or Mach -II for. If you are only getting started with OO, I'd thorough recommend checkout out all of the great blog postings on OO programming and would start there. I think it's quite a leap from procedural CF straight to MG Unity, and if yu had to jump straight to a framework, I'd consider mach-ii or Model Glue without Reactor and ColdSpring. ColdSpring solves a real probvlem, but have the problem first and then enjoy the relief i provides. Reactor also speeds development, but I don't think you'll fully understand the trade offs until you've written a few DAOs and agonized over where to put the code for joined objects (how you you get all of the Users in a Company - CompanyService.getUsers()? and if so, what DAO does it call - CompanyDAO or UserDAO). Once you've played with that for a while, you'll be able to choose between Reactor, Transfer (which is looking very interesting - Mark keep up the great work and the shameless plugs!), cfhibernate, or rolling your own ORM. Best Wishes, Peter ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253000 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Image resizing
imageCFC (I forget who did it, maybe rick?) Imagemagick from alagad.com Russ -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 22:44 To: CF-Talk Subject: Image resizing I know I've seen this topic posted before but I need some input. I need an image resizing program, preferably written in Java that has the ability to resize images but retain the quality. What I currently use is a cfx tag programmed in C++. It does a good job but the smaller images always come out pixelated which I cannot have. Any suggestions? There's also Massimo Foti's tmt_img.cfc. It does a fairly good job of image resizing. You can look at the api and download it at http://www.olimpo.ch/tmt/cfc/tmt_img/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253001 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Linux webserver
Executables are usually not a problem... although if they are around and they have security holes... In general, unless you're using linux as a desktop, I've never found a need for X-Windows. Most programs need to be installed from the command line anyway. Servers run a lot more stable and faster without any sort of GUI present. This is one of the reasons that linux beats the pants off of windows. Webmin is more then enough and plesk makes things too easy for my taste. Plesk also doesn't give you as much control as webmin does. You should probably get a semi-dedicated box to play around with, get it with webmin if possible (if not the installation if fairly simple as far as I remember). Then start playing around with it through ssh, and learn the commands. Maybe pick up a linux book somewhere. My favorite flavor is Redhat, but I haven't really played around with other flavors, so perhaps someone can chime in here. Russ -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:58 AM To: CF-Talk Subject: Re: Linux webserver On Wednesday 13 September 2006 14:21, Jake Churchill wrote: You could always install it and default the system to run level 3 This still leaves the executables around though, of course. -- Tom Chiverton Helping to appropriately reinvent world-class channels This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253002 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PHP webservice returns a Null pointer error (SOLVED)
yeah, i opted for another php SOAP library (nuSOAP), and with a bit of tweaking i've got it working. thanks for all the help I just run this example this morning and I received and array [empty] result. cfset testObj = createObject(webservice,http://www.ryanmitchell.co. uk/rtCMS.php?wsdl) cfdump var=#testObj# cfset testDir = testObj.listDirectory(d:\\wwwroot\\ryanmitchell.co. uk\\www\\) cfdump var=#testDir# -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253003 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFDJ?
I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253004 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDJ?
http://coldfusion.sys-con.com/ ? On 9/13/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253005 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFC question
The variables scope, when used within a CFC, is a protected private scope (only accessible from within the CFC). Within the head of your object (after the cfcomponent tag, but prior to any functions) you may have a block like this: cfscript variables.instance = structnew(); variables.instance.firstname = ; variables.instance.lastname = ; variables.instance.age = 0; /cfscript Then you might have an init method like this: cffunction name=init access=public output=false returntype=person hint=This initializes your person object cfreturn this /cffunction You would then get or set the properties of your object using getter and setter methods, which can access the private variables scope: cffunction name=setFirstName access=public output=false returntype=void hint=Sets the firstname property of this instance cfargument name=firstname type=string required=true hint=firstname to set in this instance of person cfset variables.instance.firstname = arguments.firstname /cffunction cffunction name=getFirstName access=public output=false returntype=string hint=Returns the firstname of this person instance cfreturn variables.instance.firstname /cffunction So, within your calling template you might have: cfset variables.personObj = createobject(component,person).init() After which, the following attempt to access it's properties would fail/error: #variables.personObj.firstname# But using this would give you access: #variables.personObj.getFirstName()# Hope this helps:) Cutter _ http://blog.cutterscrossing.com Victor Moore wrote: Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253007 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFDJ?
On 9/13/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Not sure what URL you're trying, but this works fine for me (including the links to each article): http://coldfusion.sys-con.com/ Regards, Dave. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253009 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDJ?
Not sure, but I know it was becoming subject to very low traffic and Spam (something you do sterling job of keeping out!) This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: [EMAIL PROTECTED] To: CF-Talk Sent: Wed Sep 13 17:37:38 2006 Subject: CFDJ? I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253006 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFDJ?
Oh sorry, the LIST. My fault for not reading properly. On 9/14/06, James Holmes [EMAIL PROTECTED] wrote: The site came up for me: http://coldfusion.sys-con.com/ On 9/14/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253010 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFDJ?
They probably forgot to renew the domain name. But good news, the JDJ domain has been renewed for the next 150 years. On 9/13/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253012 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Boolean use of Recordcount
It is NOT the same as saying, as long as there is *one* record returned, true. Right? Correct, any positive integer evaluates as true in a Boolean expression. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253018 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Boolean use of Recordcount
cfif qMyQuery.Recordcount/cfif is basically the same as saying, as long as there's at least one record returned, true. This returns true and steps into the CFIF if the recordcount is 1, 2, 300... It is NOT the same as saying, as long as there is *one* record returned, true. Right? -- Jeff Small LHWH Advertising Myrtle Beach, SC 29577 843-448-1123 Ext 254 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253011 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFDJ?
I used to be on it (still am, at least I didn't unsubscribe), but no messages have come through for months, maybe even a year. I was curious one day and sent a message to the list address, and I got a delivery failure of some sort. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:38 AM I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253013 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDJ?
ooops...me too :\ On 9/13/06, James Holmes [EMAIL PROTECTED] wrote: Oh sorry, the LIST. My fault for not reading properly. On 9/14/06, James Holmes [EMAIL PROTECTED] wrote: The site came up for me: http://coldfusion.sys-con.com/ On 9/14/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Michael Dinowitz President: House of Fusion http://www.houseoffusion.com Publisher: Fusion Authority http://www.fusionauthority.com Adobe Community Expert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253017 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: XML Integration - ASP equivalent in CF
-Original Message- You would definitely add another cfhttpparam - each param equates to a single form field (POST parameter). Also in this case you can drop the cfoutput tags - CFOUTPUT is limited strictly to outputting CFML expressions outside of other tags - never within them. Lastly your original ASP code sends the information as a plain query string so I would think that CF should as well. The CFHTTPPARM type value xml has a very special meaning - it changes the whole request in fact. Instead use the type formfield. This will automatically URLEncode the information (which is what the ASP code is doing). Here's an (untested, obviously) shot at what you need: cfhttpurl=https://secure.internetsecure.com/process.cgi; method=post cfhttpparamname=xxxRequestData type=formField value=#xmlStr# cfhttpparamname= xxxRequestMode type=formField value=X /cfhttp Hope this helps. Jim Davis ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253020 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boolean use of Recordcount
It is NOT the same as saying, as long as there is *one* record returned, true. Right, and it is also the same as saying as long as there is *at least one* record returned, true. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253014 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Boolean use of Recordcount
Yup - because 0 is false, but all other (positive?) numbers are true Jeff Small wrote: cfif qMyQuery.Recordcount/cfif is basically the same as saying, as long as there's at least one record returned, true. This returns true and steps into the CFIF if the recordcount is 1, 2, 300... It is NOT the same as saying, as long as there is *one* record returned, true. Right? -- View this message in context: http://www.nabble.com/Boolean-use-of-Recordcount-tf2266507.html#a6289791 Sent from the Cold Fusion - Technical forum at Nabble.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253019 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFDJ?
On 9/13/06, James Holmes [EMAIL PROTECTED] wrote: Oh sorry, the LIST. My fault for not reading properly. Woops, me too! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253016 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Image resizing
I had trouble resizing large images to smaller ones. They would come out about 20 shades darker with the tmt_img tag. Of course, I didn't have a better java solution, so I opted for installing ImageMagick on the server. On 9/13/06, Larry Lyons [EMAIL PROTECTED] wrote: imageCFC (I forget who did it, maybe rick?) Imagemagick from alagad.com Russ -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 22:44 To: CF-Talk Subject: Image resizing I know I've seen this topic posted before but I need some input. I need an image resizing program, preferably written in Java that has the ability to resize images but retain the quality. What I currently use is a cfx tag programmed in C++. It does a good job but the smaller images always come out pixelated which I cannot have. Any suggestions? There's also Massimo Foti's tmt_img.cfc. It does a fairly good job of image resizing. You can look at the api and download it at http://www.olimpo.ch/tmt/cfc/tmt_img/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253021 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFDJ?
This link works for me: http://coldfusion.sys-con.com/ Oops, you meant the list. I haven't seen that. Michael probably spammed it so everyone would just switch to Fusion Authority Quarterly. (couldn't help it)... On 9/13/06, Dave Carabetta [EMAIL PROTECTED] wrote: On 9/13/06, Michael Dinowitz [EMAIL PROTECTED] wrote: I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? Not sure what URL you're trying, but this works fine for me (including the links to each article): http://coldfusion.sys-con.com/ Regards, Dave. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253022 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Linux webserver
I tunnel my VNC/X-Windows thru SSH only one port thru the firewall and it is already a needed port! X is installed but system boots to runlevel 3 as I find command line much faster. As for hardening your box the object is to not let them get in in the first place X-windows is the least of your worries once they have access. We run RedHat ES4 for our webservers but CF is still running on win2k3 I hope to change that soon!! As for X being unstable I run RedHat WS4 on my workstation install was super easy. Of course I also run VMware Workstation 5 (running XP) so I can access corp email. AD Admin wont join my Linux box to the domain. ~Eric ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253015 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: XML Integration - ASP equivalent in CF
Thanks so much for your reply, Jim! FYI - this was my final solution. Not entirely sure where I initially missed the boat, but 2 formfields and including the xml version tag within the cfhttpparam name / value pair explicity vs. as part of the xml string seemed to do it. cfhttp url=https://secure.internetsecure.com/process.cgi; method=post cfhttpparam name=xxxRequestMode type=formfield value=X cfhttpparam name=xxxRequestData type=formfield value=?xml version='1.0' encoding='UTF-8'?#orderdetails# /cfhttp Thanks again! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253023 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFDJ?
As far as I know I'm still on the list as well Haven't gotten a message in about forever. Yves On 9/13/06, Munson, Jacob [EMAIL PROTECTED] wrote: I used to be on it (still am, at least I didn't unsubscribe), but no messages have come through for months, maybe even a year. I was curious one day and sent a message to the list address, and I got a delivery failure of some sort. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:38 AM I was just asked if the CFDJ list was still around. I checked out their site and no dice. Anyone (Simon) have a clue about its status? This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253024 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boolean use of Recordcount
Is it a good practice though? I know alot of people do it, but it just seems wrong to me to be evaluating a number as boolean. Greg On 9/13/06, Claude Schneegans [EMAIL PROTECTED] wrote: It is NOT the same as saying, as long as there is *one* record returned, true. Right, and it is also the same as saying as long as there is *at least one* record returned, true. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253025 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boolean use of Recordcount
Isn't it any non-zero integer? Not just positive ones? On 9/13/06, Ian Skinner [EMAIL PROTECTED] wrote: It is NOT the same as saying, as long as there is *one* record returned, true. Right? Correct, any positive integer evaluates as true in a Boolean expression. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253026 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Boolean use of Recordcount
i've been told (by someone much smarter than me) -not- to use implicit boolean conversion. yes, in CF cfif recordcount/cfif will work (where 0 evaluates to false and any other number evaluates to true)...but what you really mean is: cfif recordcount GT 0/cfif you're looking to see if the recordcount is greater than a specific number. now, to be perfectly blunt, i can't tell you if it's for performance reasons or just good practice...but the person who told me this was Sean Corfield, and he's just got a -tad- more experience than I do when it comes to programming...so I tend to trust what he says (except i'm not falling for that pull my finger thing again). bottom line is, according to what I consider to be a reputable source...avoid implicit boolean conversion. (now, this is normally the part of a thread where stuff starts flying...so suit up everybody) :) On 9/13/06, Greg Luce [EMAIL PROTECTED] wrote: Is it a good practice though? I know alot of people do it, but it just seems wrong to me to be evaluating a number as boolean. Greg On 9/13/06, Claude Schneegans [EMAIL PROTECTED] wrote: It is NOT the same as saying, as long as there is *one* record returned, true. Right, and it is also the same as saying as long as there is *at least one* record returned, true. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253027 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Boolean use of Recordcount
Is it a good practice though? I know alot of people do it, but it just seems wrong to me to be evaluating a number as boolean. Personally, I like to write code that's as specific as possible. Only if a variable is to hold a true Boolean value, do I use the cfif isConditionTrue syntax. So, I write the statement as: cfif query.recordCount gt 0 While the two syntaxes currently result in the same thing, I find the above to be more accurate and more descriptive. Also, on the very, very off chance that the behavior of how CF evaluates numbers would ever change; I don't have to update code. -Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253028 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Boolean use of Recordcount
it just seems wrong to me to be evaluating a number as boolean. In some languages as C for instance, booleans are just numbers, so there is nothing wrong there. However, in CF which is a typeless language, I found some instances, especially with query results, where it is better to be more specific. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253029 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Boolean use of Recordcount
any positive integer evaluates as true in a Boolean expression. To be more exact: any *non zero* integer evaluates as true in a Boolean expression. although recordcount here cannot be negative. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253030 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
To sound off here, All of the points above are very valid. I've used Mach-II pretty heavily now for a while and MG:U to varying degrees and I really see where the frameworks add value. All three Front Controller frameworks ( Model Glue, MachII and Fusebox) are quite solid and are worth learning. I am decidedly framework agnostic. I choose to use a framework now even if I am the only developer on a small app. While frameworks sort of 'force' certain solutions to problems, this is actually a feature, not a bug and is quite nice when making enhancements or bug-fixes to your application later on. As mentioned above, some of the frameworks offer different features, but all of them will help organize your code in an easy to understand manner. To Peters point, some of the problems solved by the frameworks ( M2, MG, CS, Reactor, Transfer, Etc) are indeed not completely obvious before you have taken the plunge into OO ColdFusion. Dependency resolution ( by ColdSpring) doesn't seem to be a major pain until your app has some complexity around it. When you do run into dependency problems, ColdSpring is a godsend. Same with the ORMs ( a la Reactor / Transfer ) . Pulling and Persisting information in a database is a vital application task. It is a problem that has been solved in various degrees by the ORM tools and helps get on with the meat of the application, the rules and other important logic. Give Transfer and Reactor a shot. Each has a nice blog sample application to toy with. You can immediately see the benefits of using an ORM in your application. Being a coder who had your very same questions at one point, let me offer a few suggestions (gained from my blood sweat and tears ): 1) Get familiar with http://www.fullasagoog.com/index.cfm?blogcat=ColdFusionMX There is a wealth of very important information catalogued there. 2) Get familiar with www.google.com. If you run into a sticky problem whilst learning, you can be assured someone else ran into it also and there is probably a blog post or two about it somewhere. 3) Download sample apps and customize the mess out of them. You will break and fix plenty of things and this really accelerates the learning process. I definately learn more from looking at others' code than I do my own. 4) Yes, it does seem like you are writing a ton more code. This will prove its value soon enough. I've added and removed whole new features / functions to applications with a single line of XML. OO CF, especially with a framework, seems like an indirect solution to the problem at hand compared with straight-line .cfm page coding. 5) There is no *right* answer usually. There are, however, some guiding principles and a whole lot of tradeoffs. If you aren't sure which way to go, try it one way and then another. 6) All the major frameworks have very active mailing lists. There is a wealth of information in the archives and batallions of helpful coders out there ready to lend a hand. 7) Yes, you will want to bang your head at times. And Yes, it gets easier. Dan Wilson ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253031 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Framework
To sound off here, All of the points above are very valid. I've used Mach-II pretty heavily now for a while and MG:U to varying degrees and I really see where the frameworks add value. All three Front Controller frameworks ( Model Glue, MachII and Fusebox) are quite solid and are worth learning. I am decidedly framework agnostic. I choose to use a framework now even if I am the only developer on a small app. While frameworks sort of 'force' certain solutions to problems, this is actually a feature, not a bug and is quite nice when making enhancements or bug-fixes to your application later on. As mentioned above, some of the frameworks offer different features, but all of them will help organize your code in an easy to understand manner. To Peters point, some of the problems solved by the frameworks ( M2, MG, CS, Reactor, Transfer, Etc) are indeed not completely obvious before you have taken the plunge into OO ColdFusion. Dependency resolution ( by ColdSpring) doesn't seem to be a major pain until your app has some complexity around it. When you do run into dependency problems, ColdSpring is a godsend. Same with the ORMs ( a la Reactor / Transfer ) . Pulling and Persisting information in a database is a vital application task. It is a problem that has been solved in various degrees by the ORM tools and helps get on with the meat of the application, the rules and other important logic. Give Transfer and Reactor a shot. Each has a nice blog sample application to toy with. You can immediately see the benefits of using an ORM in your application. Being a coder who had your very same questions at one point, let me offer a few suggestions (gained from my blood sweat and tears ): 1) Get familiar with http://www.fullasagoog.com/index.cfm?blogcat=ColdFusionMX There is a wealth of very important information catalogued there. 2) Get familiar with www.google.com. If you run into a sticky problem whilst learning, you can be assured someone else ran into it also and there is probably a blog post or two about it somewhere. 3) Download sample apps and customize the mess out of them. You will break and fix plenty of things and this really accelerates the learning process. I definately learn more from looking at others' code than I do my own. 4) Yes, it does seem like you are writing a ton more code. This will prove its value soon enough. I've added and removed whole new features / functions to applications with a single line of XML. OO CF, especially with a framework, seems like an indirect solution to the problem at hand compared with straight-line .cfm page coding. 5) There is no *right* answer usually. There are, however, some guiding principles and a whole lot of tradeoffs. If you aren't sure which way to go, try it one way and then another. 6) All the major frameworks have very active mailing lists. There is a wealth of information in the archives and batallions of helpful coders out there ready to lend a hand. 7) Yes, you will want to bang your head at times. And Yes, it gets easier. Dan Wilson ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253032 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Linux webserver
We're still mostly windows at work except for the mail server. At home I run Redhat Fedora Core 4 (or 5 I forget) with X-Windows and Vmware server (Free) with Exchange running in the VM. It's more or less stable, but I've had a few issues which required me to do ctrl-alt-backspace to kill X and get back into the command line. Although those might've been related to running VMware which was beta at the time. Russ -Original Message- From: Eric Haskins [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 12:52 PM To: CF-Talk Subject: Re: Linux webserver I tunnel my VNC/X-Windows thru SSH only one port thru the firewall and it is already a needed port! X is installed but system boots to runlevel 3 as I find command line much faster. As for hardening your box the object is to not let them get in in the first place X-windows is the least of your worries once they have access. We run RedHat ES4 for our webservers but CF is still running on win2k3 I hope to change that soon!! As for X being unstable I run RedHat WS4 on my workstation install was super easy. Of course I also run VMware Workstation 5 (running XP) so I can access corp email. AD Admin wont join my Linux box to the domain. ~Eric ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253033 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Image resizing
Rick's image.cfc is awesome Zaphod Beeblebrox wrote: I had trouble resizing large images to smaller ones. They would come out about 20 shades darker with the tmt_img tag. Of course, I didn't have a better java solution, so I opted for installing ImageMagick on the server. On 9/13/06, Larry Lyons [EMAIL PROTECTED] wrote: imageCFC (I forget who did it, maybe rick?) Imagemagick from alagad.com Russ -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 22:44 To: CF-Talk Subject: Image resizing I know I've seen this topic posted before but I need some input. I need an image resizing program, preferably written in Java that has the ability to resize images but retain the quality. What I currently use is a cfx tag programmed in C++. It does a good job but the smaller images always come out pixelated which I cannot have. Any suggestions? There's also Massimo Foti's tmt_img.cfc. It does a fairly good job of image resizing. You can look at the api and download it at http://www.olimpo.ch/tmt/cfc/tmt_img/ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253034 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Framework
I know you can use MG without Reactor, but that doesn't seem to be the focus of it I think it's a bit short-sighted to drop MG just because it has added some optional components you don't like... If you don't have Reactor installed, MG starts up without it and scaffolding and GDMs (Generic Data Messages) are simply disabled. No big issue. You get Model-Glue 1.1 compatibility with the added option of using ColdSpring for configuration. The only difference is that ColdSpring is required to run MG:U - but you, yourself, don't have to use it. One is the active record pattern, which Reactor uses. I think the active record pattern reduces the flexibility of your application I agree to some extent. However, I have built some apps where I have a data tier that hides the Active Record pattern and that works well, decoupling the business model from the persistence tier (which is a good practice anyway). I always use the example that if you decide that Reactor is too much of a drag on your site's performance, you will have a hell of a time ripping it out or trying to recreate aspects of it. Not if you've designed your application properly. I just switched most of my persistence layer from Reactor to Transfer with very few code changes. My business tier dealt with beans (which Active Records are) and my data tier dealt with persistence so the changes were fairly localized. I even have a prototype TransferAdapter for MG:U so I actually have basic scaffolding and all the GDM machinery working with Transfer (with the exception of the gatewayMethod extension to MG:U that was added recently). I also am not fond of scaffolds, as I think in most cases they aren't very useful - however they are totally optional I suppose so I am not going to make a big fuss about them. I've found them useful for quick'n'dirty prototypes and then I typically fold the Scaffolds.xml file into the main ModelGlue.xml file and copy the generated views into my main view directory and work from there. It saves me writing some otherwise tedious event handling logic and basic display / list / edit form stuff. Lastly, I just don't think Reactor is there yet. Since it's only at a beta candidate, I think that's only to be expected. Transfer is a 0.5 version release. MG:U itself is only a beta product. ColdSpring is the only 1.0 portion of it. If using pre-release software is an issue, then definitely MG 1.1 and ColdSpring 1.0 is a great, solid combination. However, since Reactor is totally optional for MG:U, I don't think this should be a reason to abandon Model-Glue. It is a great concept that Doug has put a lot of work into, but it seems to me that enormous scope and complexity has caused it to be error plagued. I am on the list and I often feel inundated with Reactor issues. ORMs *are* complex. Look at Hibernate. I think the volume of traffic on the Reactor list is a testament to just how many people are using it for real projects. And, for the most part, they are actually *succeeding* with Reactor. Personally, I have chosen to move to Mach ii. I believe it is a solid framework and isn't all that different from straight MG (i.e. like the 1.1days) - mostly some verb changes. I think there are some really problematic constructs in Mach II that make it harder for people to learn than MG 1.1 but I will also agree that it is a very solid framework. I introduced it to macromedia.com and it now powers about a quarter of the applications on the site (now adobe.com). I switched to MG 1.x to take advantage of ChiliBeans initially because ColdSpring did not seem approachable. Then I went to MG 1.x + ColdSpring. Whilst I could have then moved to Mach II + ColdSpring via the plugin, I found that I didn't like the complexities of the Mach II architecture (listeners *and* filters *and* plugins) compared to the simplicity and consistency of the Model-Glue architecture. I also no longer like the way that Mach II allows you to intermix calls to the model with view rendering and invocations of filters etc... I think it leads to messy event handlers. I also no longer like the way that listener methods are tied directly into the event handlers - Model-Glue's implicit invocation is much cleaner with multiple listeners registered for a given message broadcast. Anyway, as this post is full of MG:U fans, I am not ripping on MG:U or trying to start some framework flame war. I just think that you need to get past the hype a bit when choosing a framework. This may mean that you still choose MG:U, but it is worth considering the alternatives (Mach ii, Fusebox and ColdBox). Again, agreed. I don't know much about ColdBox (reading the initial blurb about it just confused me so I put it down - if I find time, I'll definitely go back and look at it again). Fusebox is a good framework for established CFers who aren't yet familiar with frameworks but may be a bit alien for someone coming to CF from VB.NET (which I seem to
Re: Odd installation issue
The only thing I acn suggest is checking the neo configuration files to see if there is a way to superceed the steps. Teddy On 9/13/06, Ken Ferguson [EMAIL PROTECTED] wrote: That has been my experience every other time too. This is the first time I've ever had any issue with installation and that's a LOT of installations! I'll try disabling everything else that's running on the box that I can disable and see if I can get it to go past that step. The strangest thing is that it serves CF pages just fine; it's just the admin that I can't get into. Surely there should be a method for making an end-run around that bit and configuring anything that it missed by hand? I was hoping I'd get someone post who had this exact same problem last week and fixed it by doing x. No such luck though, huh? Thanks, Ken Ferguson 214.636.6126 -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:44 AM To: CF-Talk Subject: Re: Odd installation issue I have had NAV stop at the point speak of it. NAV has a habit of thinking java changes are virus related. Other than NAV, I have not seen a stopping point at the configuration before. Typically if you get the configuration after deployment, your installation was successful enough to execute CFML correctly. Sorry, Teddy On 9/13/06, Ken Ferguson [EMAIL PROTECTED] wrote: Nope, no NAV running. Though I would expect it to cause problems before this point, but not AT this point. Once you get to the point where you're in the web browser hitting the administrator, I'd expect no problems out of an av scanner. Thanks, Ferg -Original Message- From: Teddy Payne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:17 AM To: CF-Talk Subject: Re: Odd installation issue Do you have Norton Anti-Virus installed on this server? If you do, turn that beast off until install is complete. Teddy On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a Windows 03 server on which I installed MX7 yesterday. After getting it all installed, I browse to the administrator and get the configuration wizard screen. I type in the admin password and submit. Then it goes to the next page for about one second before it pops back to the login screen. I know the password I'm typing is correct, because when I type a bad one in it tells me that it's not the right password. There's a continue link on that next page and I've tried clicking it really quickly before the page changes, but that doesn't help either. I put a test.cfm file in the web root with just a cfdump var=#server# inside of it. When I browse to that file, it works as expected, so it's serving CF pages just fine. I just can't get into the administrator because I can't get past the config thing. Has anybody seen that before or does anyone have any ideas? Thanks, Ken Ferguson 214.636.6126 ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253036 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boolean use of Recordcount
Also, be cognitive that ColdFusion converts the words yes and no into boolean equivalent 1 and 0. For code legibility and maintainability, I would agree with Sean C. on this point of not using implicit boolean conversion. cfif query.recordcount logically will mean true for any returned records or false for 0 records returned. This is kind of inferred logic makes sense to a ColdFusion developer. ColdFusion converts the variables to a number and then applies boolean logic against the 0 or non 0 number. Now a more dfinitive result would be to to have cfif query.recordcount gt 0 and this is just comparing 0 or non 0 against a great than statement. You are not coverting anything here other than comapring two numbers that are of the same data type. I would probably even go as far that non-implicit logic would make ColdFusion's short-circuit boolean expressions quicker. Teddy On 9/13/06, Claude Schneegans [EMAIL PROTECTED] wrote: any positive integer evaluates as true in a Boolean expression. To be more exact: any *non zero* integer evaluates as true in a Boolean expression. although recordcount here cannot be negative. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253037 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFC question
Another reason to use the variables scope outside of a method like init() would be when you extend a CFC from another CFC. The variables defined in the variables scope will act like a psuedo constructor if you are not calling that CFC via a cfinvoke, cfobject ...etc. It provides a little flexibility on how the CFC can be consumed. Teddy On 9/13/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: The variables scope, when used within a CFC, is a protected private scope (only accessible from within the CFC). Within the head of your object (after the cfcomponent tag, but prior to any functions) you may have a block like this: cfscript variables.instance = structnew(); variables.instance.firstname = ; variables.instance.lastname = ; variables.instance.age = 0; /cfscript Then you might have an init method like this: cffunction name=init access=public output=false returntype=person hint=This initializes your person object cfreturn this /cffunction You would then get or set the properties of your object using getter and setter methods, which can access the private variables scope: cffunction name=setFirstName access=public output=false returntype=void hint=Sets the firstname property of this instance cfargument name=firstname type=string required=true hint=firstname to set in this instance of person cfset variables.instance.firstname = arguments.firstname /cffunction cffunction name=getFirstName access=public output=false returntype=string hint=Returns the firstname of this person instance cfreturn variables.instance.firstname /cffunction So, within your calling template you might have: cfset variables.personObj = createobject(component,person).init() After which, the following attempt to access it's properties would fail/error: #variables.personObj.firstname# But using this would give you access: #variables.personObj.getFirstName()# Hope this helps:) Cutter _ http://blog.cutterscrossing.com Victor Moore wrote: Hi, I have seen in a number of examples the following: cfset variables.myVar = arguments.someArg / any particular reason/advantage why the arguments are assigned to a local variable inside a cfc function instead of using it directly? Thanks Victor ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253038 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4