RE: CF on shared hosting
I would agree that CF Standalone is unsuitable for shared hosting. - Calvin -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 9:49 PM To: CF-Talk Subject: RE: CF on shared hosting The Jrun used with a CF Standalone install has no real security - you might try to edit the java security policy file directly but I doubt that would be easy. The JSP files then run with no sandboxing, able to veiw the entire server and do everything that an unsandboxed CF install can do. -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 2:10 To: CF-Talk Subject: RE: CF on shared hosting Why is Jrun unsuitable? - Calvin ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209376 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
Can you elaborate? -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 02:49 To: CF-Talk Subject: RE: CF on shared hosting The Jrun used with a CF Standalone install has no real security - you might try to edit the java security policy file directly but I doubt that would be easy. The JSP files then run with no sandboxing, able to veiw the entire server and do everything that an unsandboxed CF install can do. -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 2:10 To: CF-Talk Subject: RE: CF on shared hosting Why is Jrun unsuitable? - Calvin ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209377 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Quick OT Javascript question.
Thanks all for the suggestions... I'll use an incarnation today and see how it goes... Claude.. Yeah I know... Outlook does that to me... Jeff -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 5:00 PM To: CF-Talk Subject: Re: Quick OT Javascript question. How do I grab the CURRENTLY selected option in a select list document.myform.colors.selectedIndex (Be careful not spelling Document with an upper case). -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209378 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Java jar/class locations without restart
Thanks for the info Mark. [EMAIL PROTECTED] 06/13/05 07:43AM I don't think you'll find a way for jars to be picked up automatically... I'm not aware of a way to do that in regular java (JVM settings, etc), so unless they have special class loader stuff explicitly for jars, or unless you find some code to do it yourself, I think you're out of luck. Basically, if you drop a class file in a classpath directory then it will be found (but not reloaded when it changes), but only jars explicitly mentioned in the classpath will be ever be searched; jars not mentioned are ignored. Again, you can probably do a custom classloader to get around this, but I've never used one. Mark -Original Message- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 8:29 AM To: CF-Talk Subject: Java jar/class locations without restart I am reposting this question. I should have known better than to post on a Friday. ;) I am trying to determine where I can store Java jar files that will allow CF to find them WITHOUT reloading the server. Is this possible? Placing the jars in the WEB-INF/lib directory doesn't work without a restart, BUT.. adding classes to the WEB-INF/classes directory does. Why is it that CF can load classes without a restart but not jars? Is there something I'm missing here? Is there another location to place the jars so CF can find them without a restart? Thanks, Chris This email and its attachments may contain confidential information which is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action based on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender and delete this email from your computer. Thank you. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209379 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
I can't elaborate on any fiddling with the java security policy - I'm just guessing that something might be possible (although I have doubts). As for the JSP security problem, here's the links I've been sending to people: http://www.macromedia.com/devnet/security/security_zone/mpsb02-04.html http://www.robrohan.com/blog/index.cfm?mode=entryentry=EDCB81D8-C8F0-B5 37-1824A53C962059D3 Note that I can still achieve the results of the second link on my current Smarterlinux account (as of 30 seconds ago, because I just checked). -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 7:04 To: CF-Talk Subject: RE: CF on shared hosting Can you elaborate? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209380 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Using CF5 and CF6 in one application
We have an application that runs partly under CF5 (FB3) and partly under CFMX (FB4.1). Both parts have the same application name. If control is passed from one part to the other, by an a href with cfid:cftoken being preserved, it seems that the client-variables db gets updated incompatibly by the 2 versions of CF. In particular, the data field of the CGLOBAL table is malformed (it starts with an = sign). The result is that client.xxx cannot be evaluated by CF5. Is anyone away of this problem, and possible work-arounds? Is it perhaps something to do with case-sensitivity, for example? -Mike Oakes ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209381 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
http://www.robrohan.com/blog/index.cfm?mode=entryentry=EDCB81 D8-C8F0-B537-1824A53C962059D3 I don't see anything at this page beyond: Guest Blogger - Shared Host Security When sharing CF hosting with others, be aware that security is an issue. With Rob's permission, this post was created by me with no access other than a standard account on the same server. If security matters to you, ask your host to sandbox properly and disable JSP. James Holmes That's all it says. No explanation of *why*, no links, nufink. Am I missing something? -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209382 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Quick OT Javascript question. PART 2
Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get the value of a hidden input that is dynamically named from the select list value... Visusally it looks like this... select name=colors cfloop query=color_names option value=#name##name#/option input type=hidden name=#name# value=#rating# /cfloop I am looking to get the RATING value. I can get the selected NAME using the code above, but my attempts to extract the hidden variable have been unsuccessful. I've tried: var amt = 'document.myform.' + colortype + '.value'; and var amt = document.myform.colortype.value'; I'm stumped.. Any suggestions??? Thanks, Jeff ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209383 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
No, you aren't missing anything - it's just a demo of how failing to disable JSP can lead to a hacked website, because that's how I added the blog (hacking). I didn't really want to give a script kiddie step-by-step (there's enough out there already without giving them even more info) but I can send more details privately if you want. -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 9:05 To: CF-Talk Subject: RE: CF on shared hosting http://www.robrohan.com/blog/index.cfm?mode=entryentry=EDCB81 D8-C8F0-B537-1824A53C962059D3 I don't see anything at this page beyond: Guest Blogger - Shared Host Security When sharing CF hosting with others, be aware that security is an issue. With Rob's permission, this post was created by me with no access other than a standard account on the same server. If security matters to you, ask your host to sandbox properly and disable JSP. James Holmes That's all it says. No explanation of *why*, no links, nufink. Am I missing something? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209384 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Quick OT Javascript question. PART 2
Yup. Use this notation: document.myform[colortype].value; From the looks of your code, the generated HTML will look something like this: select optionasas/option input type=hidden ... / optionasasa/option input type=hidden ... / optionasasas/option input type=hidden ... / optionsasasa/option /select Is that ok for you? Ade -Original Message- From: Jeff Waris [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 14:02 To: CF-Talk Subject: Quick OT Javascript question. PART 2 Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get the value of a hidden input that is dynamically named from the select list value... Visusally it looks like this... select name=colors cfloop query=color_names option value=#name##name#/option input type=hidden name=#name# value=#rating# /cfloop I am looking to get the RATING value. I can get the selected NAME using the code above, but my attempts to extract the hidden variable have been unsuccessful. I've tried: var amt = 'document.myform.' + colortype + '.value'; and var amt = document.myform.colortype.value'; I'm stumped.. Any suggestions??? Thanks, Jeff ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209385 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
No, you aren't missing anything - it's just a demo of how failing to disable JSP can lead to a hacked website, because that's how I added the blog (hacking). Ah, ok, now I get it. Doh! Scary. So what did you do to insert the record? Did you trawl the server for config files, or something else? -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209386 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Quick OT Javascript question. PART 2
any reason you are puttting all these into hidden form values? Why not just build and associative array and use that to lookuop the rating it will save bandwidth, it will be valid, and look more professional. The lookup would be the same AsociativeArrayName[selectedValue] will give you the rating. Adam H On 6/14/05, Jeff Waris [EMAIL PROTECTED] wrote: Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get the value of a hidden input that is dynamically named from the select list value... Visusally it looks like this... select name=colors cfloop query=color_names option value=#name##name#/option input type=hidden name=#name# value=#rating# /cfloop I am looking to get the RATING value. I can get the selected NAME using the code above, but my attempts to extract the hidden variable have been unsuccessful. I've tried: var amt = 'document.myform.' + colortype + '.value'; and var amt = document.myform.colortype.value'; I'm stumped.. Any suggestions??? Thanks, Jeff ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209387 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
Nah, it's much easier than that. I'll send the info privately now. -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 9:24 To: CF-Talk Subject: RE: CF on shared hosting No, you aren't missing anything - it's just a demo of how failing to disable JSP can lead to a hacked website, because that's how I added the blog (hacking). Ah, ok, now I get it. Doh! Scary. So what did you do to insert the record? Did you trawl the server for config files, or something else? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209388 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CFX_GetIPHostName on CFMX 6.1
Morning all, I just tried this tag on CFMX 6.1 and I can't get it to work (worked great on CF5). Apparently, MX can't find the tag for some reason. It has the correct path set in the admin. Any reasons as to why this might not work? Is there a built in Java feature that performs the same function? Thanks a bunch, Che ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209389 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Quick OT Javascript question. PART 2
Adam, I am retrofitting someone else's code.. :) There are a lot of other things I am leaving out and this all has nothing to do with colors. What I wrote was a super simplified version of what I am working on. I try not to ask directly for an answer here but use the information given to me from my question to formulate the answer I need. Hope that makes some sense.. Jeff -Original Message- From: Adam Haskell [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:29 AM To: CF-Talk Subject: Re: Quick OT Javascript question. PART 2 any reason you are puttting all these into hidden form values? Why not just build and associative array and use that to lookuop the rating it will save bandwidth, it will be valid, and look more professional. The lookup would be the same AsociativeArrayName[selectedValue] will give you the rating. Adam H On 6/14/05, Jeff Waris [EMAIL PROTECTED] wrote: Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get the value of a hidden input that is dynamically named from the select list value... Visusally it looks like this... select name=colors cfloop query=color_names option value=#name##name#/option input type=hidden name=#name# value=#rating# /cfloop I am looking to get the RATING value. I can get the selected NAME using the code above, but my attempts to extract the hidden variable have been unsuccessful. I've tried: var amt = 'document.myform.' + colortype + '.value'; and var amt = document.myform.colortype.value'; I'm stumped.. Any suggestions??? Thanks, Jeff ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209390 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
flash forms accordian scrollbars
Below is a link to check out a flash form I'm experementing with and the code I'm using to create it. My question concerns the scrollbar display. Notice when you load my form that there are two scrollbars. I don't understand why and short of removing the height specification for the PAGE, I can't make the second (outside bar) go away. I've tried messing with all of the size values, but haven't found any combination that helped. Anyone have any ideas??? Thanks, Ferg See the result of this code here: http://www.fergusonhouse.com/news.cfm **Please be patient if it's slow, as this incredibly small form sometimes inexplicably takes FOREVER to load.** cffunction TranslateRSSItems (which returns a query object with 20 records)... cfform name=news action=index.cfm enctype=multipart/form-data format=Flash method=POST width=350 height=325 cfformgroup type=ACCORDION height=250 width=275 !--- all comms elements here --- cfformgroup type=PAGE label=newsfeeds height=225 !--- this tab is for the Private Message list --- cfhttp url=http://rss.news.yahoo.com/rss/mideast; method=GET resolveurl=true timeout=6000 cfif cfhttp.fileContent is not Connection Failure cfset rssFeed = TranslateRSSItems(cfhttp.FileContent) cfloop query=rssFeed !-- only output at most 5 rows --- cfif currentRow lte 5 cfoutput cfformitem type=htmlfont color=##ff#title#/fontbr#left(description, 100)#bra href=#link# target=_blankfont color=##ff size=-2::read more::/font /a/cfformitem cfformitem type=hrule/cfformitem /cfoutput cfelse cfbreak /cfif /cfloop /cfif /cfformgroup cfformgroup type=PAGE label=announcements !--- this tab is for the Chat --- /cfformgroup cfformgroup type=PAGE label=upcomingevents !--- this tab is for the Disc. Board latest entries list --- /cfformgroup /cfformgroup /cfform ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209391 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Using a directory path as a switch statement
Here's something that I use: !--- Get the current folder --- cfscript function getDir() { var directory = ''; var path = gettemplatepath(); directory = listgetat(path, (listfind(path, 4h, /) + 1), /); return directory; } /cfscript cftry cfinclude template=#cffourhrootpath#/cfincludes/header_#getdir()#.cfm cfcatch cfinclude template=#cffourhrootpath#/cfincludes/header.cfm /cfcatch /cftry In our case, we're discounting the 4h directory, and then we only care about the next directory under that. On 6/13/05, Mark Leder [EMAIL PROTECTED] wrote: Hi all, I typically use an include file for navigation elements. However I want to be able to show a tree for directories two levels deep. In this example, I'd like to show the menu below for both the /presentations/ directory and the /presentations/video/ directory. The example works fine for the /presentations/' directory, but it will not display for the /presentations/video/ directory. I'd rather not have a separate full tree for each subdirectory. Are there other approaches to making this work? === cfinclude template=../cf-inf/udf/url/getHTTPdir.cfm cfoutput div id=linkNav cfswitch expression=#GetHTTPDir()# cfcase value=/presentations/ a href=#REQUEST.webroot#/presentations/video/index.cfm?fcs=03Personal Brilliance Online Video/abr /br / a href=#REQUEST.webroot#/contact/index.cfm?r=vdiRequest Video Demo and Information Kit/abr /br / a href=#REQUEST.webroot#/presentations/biography/index.cfmOne Sheet Biography/abr /br / a href=#REQUEST.webroot#/presentations/testimonials/index.cfmClient Testimonials/abr /br / a href=#REQUEST.webroot#/presentations/index.cfmSample Introduction/abr /br / a href=#REQUEST.webroot#/presentations/requirements/index.cfmStaging/Backgr ound AV Requirements/abr /br / a href=#REQUEST.webroot#/presentations/video/index.cfm?fcs=12View Introduction Short Film/abr /br / a href=#REQUEST.webroot#/presentations/photograph/index.cfmPhotograph/ab r /br / a href=#REQUEST.webroot#/presentations/articles/index.cfmArticles for your publication/a /cfcase /cfswitch /div /cfoutput = Thanks, Mark ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209392 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
MS SQL - Cannot Find Stored Procedure
I've created the stored procedure in the Enterprise Manager on our Dev Server. Its the same code that's used on our live site so I know it works. However, Coldfusion returns an error that says the stored procedure cannot be found. Another thing : is that when I go to run the stored procedure again ( see code below ), it tells me that it cannot find it in the system catalog. ( whatever that means ). But it DOES appear in the stored procedure list. Checked permissions and they seem fine as well. Code at top of the stored procedure... IF EXISTS (SELECT * FROM sysobjects WHERE name = 'Get_Adverts' AND uid = user_id('myuid') AND type = 'P') DROP PROCEDURE Get_Adverts GO . remaining code in here ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209393 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: flash forms accordian scrollbars
If you'll send me the code in the TranslateRSSItems function, I will play with it a little. Mike -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 8:58 AM To: CF-Talk Subject: flash forms accordian scrollbars Below is a link to check out a flash form I'm experementing with and the code I'm using to create it. My question concerns the scrollbar display. Notice when you load my form that there are two scrollbars. I don't understand why and short of removing the height specification for the PAGE, I can't make the second (outside bar) go away. I've tried messing with all of the size values, but haven't found any combination that helped. Anyone have any ideas??? Thanks, Ferg See the result of this code here: http://www.fergusonhouse.com/news.cfm **Please be patient if it's slow, as this incredibly small form sometimes inexplicably takes FOREVER to load.** cffunction TranslateRSSItems (which returns a query object with 20 records)... cfform name=news action=index.cfm enctype=multipart/form-data format=Flash method=POST width=350 height=325 cfformgroup type=ACCORDION height=250 width=275 !--- all comms elements here --- cfformgroup type=PAGE label=newsfeeds height=225 !--- this tab is for the Private Message list --- cfhttp url=http://rss.news.yahoo.com/rss/mideast; method=GET resolveurl=true timeout=6000 cfif cfhttp.fileContent is not Connection Failure cfset rssFeed = TranslateRSSItems(cfhttp.FileContent) cfloop query=rssFeed !-- only output at most 5 rows --- cfif currentRow lte 5 cfoutput cfformitem type=htmlfont color=##ff#title#/fontbr#left(description, 100)#bra href=#link# target=_blankfont color=##ff size=-2::read more::/font /a/cfformitem cfformitem type=hrule/cfformitem /cfoutput cfelse cfbreak /cfif /cfloop /cfif /cfformgroup cfformgroup type=PAGE label=announcements !--- this tab is for the Chat --- /cfformgroup cfformgroup type=PAGE label=upcomingevents !--- this tab is for the Disc. Board latest entries list --- /cfformgroup /cfformgroup /cfform ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209394 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Quick OT Javascript question. PART 2
Yep.. I had to make a couple changes where my hidden list is looped AFTER the Select Option loop but other than that, its similar to what the code looks like. I'll give the document.myform[colortype].value; notation a go... Thanks.. Jeff -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:18 AM To: CF-Talk Subject: RE: Quick OT Javascript question. PART 2 Yup. Use this notation: document.myform[colortype].value; From the looks of your code, the generated HTML will look something like this: select optionasas/option input type=hidden ... / optionasasa/option input type=hidden ... / optionasasas/option input type=hidden ... / optionsasasa/option /select Is that ok for you? Ade ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209395 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: flash forms accordian scrollbars
Here's that code, but it just returns a query object. I don't think it can be the problem. cfscript /** * Translates a RSS Feed's items to a query. * * @param rssDoc RSS document to translate. (Required) * @return Returns a query. * @author William Steiner ([EMAIL PROTECTED]) * @version 1, October 30, 2003 */ function TranslateRSSItems(rssDoc) { // the current token we are looking at var Token = GetToken(rssDoc,1,); // LoopControl needs to be initialized var LoopControl = 1; // Initialize the Current Query Row var RowNumber = 1; // the number of the next token we are looking at var NextToken = 2; var RSS_Struct = StructNew(); // Initialize Return Query var ResultQuery = QueryNew(Title, Link, Description); // loop until we are out of tokens while(Token is not /rss){ switch(Left(Token,7)){ case channel:{ // loop thru until we get to the first item // skiping all tokens relating to document itself while(Token is not item) { // increment next token NextToken = NextToken + 1; Token = GetToken(rssDoc,NextToken,); } } // end channel case case item:{ // if we are getting a item token, we want to: // create a new blank structure // define new structure RSS_Struct = StructNew(); // increment next token NextToken = NextToken + 1; break; } // end item case case /item:{ // if we are getting a /item token, we want to: // Create a new row in the query the each item // Assuming the structure isn't empty // copy existing structure into result array if (not StructIsEmpty(RSS_Struct)){ // add a new row to the query RowNumber = QueryAddRow(ResultQuery); // populate Query QuerySetCell(ResultQuery, Title, RSS_Struct.Title, RowNumber); QuerySetCell(ResultQuery, Link, RSS_Struct.Link, RowNumber); QuerySetCell(ResultQuery, Description, RSS_Struct.Description, RowNumber); } // increment next token NextToken = NextToken + 1; break; } // end /item case case title:{ // if we are getting the title token, then we want to: // add the next token to our structure, because that will be our title text // increment the 'nexttoken' variable two increments past the end title token // add the title to the structure StructInsert(RSS_Struct, Title, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end title case case Link:{ // if we are getting the Link token, then we want to: // add the next token to our structure, because that will be our link text // increment the 'nexttoken' variable two increments past the end link token // add the title to the structure StructInsert(RSS_Struct, Link, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end link case case descrip:{ // if we are getting the description token, then we want to: // add the next token to our structure, because that will be our description text // increment the nexttoken variable once // add the title to the structure StructInsert(RSS_Struct, description, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 1; break; } // end description case default: { Token = GetToken(rssDoc,NextToken,); NextToken = NextToken + 1; break; } // end default case } // end switch Token = GetToken(rssDoc,NextToken,); } // end while return (ResultQuery); } /cfscript Mike Klostermeyer wrote: If you'll send me the code in the TranslateRSSItems function, I will play with it a little. Mike ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting
RE: MS SQL - Cannot Find Stored Procedure
Turn off maintain connection across requests in CF Admin under Datasources = Your DB Name = Advanced. This could be the problem. sas Scott A. Stewart, Web Application Developer Engineering Consulting Services, Ltd. (ECS) 14026 Thunderbolt Place, Suite 300 Chantilly, VA 20151 Phone: (703) 995-1737 Fax: (703) 834-5527 -Original Message- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 10:07 am To: CF-Talk Subject: MS SQL - Cannot Find Stored Procedure Importance: Low I've created the stored procedure in the Enterprise Manager on our Dev Server. Its the same code that's used on our live site so I know it works. However, Coldfusion returns an error that says the stored procedure cannot be found. Another thing : is that when I go to run the stored procedure again ( see code below ), it tells me that it cannot find it in the system catalog. ( whatever that means ). But it DOES appear in the stored procedure list. Checked permissions and they seem fine as well. Code at top of the stored procedure... IF EXISTS (SELECT * FROM sysobjects WHERE name = 'Get_Adverts' AND uid = user_id('myuid') AND type = 'P') DROP PROCEDURE Get_Adverts GO .. remaining code in here ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209397 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Quick OT Javascript question. PART 2
This is prohibited by specs, a select element is not allowed to contain a input element. You might better use either a 2d array - var tmp [[0,1],[0,1]] or a struct - var tmp {name:'value',name:'value'} Micha Schopman Project Manager Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Jeff Waris [mailto:[EMAIL PROTECTED] Sent: dinsdag 14 juni 2005 14:02 To: CF-Talk Subject: Quick OT Javascript question. PART 2 Another question: In my previous question.. I needed to grab the currently selected option from a select list. I can now get the selected value using this code... var SelOpt = document.myform.colors.options.selectedIndex; var colortype = document.myform.colors[SelOpt].value; I now need to get the value of a hidden input that is dynamically named from the select list value... Visusally it looks like this... select name=colors cfloop query=color_names option value=#name##name#/option input type=hidden name=#name# value=#rating# /cfloop I am looking to get the RATING value. I can get the selected NAME using the code above, but my attempts to extract the hidden variable have been unsuccessful. I've tried: var amt = 'document.myform.' + colortype + '.value'; and var amt = document.myform.colortype.value'; I'm stumped.. Any suggestions??? Thanks, Jeff ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209398 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
Has this been released yet? - Original Message - From: Sean Corfield [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, May 03, 2005 2:37 PM Subject: Re: cfeclipse and cfmx7 On 5/3/05, C. Hatton Humphrey [EMAIL PROTECTED] wrote: So anyone can add in and update the new tag defs? Yes. Is anyone working on this that is known? I think several people are working on it! But getting it into release format and putting it out the door may take some time as already indicated in thread already... -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209399 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CF Server Crashing
Trying to figure out why one of our servers keeps crashing. Like about 1-4 times per week it needs restarting. The guy at the isp said that it was due to a directory we had ( about 50,000 word doc files at a total of 2.7 gigs ) and said CF was crapping out when it opened the directory to retrieve single word doc files. Yes, when you open the directory through FTP or windows explorer THEN it takes a long time to open it, but NOT when pointed to directly through a url string, it will simply ask user to download etc... and there appears to be no apparent server problem. Any ideas? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209400 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
Turn off maintain connection across requests in CF Admin under Datasources = Your DB Name = Advanced. thanks, but that didn't seem to work. As a side note, what are the performance implications for setting this value true or false? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209401 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I've always seen it as a best practice I've seen no performance hits. I have to deal with FoxPro tables along with SQL Server, and this seems to work when the FoxPro guys make table changes. The only other suggestion I can make is to stop and restart the ODBC service.and check yer spelling :) sas Scott A. Stewart, Web Application Developer Engineering Consulting Services, Ltd. (ECS) 14026 Thunderbolt Place, Suite 300 Chantilly, VA 20151 Phone: (703) 995-1737 Fax: (703) 834-5527 -Original Message- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 10:28 am To: CF-Talk Subject: RE: MS SQL - Cannot Find Stored Procedure Importance: Low Turn off maintain connection across requests in CF Admin under Datasources = Your DB Name = Advanced. thanks, but that didn't seem to work. As a side note, what are the performance implications for setting this value true or false? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209402 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
On 6/14/05, David Brown [EMAIL PROTECTED] wrote: Has this been released yet? According to Spike's site, it was released 28d, 14hr, 15min ago! http://www.spike.org.uk/blog/index.cfm Regards, Dave. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209403 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: flash forms accordian scrollbars
Or maybe I'm wrong. I just added another form with a different query and the extra scrollbar is gone??? If you'll send me the code in the TranslateRSSItems function, I will play with it a little. Mike ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209404 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I've also tried connecting directly to the database as the main user ( not SA )... and I get a permission denied error. Server Msg: 262, State: 42000, [Microsoft][ODBC SQL Server Driver][SQL Server] CREATE PROCEDURE permission denied in database 'mydbname'. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209405 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: flash forms accordion scrollbars
I know that isn't the problem, just needed a working example to play with. The problem is with the height in the ACCORDION definition: cfformgroup type=ACCORDION height=275 width=275 (changed height from 250 to 275) works as you would like. As you increase the number of accordion panes, this value will have to increase as well. Mike -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:17 AM To: CF-Talk Subject: Re: flash forms accordian scrollbars Here's that code, but it just returns a query object. I don't think it can be the problem. cfscript /** * Translates a RSS Feed's items to a query. * * @param rssDoc RSS document to translate. (Required) * @return Returns a query. * @author William Steiner ([EMAIL PROTECTED]) * @version 1, October 30, 2003 */ function TranslateRSSItems(rssDoc) { // the current token we are looking at var Token = GetToken(rssDoc,1,); // LoopControl needs to be initialized var LoopControl = 1; // Initialize the Current Query Row var RowNumber = 1; // the number of the next token we are looking at var NextToken = 2; var RSS_Struct = StructNew(); // Initialize Return Query var ResultQuery = QueryNew(Title, Link, Description); // loop until we are out of tokens while(Token is not /rss){ switch(Left(Token,7)){ case channel:{ // loop thru until we get to the first item // skiping all tokens relating to document itself while(Token is not item) { // increment next token NextToken = NextToken + 1; Token = GetToken(rssDoc,NextToken,); } } // end channel case case item:{ // if we are getting a item token, we want to: // create a new blank structure // define new structure RSS_Struct = StructNew(); // increment next token NextToken = NextToken + 1; break; } // end item case case /item:{ // if we are getting a /item token, we want to: // Create a new row in the query the each item // Assuming the structure isn't empty // copy existing structure into result array if (not StructIsEmpty(RSS_Struct)){ // add a new row to the query RowNumber = QueryAddRow(ResultQuery); // populate Query QuerySetCell(ResultQuery, Title, RSS_Struct.Title, RowNumber); QuerySetCell(ResultQuery, Link, RSS_Struct.Link, RowNumber); QuerySetCell(ResultQuery, Description, RSS_Struct.Description, RowNumber); } // increment next token NextToken = NextToken + 1; break; } // end /item case case title:{ // if we are getting the title token, then we want to: // add the next token to our structure, because that will be our title text // increment the 'nexttoken' variable two increments past the end title token // add the title to the structure StructInsert(RSS_Struct, Title, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end title case case Link:{ // if we are getting the Link token, then we want to: // add the next token to our structure, because that will be our link text // increment the 'nexttoken' variable two increments past the end link token // add the title to the structure StructInsert(RSS_Struct, Link, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end link case case descrip:{ // if we are getting the description token, then we want to: // add the next token to our structure, because that will be our description text // increment the nexttoken variable once // add the title to the structure StructInsert(RSS_Struct, description, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 1; break; } // end description case default: { Token = GetToken(rssDoc,NextToken,); NextToken = NextToken + 1; break; } // end default case } // end switch Token = GetToken(rssDoc,NextToken,); } // end while return (ResultQuery); } /cfscript Mike
Re: flash forms accordion scrollbars
Thanks Mike. I've changed those height values so many times, I was sure I had changed that one too. Anyway, I guess I hadn't. Mike Klostermeyer wrote: I know that isn't the problem, just needed a working example to play with. The problem is with the height in the ACCORDION definition: cfformgroup type=ACCORDION height=275 width=275 (changed height from 250 to 275) works as you would like. As you increase the number of accordion panes, this value will have to increase as well. Mike -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:17 AM To: CF-Talk Subject: Re: flash forms accordian scrollbars Here's that code, but it just returns a query object. I don't think it can be the problem. cfscript /** * Translates a RSS Feed's items to a query. * * @param rssDoc RSS document to translate. (Required) * @return Returns a query. * @author William Steiner ([EMAIL PROTECTED]) * @version 1, October 30, 2003 */ function TranslateRSSItems(rssDoc) { // the current token we are looking at var Token = GetToken(rssDoc,1,); // LoopControl needs to be initialized var LoopControl = 1; // Initialize the Current Query Row var RowNumber = 1; // the number of the next token we are looking at var NextToken = 2; var RSS_Struct = StructNew(); // Initialize Return Query var ResultQuery = QueryNew(Title, Link, Description); // loop until we are out of tokens while(Token is not /rss){ switch(Left(Token,7)){ case channel:{ // loop thru until we get to the first item // skiping all tokens relating to document itself while(Token is not item) { // increment next token NextToken = NextToken + 1; Token = GetToken(rssDoc,NextToken,); } } // end channel case case item:{ // if we are getting a item token, we want to: // create a new blank structure // define new structure RSS_Struct = StructNew(); // increment next token NextToken = NextToken + 1; break; } // end item case case /item:{ // if we are getting a /item token, we want to: // Create a new row in the query the each item // Assuming the structure isn't empty // copy existing structure into result array if (not StructIsEmpty(RSS_Struct)){ // add a new row to the query RowNumber = QueryAddRow(ResultQuery); // populate Query QuerySetCell(ResultQuery, Title, RSS_Struct.Title, RowNumber); QuerySetCell(ResultQuery, Link, RSS_Struct.Link, RowNumber); QuerySetCell(ResultQuery, Description, RSS_Struct.Description, RowNumber); } // increment next token NextToken = NextToken + 1; break; } // end /item case case title:{ // if we are getting the title token, then we want to: // add the next token to our structure, because that will be our title text // increment the 'nexttoken' variable two increments past the end title token // add the title to the structure StructInsert(RSS_Struct, Title, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end title case case Link:{ // if we are getting the Link token, then we want to: // add the next token to our structure, because that will be our link text // increment the 'nexttoken' variable two increments past the end link token // add the title to the structure StructInsert(RSS_Struct, Link, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end link case case descrip:{ // if we are getting the description token, then we want to: // add the next token to our structure, because that will be our description text // increment the nexttoken variable once // add the title to the structure StructInsert(RSS_Struct, description, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 1; break; } // end description case default: { Token = GetToken(rssDoc,NextToken,); NextToken = NextToken + 1; break; } // end
RE: MS SQL - Cannot Find Stored Procedure
I've also tried connecting directly to the database as the main user ( not SA )... and I get a permission denied error. Server Msg: 262, State: 42000, [Microsoft][ODBC SQL Server Driver][SQL Server] CREATE PROCEDURE permission denied in database 'mydbname'. I'm not sure what you mean by the main user, but it's clear that the login you're using doesn't have rights to create procedures. That's usually a good thing; the login used by your application doesn't typically need to create, alter or drop schema objects. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209408 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: flash forms accordion scrollbars
I've been there, believe me. Messing with the display of flash-based CFForms is one of the more frustrating things I have been dealing with lately. Mike -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:48 AM To: CF-Talk Subject: Re: flash forms accordion scrollbars Thanks Mike. I've changed those height values so many times, I was sure I had changed that one too. Anyway, I guess I hadn't. Mike Klostermeyer wrote: I know that isn't the problem, just needed a working example to play with. The problem is with the height in the ACCORDION definition: cfformgroup type=ACCORDION height=275 width=275 (changed height from 250 to 275) works as you would like. As you increase the number of accordion panes, this value will have to increase as well. Mike -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:17 AM To: CF-Talk Subject: Re: flash forms accordian scrollbars Here's that code, but it just returns a query object. I don't think it can be the problem. cfscript /** * Translates a RSS Feed's items to a query. * * @param rssDoc RSS document to translate. (Required) * @return Returns a query. * @author William Steiner ([EMAIL PROTECTED]) * @version 1, October 30, 2003 */ function TranslateRSSItems(rssDoc) { // the current token we are looking at var Token = GetToken(rssDoc,1,); // LoopControl needs to be initialized var LoopControl = 1; // Initialize the Current Query Row var RowNumber = 1; // the number of the next token we are looking at var NextToken = 2; var RSS_Struct = StructNew(); // Initialize Return Query var ResultQuery = QueryNew(Title, Link, Description); // loop until we are out of tokens while(Token is not /rss){ switch(Left(Token,7)){ case channel:{ // loop thru until we get to the first item // skiping all tokens relating to document itself while(Token is not item) { // increment next token NextToken = NextToken + 1; Token = GetToken(rssDoc,NextToken,); } } // end channel case case item:{ // if we are getting a item token, we want to: // create a new blank structure // define new structure RSS_Struct = StructNew(); // increment next token NextToken = NextToken + 1; break; } // end item case case /item:{ // if we are getting a /item token, we want to: // Create a new row in the query the each item // Assuming the structure isn't empty // copy existing structure into result array if (not StructIsEmpty(RSS_Struct)){ // add a new row to the query RowNumber = QueryAddRow(ResultQuery); // populate Query QuerySetCell(ResultQuery, Title, RSS_Struct.Title, RowNumber); QuerySetCell(ResultQuery, Link, RSS_Struct.Link, RowNumber); QuerySetCell(ResultQuery, Description, RSS_Struct.Description, RowNumber); } // increment next token NextToken = NextToken + 1; break; } // end /item case case title:{ // if we are getting the title token, then we want to: // add the next token to our structure, because that will be our title text // increment the 'nexttoken' variable two increments past the end title token // add the title to the structure StructInsert(RSS_Struct, Title, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end title case case Link:{ // if we are getting the Link token, then we want to: // add the next token to our structure, because that will be our link text // increment the 'nexttoken' variable two increments past the end link token // add the title to the structure StructInsert(RSS_Struct, Link, GetToken(rssDoc, NextToken+1, )); // increment next token NextToken = NextToken + 2; break; } // end link case case descrip:{ // if we are getting the description token, then we want to: // add the next token to our structure, because that will be our description text // increment the nexttoken variable once // add the title to the structure StructInsert(RSS_Struct, description, GetToken(rssDoc,
RE: MS SQL - Cannot Find Stored Procedure
I've always seen it as a best practice I've seen no performance hits. I have to deal with FoxPro tables along with SQL Server, and this seems to work when the FoxPro guys make table changes. That's about as far from a best practice as you can get, with MS SQL Server. It's a terrible thing to do if you're using SQL Server, in most cases. There's quite a bit of overhead in creating and destroying database connections unnecessarily. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209410 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
Elaborate please... I'll swear that MM used to recommend this as a best practice.. I need all the SQL Server performance I can get, If I'm doing something wrong I'd like to correct it.. Thanks sas Scott A. Stewart, Web Application Developer Engineering Consulting Services, Ltd. (ECS) 14026 Thunderbolt Place, Suite 300 Chantilly, VA 20151 Phone: (703) 995-1737 Fax: (703) 834-5527 -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 11:02 am To: CF-Talk Subject: RE: MS SQL - Cannot Find Stored Procedure Importance: Low I've always seen it as a best practice I've seen no performance hits. I have to deal with FoxPro tables along with SQL Server, and this seems to work when the FoxPro guys make table changes. That's about as far from a best practice as you can get, with MS SQL Server. It's a terrible thing to do if you're using SQL Server, in most cases. There's quite a bit of overhead in creating and destroying database connections unnecessarily. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209411 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
can dump or cfoutput, but can not open in application-xml?
why would exactly the same file work under server but not locally? I saved a simple word doc as xml type and pasted to a cfm. The xml worked file with cfdump and cfoutput, but when I add cfcontent to open it with msword, the word doc showed error. Everything worked fine under server, but when i move to local folder, it no longer works. Why is that??? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209412 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
Elaborate please... I'll swear that MM used to recommend this as a best practice.. I need all the SQL Server performance I can get, If I'm doing something wrong I'd like to correct it.. To the best of my knowledge, Macromedia has never recommended this. I can see why you might want to do it if you're using FoxPro, but not with MS SQL Server or any other enterprise database server. I don't know how much I can elaborate beyond that, without specific questions, other than to say that creating new database connections unnecessarily is expensive - that's why connection pooling is provided. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209413 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
why would exactly the same file work under server but not locally? I saved a simple word doc as xml type and pasted to a cfm. The xml worked file with cfdump and cfoutput, but when I add cfcontent to open it with msword, the word doc showed error. Everything worked fine under server, but when i move to local folder, it no longer works. Why is that??? There are many reasons why it might not work. Perhaps you have debug output enabled on your development server, but not on production? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209414 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
Cool, I'll experiment, it may be what's causing some other issues sas Scott A. Stewart, Web Application Developer Engineering Consulting Services, Ltd. (ECS) 14026 Thunderbolt Place, Suite 300 Chantilly, VA 20151 Phone: (703) 995-1737 Fax: (703) 834-5527 -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 11:11 am To: CF-Talk Subject: RE: MS SQL - Cannot Find Stored Procedure Importance: Low Elaborate please... I'll swear that MM used to recommend this as a best practice.. I need all the SQL Server performance I can get, If I'm doing something wrong I'd like to correct it.. To the best of my knowledge, Macromedia has never recommended this. I can see why you might want to do it if you're using FoxPro, but not with MS SQL Server or any other enterprise database server. I don't know how much I can elaborate beyond that, without specific questions, other than to say that creating new database connections unnecessarily is expensive - that's why connection pooling is provided. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209415 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
why would exactly the same file work under server but not locally? I saved a simple word doc as xml type and pasted to a cfm. The xml worked file with cfdump and cfoutput, but when I add cfcontent to open it with msword, the word doc showed error. Everything worked fine under server, but when i move to local folder, it no longer works. Why is that??? There are many reasons why it might not work. Perhaps you have debug output enabled on your development server, but not on production? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Nor thern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! Are there any other possible reason? I turned off debugging but the same problem remains. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209416 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
Are there any other possible reason? I turned off debugging but the same problem remains. Yes, there are all sorts of possible reasons. Did you examine the generated XML in a text editor, instead of in Word? How did it differ when generated from the one server vs the other server? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209417 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
Dave is correct. release 1.1.18.12 included updated libraries for cf7. CFEclipse is a project driven by the community, and in truth most of the must have features have been added. Currently the project team is making a road map so we can start developing CFE with a path. Keep an eye out for updates on CFEclipse. simeon On 6/14/05, Dave Carabetta [EMAIL PROTECTED] wrote: On 6/14/05, David Brown [EMAIL PROTECTED] wrote: Has this been released yet? According to Spike's site, it was released 28d, 14hr, 15min ago! http://www.spike.org.uk/blog/index.cfm Regards, Dave. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209418 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [QUARRANTINE]CFDUMP and value formatting
11/14/1979 is a string. Now() and createdate() and parsedatetime() etc. create datetime objects. When you say that these create datetime objects, do they only create correct-formatted date/time strings or is there an actual object underneath? If there is an object can't you do something like: cfset myDate = now() cfoutput#myDate.hour()#/cfoutout If you can't do that sort of stuff, then I would assume that CF just passes strings as date/time objects. (I haven't tested any of this because I'm running a bunch of SQL Server imports right now.) M!ke ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209419 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
Not yet but it shouldnt be too long now. MD On 14 Jun 2005, at 15:20, David Brown wrote: Has this been released yet? - Original Message - From: Sean Corfield [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, May 03, 2005 2:37 PM Subject: Re: cfeclipse and cfmx7 On 5/3/05, C. Hatton Humphrey [EMAIL PROTECTED] wrote: So anyone can add in and update the new tag defs? Yes. Is anyone working on this that is known? I think several people are working on it! But getting it into release format and putting it out the door may take some time as already indicated in thread already... -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209420 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I concur - for a while we had to do this with Oracle (until newer DataDirect drivers came out) due to connection pooling errors and each DB connection took 200ms. At least CF only made one connection per CF page request, not per query, but it still sucked. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 11:11 To: CF-Talk Subject: RE: MS SQL - Cannot Find Stored Procedure Elaborate please... I'll swear that MM used to recommend this as a best practice.. I need all the SQL Server performance I can get, If I'm doing something wrong I'd like to correct it.. To the best of my knowledge, Macromedia has never recommended this. I can see why you might want to do it if you're using FoxPro, but not with MS SQL Server or any other enterprise database server. I don't know how much I can elaborate beyond that, without specific questions, other than to say that creating new database connections unnecessarily is expensive - that's why connection pooling is provided. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209421 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [QUARRANTINE]CFDUMP and value formatting
In fact these datetime objects are just a different type of string: {ts '2005-06-14 23:30:11'} -Original Message- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 11:32 To: CF-Talk Subject: RE: [QUARRANTINE]CFDUMP and value formatting 11/14/1979 is a string. Now() and createdate() and parsedatetime() etc. create datetime objects. When you say that these create datetime objects, do they only create correct-formatted date/time strings or is there an actual object underneath? If there is an object can't you do something like: cfset myDate = now() cfoutput#myDate.hour()#/cfoutout If you can't do that sort of stuff, then I would assume that CF just passes strings as date/time objects. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209422 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I've even restarted the server after creating this new procedure and still the system ( CF) can't find it. Even when I try to run it again under enterprise manager I get not found in system catalog? Funny that it says it cannot be found if its clearly displayed ms sql is hell. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209423 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I've even restarted the server after creating this new procedure and still the system ( CF) can't find it. Even when I try to run it again under enterprise manager I get not found in system catalog? Funny that it says it cannot be found if its clearly displayed ms sql is hell. You can restart the system a million times, and that will not help you if you are not using the correct login to run the procedure. Try running the procedure as username.procedure instead of just procedure, where the username is the one you used to create the procedure in the first place. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209424 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [QUARRANTINE]CFDUMP and value formatting
Sorry, I take that back. That's the sting representation of a CF datetime object. A CF DateTime is an object of the class coldfusion.runtime.OleDateTime, as shown by this: cfset MyDate = Now() cfdump var=#MyDate.getClass().getName()# -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 11:40 To: CF-Talk Subject: RE: [QUARRANTINE]CFDUMP and value formatting In fact these datetime objects are just a different type of string: {ts '2005-06-14 23:30:11'} ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209425 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: [QUARRANTINE]CFDUMP and value formatting
My understanding was that they were Java datetime objects in CF6 and above, but I could be totally wrong. James Holmes states that they are simply specially formatted strings, but I thought that was just the default output. Either way, CF should not be reformatting any of your form strings without you explicitly calling a function. --Ben Dawson, Michael wrote: 11/14/1979 is a string. Now() and createdate() and parsedatetime() etc. create datetime objects. When you say that these create datetime objects, do they only create correct-formatted date/time strings or is there an actual object underneath? If there is an object can't you do something like: cfset myDate = now() cfoutput#myDate.hour()#/cfoutout If you can't do that sort of stuff, then I would assume that CF just passes strings as date/time objects. (I haven't tested any of this because I'm running a bunch of SQL Server imports right now.) M!ke ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209426 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Server Crashing
Was the ISP suggesting that linking to the word doc like this: http://www.whatever.com/somedirectory/myword.doc caused CF to crash? -Original Message- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 10:24 To: CF-Talk Subject: CF Server Crashing Trying to figure out why one of our servers keeps crashing. Like about 1-4 times per week it needs restarting. The guy at the isp said that it was due to a directory we had ( about 50,000 word doc files at a total of 2.7 gigs ) and said CF was crapping out when it opened the directory to retrieve single word doc files. Yes, when you open the directory through FTP or windows explorer THEN it takes a long time to open it, but NOT when pointed to directly through a url string, it will simply ask user to download etc... and there appears to be no apparent server problem. Any ideas? ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209427 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [QUARRANTINE]CFDUMP and value formatting
See my correction of myself :-) -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 11:50 To: CF-Talk Subject: Re: [QUARRANTINE]CFDUMP and value formatting My understanding was that they were Java datetime objects in CF6 and above, but I could be totally wrong. James Holmes states that they are simply specially formatted strings, but I thought that was just the default output. Either way, CF should not be reformatting any of your form strings without you explicitly calling a function. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209428 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFX_GetIPHostName on CFMX 6.1
Che Vilnonis wrote: has the correct path set in the admin. Any reasons as to why this might not work? Is there a built in Java feature that performs the same function? probably. what does that tag do? guessing, you might look at java.net.InetAddress ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209429 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
You can restart the system a million times, and that will not help you if you are not using the correct login to run the procedure. Ok, I settled for restarting the server 1262 timesbut still having the same problem... seriously. I've tried the procedure with the login name prefixed and still the same thing ' cannot be found'. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209430 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Server Crashing
Was the ISP suggesting that linking to the word doc like this: http://www.whatever.com/somedirectory/myword.doc caused CF to crash? Well they did not say that exactly. They were basically saying that because this directory existed on the same server as CF and that CF accesses it ( in the way you described in your hyperlink ) that this was the root cause of the unknown server crashes. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209431 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFX_GetIPHostName on CFMX 6.1
i hate figuring things out after i posted a question. i had the name of the cfx tag ending w/ the .dll. basically, i had it spelled wrong in the admin. geez! -Original Message- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 12:11 PM To: CF-Talk Subject: Re: CFX_GetIPHostName on CFMX 6.1 Che Vilnonis wrote: has the correct path set in the admin. Any reasons as to why this might not work? Is there a built in Java feature that performs the same function? probably. what does that tag do? guessing, you might look at java.net.InetAddress ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209432 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
both server used the same xml code, the code generated by Word when i saved the word prototype as *.xml. I didn't make any changes to the xml code, the only thing I added is a cfcontent tag at the bottom. When I load the saved cfm file on production server, it pops up the download wizard and opens the prototyped word doc. The file on dev server could compile and also has download wizard, but has error when it tries to open Word application. Error message is A text/html declaration may occur only at the very beginning of input. The xml has caused me a lot of trouble, things will be a lot easier if I can get through this. Thanks for any help. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209434 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CF5 Datasource Woes
Ok here's the problem I have a CF 5 server where i have changed the System DSN's and the CF administrator to point to a new DB server for some sites. HOWEVER the system refuses to release the connection to the old server and still constantly pulls data from that old DB server. I have restarted CF5, Restarted IIS, and even rebooted the server. Anyone have any idea what i might be missing here? jonese ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209433 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Server Crashing
They have a good theory, except that CF doesn't participate in non-CF pages. Once the webserver (IIS, Apache, whatever) connector decides that it's a request for the webserver and not CF (because it isn't a .cfm, ..cfc .jsp extension or anything defined as a servlet mapping) CF has nothing more to do with it and it's the webserver's problem. -Original Message- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 June 2005 12:01 To: CF-Talk Subject: RE: CF Server Crashing Was the ISP suggesting that linking to the word doc like this: http://www.whatever.com/somedirectory/myword.doc caused CF to crash? Well they did not say that exactly. They were basically saying that because this directory existed on the same server as CF and that CF accesses it ( in the way you described in your hyperlink ) that this was the root cause of the unknown server crashes. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209435 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Server Restart
If you can't connect through terminal services because of unclosed sessions you can also do this. To get in through console mode in terminal services. Start/run mstsc /console. It will open remote desktop and just connect like you always do. If your ts is hosed then you can always do the command line thing. -e -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 5:50 PM To: CF-Talk Subject: RE: Server Restart Yea, just use cfexecute, something like this cfexecute name=c:\windows\system32\shutdown.exe arguments=-r -f -Original Message- From: Tarantor [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 5:10 PM To: CF-Talk Subject: Server Restart Hi, I have a dedicated server with Win2k3 and I want to restart it. But terminal services does not work now. I can only reach my server tomorrow morning. But ftp and CF (CFMX7) are working and I can upload any CF code to the server. I thought that I can restart server with a simple CF code. :-) I will check a solution with CFExecute etc., but if you have already a small code or a tip, that would be great. Best regards, Oðuz Demirkapý ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209436 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF Server Crashing
My coworker here reminded me that the ISP said that it was a problem with windows and large directory sizes that was causing the server crashes. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209437 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: [QUARRANTINE]CFDUMP and value formatting
I agree. Either way, CF should not be reformatting any of your form strings without you explicitly calling a function. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209438 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
executing windows scheduled tasks through CF
Is there a way to execute a windows scheduled task through CF? I know I could just cfexecute the file directly, but the scheduled task is already set to run as another user, and I'd like that preserved. Russ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209439 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: [QUARRANTINE]CFDUMP and value formatting
Heh. Apparently, I'm smarter than I gave myself credit for. On the other hand, I didn't think to test it, so you definately get points for that! --Ben James Holmes wrote: See my correction of myself :-) -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 11:50 To: CF-Talk Subject: Re: [QUARRANTINE]CFDUMP and value formatting My understanding was that they were Java datetime objects in CF6 and above, but I could be totally wrong. James Holmes states that they are simply specially formatted strings, but I thought that was just the default output. Either way, CF should not be reformatting any of your form strings without you explicitly calling a function. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209440 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
Security through obscurity doesn't really resolve anything. While a step by step isn't necessary, a more enlightening description would be useful. The next question would be how much of this impacts hosts that offer .jsp regardless of app server in shared hosting environments, or do any? (I've never looked for that kind of hosting, heck I haven't looked for shared hosting in 6 years for that matter). - Calvin -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 9:13 AM To: CF-Talk Subject: RE: CF on shared hosting No, you aren't missing anything - it's just a demo of how failing to disable JSP can lead to a hacked website, because that's how I added the blog (hacking). I didn't really want to give a script kiddie step-by-step (there's enough out there already without giving them even more info) but I can send more details privately if you want. -Original Message- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 9:05 To: CF-Talk Subject: RE: CF on shared hosting http://www.robrohan.com/blog/index.cfm?mode=entryentry=EDCB81 D8-C8F0-B537-1824A53C962059D3 I don't see anything at this page beyond: Guest Blogger - Shared Host Security When sharing CF hosting with others, be aware that security is an issue. With Rob's permission, this post was created by me with no access other than a standard account on the same server. If security matters to you, ask your host to sandbox properly and disable JSP. James Holmes That's all it says. No explanation of *why*, no links, nufink. Am I missing something? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209441 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: can dump or cfoutput, but can not open in application-xml?
So, download and save the file, and open it with a text editor - what's there? It sounds like debugging is on on the dev server, to me. On 6/14/05, Ida Chen [EMAIL PROTECTED] wrote: both server used the same xml code, the code generated by Word when i saved the word prototype as *.xml. I didn't make any changes to the xml code, the only thing I added is a cfcontent tag at the bottom. When I load the saved cfm file on production server, it pops up the download wizard and opens the prototyped word doc. The file on dev server could compile and also has download wizard, but has error when it tries to open Word application. Error message is A text/html declaration may occur only at the very beginning of input. The xml has caused me a lot of trouble, things will be a lot easier if I can get through this. Thanks for any help. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209442 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF on shared hosting
i just checked mine and its ok still, you should call them James. ~Dave the disruptor~ A criminal is a person with predatory instincts who has not sufficient capital to form a corporation. From: James Holmes [EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 8:54 AM To: CF-Talk cf-talk@houseoffusion.com Subject: RE: CF on shared hosting I can't elaborate on any fiddling with the java security policy - I'm just guessing that something might be possible (although I have doubts). As for the JSP security problem, here's the links I've been sending to people: http://www.macromedia.com/devnet/security/security_zone/mpsb02-04.html http://www.robrohan.com/blog/index.cfm?mode=entryentry=EDCB81D8-C8F0-B5 37-1824A53C962059D3 Note that I can still achieve the results of the second link on my current Smarterlinux account (as of 30 seconds ago, because I just checked). -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Tuesday, 14 June 2005 7:04 To: CF-Talk Subject: RE: CF on shared hosting Can you elaborate? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209443 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: MS SQL - Cannot Find Stored Procedure
I've tried the procedure with the login name prefixed and still the same thing ' cannot be found'. Are you absolutely sure you're using the correct login as a prefix? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209444 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
both server used the same xml code, the code generated by Word when i saved the word prototype as *.xml. I didn't make any changes to the xml code, the only thing I added is a cfcontent tag at the bottom. When I load the saved cfm file on production server, it pops up the download wizard and opens the prototyped word doc. The file on dev server could compile and also has download wizard, but has error when it tries to open Word application. Error message is A text/html declaration may occur only at the very beginning of input. The xml has caused me a lot of trouble, things will be a lot easier if I can get through this. Thanks for any help. You will need to examine the document directly, with a regular text editor, rather than opening it directly within Word. There are a variety of ways you can go about this. If your browser prompts you to open or save the document, save it, then open it with Notepad or another ASCII editor. If your browser doesn't prompt you, you might fetch it with a command-line HTTP client like wget. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209445 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
reverse compliment a sequence
I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209446 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
cfset dna = actg / cfset t = structNew() / cfset t.c = g / cfset t.c = c / cfset t.a = t / cfset t.t = a / cfset result = createObject(java, java.lang.StringBuffer) / cfloop from=1 to=#len(dna)# index=i cfset result.append(t[mid(dna, i, 1)]) / /cfloop cfoutput#result.toString()#/cfoutput cheers, barneyb On 6/14/05, Richard Colman [EMAIL PROTECTED] wrote: I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209447 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC At first sight, simply replace (ACTG,TGAC, all) should do it, but I suspect the problem to be a little more complex, can you give us more detail (may be a link) about what a nucleotide sequence may look like? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209448 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
reverse compliment a sequence
ReplaceList()? Dave I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209449 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: reverse compliment a sequence
Well, it needs to be done a character at a time, so, I am not entirely sure that replace (ACTG,TGAC, all) would work in all cases. However, Barney's solution is quite elegant! TNX to both of you for helping with a common genomics transformation. Rick. -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 11:56 AM To: CF-Talk Subject: Re: reverse compliment a sequence I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC At first sight, simply replace (ACTG,TGAC, all) should do it, but I suspect the problem to be a little more complex, can you give us more detail (may be a link) about what a nucleotide sequence may look like? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209450 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
Offhand, using a placeholder and a series of replace()'s will work: replace(text, 'g', '|', 'all') replace(text, 'c', 'g', 'all') replace(text, '|', 'c', 'all') replace(text, 'a', '|', 'all') replace(text, 't', 'a', 'all') replace(text, '|', 't', 'all') replacelist() may work. I'm not sure if it's serial for each item in the list or parallel, and I'm too lazy to investigate. :-) --Ben Richard Colman wrote: I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209451 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: reverse compliment a sequence
That seems like a lot of work. Why instantiate java? cfscript dna = actg; newdna = dna; newdna = replace(newdna,a,z); newdna = replace(newdna,t,a); newdna = replace(newdna,z,t); newdna = replace(newdna,c,z); newdna = replace(newdna,g,c); newdna = replace(newdna,z,g); /cfscript Matthew Small Web Developer American City Business Journals 704-973-1045 [EMAIL PROTECTED] -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 2:54 PM To: CF-Talk Subject: Re: reverse compliment a sequence cfset dna = actg / cfset t = structNew() / cfset t.c = g / cfset t.c = c / cfset t.a = t / cfset t.t = a / cfset result = createObject(java, java.lang.StringBuffer) / cfloop from=1 to=#len(dna)# index=i cfset result.append(t[mid(dna, i, 1)]) / /cfloop cfoutput#result.toString()#/cfoutput cheers, barneyb On 6/14/05, Richard Colman [EMAIL PROTECTED] wrote: I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209452 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
Thanks, I went to http://cfeclipse.tigris.org/ and went to cfeclipse/help/software updates/find and install/search for updates/ But did not find it. - Original Message - From: Dave Carabetta [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 14, 2005 10:33 AM Subject: Re: cfeclipse and cfmx7 On 6/14/05, David Brown [EMAIL PROTECTED] wrote: Has this been released yet? According to Spike's site, it was released 28d, 14hr, 15min ago! http://www.spike.org.uk/blog/index.cfm Regards, Dave. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209453 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Function or CFC: reverse compliment a sequence
So, I am going to use this a bunch of times. Is this kind of thing best setup up as a custom function or CFC? -Original Message- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 12:11 PM To: CF-Talk Subject: RE: reverse compliment a sequence Well, it needs to be done a character at a time, so, I am not entirely sure that replace (ACTG,TGAC, all) would work in all cases. However, Barney's solution is quite elegant! TNX to both of you for helping with a common genomics transformation. Rick. -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 11:56 AM To: CF-Talk Subject: Re: reverse compliment a sequence I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC At first sight, simply replace (ACTG,TGAC, all) should do it, but I suspect the problem to be a little more complex, can you give us more detail (may be a link) about what a nucleotide sequence may look like? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209454 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Function or CFC: reverse compliment a sequence
I see no reason to keep state so I would make it a UDF. Input the original string and return the compliment. You don't work for InGen Corp, do you? M!ke -Original Message- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 2:19 PM To: CF-Talk Subject: Function or CFC: reverse compliment a sequence So, I am going to use this a bunch of times. Is this kind of thing best setup up as a custom function or CFC? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209455 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Function or CFC: reverse compliment a sequence
So, I am going to use this a bunch of times. Is this kind of thing best setup up as a custom function or CFC? Yes! To provide a more serious and hopefully more useful answer, you should certainly use one or the other, but which one you use is up to you and how the rest of your code is structured, and whether you find an object-oriented approach to problem-solving to be useful. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209456 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfeclipse and cfmx7
Thanks, But a heads up. cftextarea is missing the visible attribute. The IDE reports an error on my cftextarea statements since I have visible set to yes. - Original Message - From: Dave Carabetta [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, June 14, 2005 10:33 AM Subject: Re: cfeclipse and cfmx7 On 6/14/05, David Brown [EMAIL PROTECTED] wrote: Has this been released yet? According to Spike's site, it was released 28d, 14hr, 15min ago! http://www.spike.org.uk/blog/index.cfm Regards, Dave. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209457 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
I didn't say it was perfect. ;) The replace stuff is a lot better, most likely. I used a StringBuffer because string manipulation in Java is quite slow, and by using a buffer I'd circumvent the issue almost completely. cheers, barneyb On 6/14/05, Matthew Small [EMAIL PROTECTED] wrote: That seems like a lot of work. Why instantiate java? cfscript dna = actg; newdna = dna; newdna = replace(newdna,a,z); newdna = replace(newdna,t,a); newdna = replace(newdna,z,t); newdna = replace(newdna,c,z); newdna = replace(newdna,g,c); newdna = replace(newdna,z,g); /cfscript -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209458 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
reverse compliment a sequence
Well, i was going to suggest using cfoutput#ReplaceList(ACTG,C,G,A,T,G,C,T,A)#/cfoutput but on my system that replaces ACTG with ACAC i'm confused? -Original Message- Subject: reverse compliment a sequence From: Barney Boisvert [EMAIL PROTECTED] Date: Tue, 14 Jun 2005 11:53:40 -0700 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messages threadid=40706forumid=4#209447 cfset dna = actg / cfset t = structNew() / cfset t.c = g / cfset t.c = c / cfset t.a = t / cfset t.t = a / cfset result = createObject(java, java.lang.StringBuffer) / cfloop from=1 to=#len(dna)# index=i cfset result.append(t[mid(dna, i, 1)]) / /cfloop cfoutput#result.toString()#/cfoutput cheers, barneyb On 6/14/05, Richard Colman [EMAIL PROTECTED] wrote: I need to to reverse compliment a nucleotide sequence, so C become a G G becomes a C A becomes a T T becomes an A I need to go through a string a character at a time and build a new string. So: ACTG becomes TGAC Is there an easy way to do this? Richard Colman Institute for Genomics and Bioinformatics 949-824-1816, 701-5330 [EMAIL PROTECTED] -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209459 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Function or CFC: reverse compliment a sequence
-Original Message- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 3:19 PM To: CF-Talk Subject: Function or CFC: reverse compliment a sequence So, I am going to use this a bunch of times. Is this kind of thing best setup up as a custom function or CFC? It depends - if you have a bunch of functions like this then it can be really nice to maintain them in a CFC - but you have to instantiate the CFC to access the functions. If it's in few places then a UDF is quicker and simpler - but you have to make sure to import it everywhere it's used (or import it in the application initialization which means it will be exist for every request). Jim Davis ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209460 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
ReplaceList is the same as a series of replace operations. so first it replaces the C with a G leaving AGTG, then G with C leaving ACTC, then A with T leaving TCTC, and finally T with A leaving ACAC. replaceList(ACTG, A,T,Z,G,C,Z, Z,A,T,Z,G,C) should work cheers, barneyb On 6/14/05, RADEMAKERS Tanguy [EMAIL PROTECTED] wrote: Well, i was going to suggest using cfoutput#ReplaceList(ACTG,C,G,A,T,G,C,T,A)#/cfoutput but on my system that replaces ACTG with ACAC i'm confused? -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209461 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: reverse compliment a sequence
-Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 3:33 PM To: CF-Talk Subject: Re: reverse compliment a sequence ReplaceList is the same as a series of replace operations. so first it replaces the C with a G leaving AGTG, then G with C leaving ACTC, then A with T leaving TCTC, and finally T with A leaving ACAC. 'Xactly - so while you could condense one of the multiple-replace options down to one line it's probably not worth it as the code will be all but unintelligible. Personally I find replacelist to be really obtuse. ;^) Jim Davis ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209462 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
both server used the same xml code, the code generated by You will need to examine the document directly, with a regular text editor, rather than opening it directly within Word. There are a variety of ways you can go about this. If your browser prompts you to open or save the document, save it, then open it with Notepad or another ASCII editor. If your browser doesn't prompt you, you might fetch it with a command-line HTTP client like wget. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! The doc downloaded from local server has a few line spaces at the beginning. Now I know that this is why it keeps showing the error message. Why does it create these line spaces? ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209463 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
the replace idea won't work. it will replace all 'a' with 'z', then replace all 'z' with 't' this leads to all 'a' being replaced with 't', not with all 'a' being replaced with 't'. without instantiating java... cfset newDNA = cfset iTo = len(dna) cfloop from=1 to=#iTo# index=i cfset letter = MID(dna,i,1) cfswitch expression=#letter# cfcase value=Ccfset newLetter = G/cfcase cfcase value=Gcfset newLetter = C/cfcase cfcase value=Acfset newLetter = T/cfcase cfcase value=Tcfset newLetter = A/cfcase cfdefaultcasecfset newLetter = letter/cfdefaultcase /cfswitch cfset newDNA = newDNA newLetter /cfloop Probably not the most efficient, but it should get you there. -Jeff Barney Boisvert wrote: I didn't say it was perfect. ;) The replace stuff is a lot better, most likely. I used a StringBuffer because string manipulation in Java is quite slow, and by using a buffer I'd circumvent the issue almost completely. cheers, barneyb On 6/14/05, Matthew Small [EMAIL PROTECTED] wrote: That seems like a lot of work. Why instantiate java? cfscript dna = actg; newdna = dna; newdna = replace(newdna,a,z); newdna = replace(newdna,t,a); newdna = replace(newdna,z,t); newdna = replace(newdna,c,z); newdna = replace(newdna,g,c); newdna = replace(newdna,z,g); /cfscript ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209464 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
The doc downloaded from local server has a few line spaces at the beginning. Now I know that this is why it keeps showing the error message. Why does it create these line spaces? Presumably, because you have some server-side code that is being executed, and once that code is executed the client just receives the blank line where the code would have been. Why don't you get rid of the white space using the RESET attribute of the CFCONTENT tag, right before your content? cfwhatever ... /cfwhatever cfcontent type=whateverMIMEtypeyou'reusing reset=yes?xml version=1.0 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209465 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: reverse compliment a sequence
Replace() will work if you use *four* temporary values. Replace 'a' with '1' Replace 'c' with '2' Replace 'g' with '3' Replace 't' with '4' Then Replace '1' with 't' Replace '2' with 'g' Replace '3' with 'c' Replace '4' with 'a' Then, you mix in some love and you have a dino-baby. M!ke -Original Message- From: Jeff Congdon [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 2:41 PM To: CF-Talk Subject: Re: reverse compliment a sequence the replace idea won't work. it will replace all 'a' with 'z', then replace all 'z' with 't' this leads to all 'a' being replaced with 't', not with all 'a' being replaced with 't'. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209466 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
the replace idea won't work. it will replace all 'a' with 'z', then replace all 'z' with 't' Right. That's how it's supposed to work. this leads to all 'a' being replaced with 't', not with all 'a' being replaced with 't'. Huh? --Ben ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209467 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
Amen to that. Single replaces are always better. Easier to read, far more indicitive of what's really happening, and probably very close to equally performant. cheers, barneyb On 6/14/05, Jim Davis [EMAIL PROTECTED] wrote: -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 3:33 PM To: CF-Talk Subject: Re: reverse compliment a sequence ReplaceList is the same as a series of replace operations. so first it replaces the C with a G leaving AGTG, then G with C leaving ACTC, then A with T leaving TCTC, and finally T with A leaving ACAC. 'Xactly - so while you could condense one of the multiple-replace options down to one line it's probably not worth it as the code will be all but unintelligible. Personally I find replacelist to be really obtuse. ;^) Jim Davis -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209468 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
Yes sorry, I meant the replace idea outlined in the quoted section of my email ;) The replace idea below will work as long as those temporary values don't exist anywhere in the original string, which seems a risky assumption. Not knowing the original values though, I can't speak for that. -Jeff Dawson, Michael wrote: Replace() will work if you use *four* temporary values. Replace 'a' with '1' Replace 'c' with '2' Replace 'g' with '3' Replace 't' with '4' Then Replace '1' with 't' Replace '2' with 'g' Replace '3' with 'c' Replace '4' with 'a' Then, you mix in some love and you have a dino-baby. M!ke -Original Message- From: Jeff Congdon [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 2:41 PM To: CF-Talk Subject: Re: reverse compliment a sequence the replace idea won't work. it will replace all 'a' with 'z', then replace all 'z' with 't' this leads to all 'a' being replaced with 't', not with all 'a' being replaced with 't'. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209469 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
4 temp values is overkill. You only need 2 (one for the a-z and one for the g-c; you can actually use the same char for both). atgcacgt a-z : ztgczcgt t-a : zagczcga z-t : tagctcga g-z : tazctcza c-g : tazgtgza t-c : tacgtgca atgcacgt tacgtgca So, you get the correct compliment. --Ben Dawson, Michael wrote: Replace() will work if you use *four* temporary values. Replace 'a' with '1' Replace 'c' with '2' Replace 'g' with '3' Replace 't' with '4' Then Replace '1' with 't' Replace '2' with 'g' Replace '3' with 'c' Replace '4' with 'a' Then, you mix in some love and you have a dino-baby. M!ke -Original Message- From: Jeff Congdon [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 2:41 PM To: CF-Talk Subject: Re: reverse compliment a sequence the replace idea won't work. it will replace all 'a' with 'z', then replace all 'z' with 't' this leads to all 'a' being replaced with 't', not with all 'a' being replaced with 't'. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209470 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
DNA is composed of only those 4 nucleotides, so any other values can't occur within the string. Hence the temp value solution works. If not, then you'd have to do the live replace method that your or I proposed. I suspect my solution would be significantly faster, particularly over longer strings, but it's the same idea. cheers, barneyb On 6/14/05, Jeff Congdon [EMAIL PROTECTED] wrote: Yes sorry, I meant the replace idea outlined in the quoted section of my email ;) The replace idea below will work as long as those temporary values don't exist anywhere in the original string, which seems a risky assumption. Not knowing the original values though, I can't speak for that. -Jeff -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209471 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: reverse compliment a sequence
Jeff Congdon wrote: The replace idea below will work as long as those temporary values don't exist anywhere in the original string, which seems a risky assumption. Not knowing the original values though, I can't speak for that. Since he's looking for a DNA sequence compliment, we know that the only chars present will be a,t,g,c -- the four types in DNA. Maybe not common knowledge, though. Frequently, I use chr(7) == 'bell' because the bell symbol is generally untypable. :-) --Ben ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209472 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: reverse compliment a sequence
cfset outString = replaceList(inString, C,G,A,T, 1,2,3,4) / cfset outString = replaceList(outString, 1,2,3,4, G,C,T,A) / Should work. -- Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include stdjoke.h ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209473 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: can dump or cfoutput, but can not open in application-xml?
I've had similar issues with using / generating xml with Coldfusion. For your particular issue, I used the cfsilent tag as well as cfsetting enabledebuggingoutput=no to stop any extra characters from showing up... I believe it was Emmet who actually found some hidden characters before the xml that couldn't be seen in notepad with a hex editor... Cheers, Kevin -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 1:56 PM To: CF-Talk Subject: RE: can dump or cfoutput, but can not open in application-xml? The doc downloaded from local server has a few line spaces at the beginning. Now I know that this is why it keeps showing the error message. Why does it create these line spaces? Presumably, because you have some server-side code that is being executed, and once that code is executed the client just receives the blank line where the code would have been. Why don't you get rid of the white space using the RESET attribute of the CFCONTENT tag, right before your content? cfwhatever ... . /cfwhatever cfcontent type=whateverMIMEtypeyou'reusing reset=yes?xml version=1.0 ... Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209474 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Server Restart
Not every machine has shutdown.exe (none of my win2k desktop or server systems has it). Even so there is still a way to do this: cfexecute name=c:\winnt\system32\iisreset.exe arguments=/reboot /cfexecute done -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209475 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54