coldfusion

Coldfusion Local scope outside of a function?

霸气de小男生 提交于 2019-12-21 20:44:25
问题 What exactly is the local scope defined outside of a function? Consider the following code: <cfscript> local.madVar2 = "Local scope variable"; function madness() { var madVar = "madness variable"; madVar2 = "madness two variable"; writeOutput("local: <BR>"); writeDump(local); writeOutput("========================================= <BR>"); writeOutput("local.madVar2: <BR>"); writeDump(local.madVar2); writeOutput("<BR>========================================= <BR>"); writeOutput("madVar2: <BR>")

Is there a solution to this cfqueryparam memory leak?

99封情书 提交于 2019-12-21 18:06:08
问题 Updates: I have submitted the bug to Adobe and referenced this SO question In my real-world code where the problem occurred I decided to just remove my use of cfqueryparam. I am now using a custom function to format the param based on type. There are security and speed concerns that I will have to deal with but it gets the particular process working acceptably under current load. In the future I am planning on going to process that pulls the data files into temporary tables in the database. I

Selecting A row range from a query of queries

▼魔方 西西 提交于 2019-12-21 17:44:41
问题 How would I select a specific range of rows using a query of queries? e.g <cfquery name="myQuery" maxrows ="20" startrow="12"> SELECT * FROM previous_query WHERE row_numer >= 12 </cfquery> that sort of thing... 回答1: This was a tricky one but your problem intrigued me. I think I may have a solution I wrote a function that delete everything prior to the rows you want and then deletes everything after the rows you want. the function rowrange() takes 3 parameters. 1. the queryname you are working

What material did you use to learn Flex/Air, and with ColdFusion + BlazeDS/LCDS? [closed]

不羁岁月 提交于 2019-12-21 17:41:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What material did you use to learn Flex/Air itself, and with ColdFusion + BlazeDS/LCDS? 回答1: Flex in a Week http://www.adobe.com

item-not-found(404) when trying to get a node using Smackx pubsub

北战南征 提交于 2019-12-21 05:39:18
问题 I'm trying to use the latest Smackx trunk to get and then subscribe to a pubsub node. However, openfire just sends me a back an error: item not found (404). I am instantiating the java objects from ColdFusion, so my code snippets might look funny but maybe someone will be able to tell me what I've forgotten. Here's how I create the node: ftype = createObject("java", "org.jivesoftware.smackx.pubsub.FormType"); cform = createObject("java", "org.jivesoftware.smackx.pubsub.ConfigureForm").init

Keytool is not recognized as an internal or external command

孤街醉人 提交于 2019-12-21 03:14:09
问题 I am trying to discover the list of trusted authorities in my Java Runtime using the instructions in this article. When I typed the command below: C:\ColdFusion8\runtime\jre\lib>keytool -list -storepass changeit -noprompt -keystore I got the following error: 'keytool' is not recognized as an internal or external command, operable program or batch file. I checked that the directory containing my keytool executable is in the path. (On my Windows 7 machine, it's in C:\Program Files (x86)\Java

Sharing login credentials between ColdFusion servers?

让人想犯罪 __ 提交于 2019-12-21 02:47:32
问题 If I have multiple CF8 servers, can a user login on one server, but share the login credential among all servers (no re-login required)? 回答1: Maybe question is about sharing session? This can be done using serialized J2EE sessions or using shared client variables. For example, this can be done in following way. Create empty database on one of servers (I've created MySQL one). Create datasources pointing to this DB on all CF servers. Use this datasource as Server Settings > Client Variables >

How do I turn a ColdFusion page into a PDF download?

有些话、适合烂在心里 提交于 2019-12-20 12:34:37
问题 I would like to turn the HTML generated by my CFM page into a PDF, and have the user prompted with the standard "Save As" prompt when navigating to my page. 回答1: You should use the cfdocument tag (with format="PDF") to generate the PDF by placing it around the page you are generating. You'll want to specify a filename attribute, otherwise the document will just stream right to your browser. After you have saved the content as a PDF, use cfheader and cfcontent in combination to output the PDF

How do I use NTLM authentication with Active Directory

匆匆过客 提交于 2019-12-20 09:25:11
问题 I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory. There is a good description of NTLM and the encryption used for the passwords, which I used to implement this, but I am not sure of how to verify if the user's password is valid. I am using ColdFusion but a solution to this problem can be in any language (Java, Python, PHP

Building a Collaborative filtering / Recommendation System

不羁岁月 提交于 2019-12-20 08:52:19
问题 I'm in the process of designing a website that is built around the concept of recommending various items to users based on their tastes. (i.e. items they've rated, items added to their favorites list, etc.) Some examples of this are Amazon, Movielens, and Netflix. Now, my problem is, I'm not sure where to start in regards to the mathematical part of this system. I'm willing to learn the math that's required, it's just I don't know what type of math is required. I've looked at a few of the