coldfusion

cfspreadsheet alphanumeric values ending in d

让人想犯罪 __ 提交于 2020-01-03 08:59:50
问题 <cfscript> Workbook = Spreadsheetnew("Workbook"); SpreadSheetSetCellValue(WorkBook, "4D", 1, 1); // displayed 4 SpreadSheetSetCellValue(WorkBook, "4C", 1, 2); // displayed 4C SpreadSheetSetCellValue(WorkBook, "4E", 1, 3); // displayed 4E SpreadSheetSetCellValue(WorkBook, "5C", 1, 4); // displayed 5C SpreadSheetSetCellValue(WorkBook, "5D", 1, 5); // displayed 5 SpreadSheetSetCellValue(WorkBook, "4d", 1, 6); // displayed 4 MYfile = "d:\dw\dwtest\dan\abc.xls"; </cfscript> <cfspreadsheet action=

cfspreadsheet alphanumeric values ending in d

依然范特西╮ 提交于 2020-01-03 08:59:12
问题 <cfscript> Workbook = Spreadsheetnew("Workbook"); SpreadSheetSetCellValue(WorkBook, "4D", 1, 1); // displayed 4 SpreadSheetSetCellValue(WorkBook, "4C", 1, 2); // displayed 4C SpreadSheetSetCellValue(WorkBook, "4E", 1, 3); // displayed 4E SpreadSheetSetCellValue(WorkBook, "5C", 1, 4); // displayed 5C SpreadSheetSetCellValue(WorkBook, "5D", 1, 5); // displayed 5 SpreadSheetSetCellValue(WorkBook, "4d", 1, 6); // displayed 4 MYfile = "d:\dw\dwtest\dan\abc.xls"; </cfscript> <cfspreadsheet action=

ColdFusion non-scoped vs. VARIABLES scope: performance vs. readability?

时光毁灭记忆、已成空白 提交于 2020-01-03 08:58:28
问题 In my ColdFusion code, I have made it a habit to always treat the variables scope as my default scope (i.e., when another scope doesn't fit). My understanding is that this improves efficiency, since the ColdFusion processor doesn't have to spend cycles determining the scope in which the variable is contained. However, I've always been annoyed by how verbose this makes my code. So, my question is, realistically, is explicitly scoping every variable worth the verbosity? I understand that each

Coldfusion jQuery getJSON : Getting WDDX instead of JSON

倾然丶 夕夏残阳落幕 提交于 2020-01-03 08:58:06
问题 I am using Brian Rinaldi's coldfusion function to convert a dotnet webservice dataset into a structure of queries. Each query is then returned to the client page as JSON to be used in a jQuery function. The queries are valid query objects. However, JSON is not being returned. Instead I get WDDX as follows: <wddxPacket version='1.0'> <header /> <data> <recordset rowCount='31' fieldNames='startdate,starttime,subscribercode,dest_number,description,ConnDuration,Callcharge,Usage,ConnType,pages

Coldfusion jQuery getJSON : Getting WDDX instead of JSON

♀尐吖头ヾ 提交于 2020-01-03 08:57:07
问题 I am using Brian Rinaldi's coldfusion function to convert a dotnet webservice dataset into a structure of queries. Each query is then returned to the client page as JSON to be used in a jQuery function. The queries are valid query objects. However, JSON is not being returned. Instead I get WDDX as follows: <wddxPacket version='1.0'> <header /> <data> <recordset rowCount='31' fieldNames='startdate,starttime,subscribercode,dest_number,description,ConnDuration,Callcharge,Usage,ConnType,pages

How do I generate an OpenOffice Draw document?

半世苍凉 提交于 2020-01-03 08:32:19
问题 I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect those things with arrows. Ideally, auto-organise things into sensible positions. I don't want to spend hours reading about some "UNO" thing - I just want code examples that I can

How do I determine if a scheduled task was ran automatically or ran in a browser?

旧巷老猫 提交于 2020-01-03 03:24:07
问题 I am running some code as a scheduled task, setup in CF Administrator. Is there a way to tell in the code that the code ran as a scheduled task, whether it was ran by clicking the run icon in the CF Administrator scheduled task area, or whether it was called directly in a browser? Adding additional variables will not work? 回答1: From the test link in the CF admin If you're asking if you can identify the difference between a scheduled task being run manually by clicking the test link in the

Strange JRUN issue. JRUN eating up 50% of memory for every two hours

[亡魂溺海] 提交于 2020-01-03 03:01:14
问题 I have strange JRUN issue. I have installed ColdFusion 9.0 on Amazon EC2 instance and seems everything working good except JRUN eating up arround 50% of memory for particular timespan. For countinous two hours it take 50% of CPU usage and then next 45 min to an hour it work normally and again it take 50% for next two hours. I am not running any schedule file. Also I will appreciate if anyone guide me how we can know which request causing JRUN to eat memory. Thanks for suggestion MIKE, but it

Import Certificate for ColdFusion10

拟墨画扇 提交于 2020-01-02 18:44:12
问题 Trying to do a certificate import into the cacerts story in ColdFusion10. I am able to run these commands and get the .cer file to import using these commands. Manually import a certificate Go to a page on the SSL server in question. Double-click the lock icon. Click the Details tab.Click Copy To File. Select the base64 option and save the file. Copy the CER file into C:\ColdFusion9\runtime\jre\lib\security (or whichever JRE ColdFusion is using). Run the following command in the same

Encrypt for SagePay forms using ColdFusion

最后都变了- 提交于 2020-01-02 16:06:28
问题 I am trying to follow a specification for an encrypted field in SagePay 3.00 using ColdFusion 10. The requirement is to encrypt the string as AES(block size 128-bit) in CBC mode with PKCS#5 padding using the provided password as both the key and initialisation vector and encode the result in hex. It's the "using the provided password" that is causing the problem. At the moment I have myStr = 'assortednamevaluepairsetc'; providedPassword = 'abcdefghijklmnop'; myCrypt = Encrypt(myStr