go to post Eduard Lebedyuk · Feb 20, 2019 Please do not use DES as it's currently a broken cypher with bruteforce time of about a day.
go to post Eduard Lebedyuk · Feb 19, 2019 Yes, that would work for notification.The main issue is resuming from where things went wrong.
go to post Eduard Lebedyuk · Feb 19, 2019 My goal is not to reexecute the process, but rather resume from the point I got an error (or immediately before, i.e. on a last successfull request/response).
go to post Eduard Lebedyuk · Feb 19, 2019 I don't think it's possible.You can spawn cterm from powershell with ccontrol cterminal ENSEMBLE
go to post Eduard Lebedyuk · Feb 19, 2019 Is that a production instance?Is that 8bit or Unicode instance?What I/O tables NLS routine shows? (Note that modifying locales/defaults can be potentially application-breaking change so do it only if you know what you're doing) zn "%SYS" do ^NLS 1) Display current locale 2) Select defaults 3) Change locale 4) Display loaded settings 5) Advanced NLS option? 2 1) Internal tables 2) I/O tables 3) CSP files 4) Date, time and number formats Category of defaults? 2 Items marked with (*) represent the locale's original default I/O table Current default --------------------- -------------------- 1) Process RAW (*) 2) Cache Terminal UTF8 (*) 3) Other terminal UTF8 (*) 4) File UTF8 (*) 5) Magtape UTF8 (*) 6) TCP/IP RAW (*) 7) System call RAW (*) 8) Printer CP1251 (*)
go to post Eduard Lebedyuk · Feb 19, 2019 Try: CHCP 65001 in the beginning of your script. Also you need to check that your console font has required symbols.
go to post Eduard Lebedyuk · Feb 18, 2019 Would process user not cut it?You can later convert it into app user if you have 1:1 matching.It would work faster than getting local variables.
go to post Eduard Lebedyuk · Feb 18, 2019 Do you want to convert XML into Cahce object? If so, check this docs on how to project XML into objects.Do you want to get some value(s) from the XML? If so, check XPATH docs.Do you want to convert XML into another XML? If so, check XSLT docs.If you just want to pass XML as string, you can pass it as is.
go to post Eduard Lebedyuk · Feb 18, 2019 Some general advice:Root directory should be a configurable setting,Before changing config, call NormalizeDirectory method of %File classCheck that directory exists and you can write to itIf it's Ensemble check that Ensemble can write to that directory tooTry to minimize the number of root directories, if you have to have several. It's preferable to use subdirectories.Calculate all subdirectories via calls to SubDirectoryName method from %File classYou should not have slash symbols for directories/files purposes in your code base.
go to post Eduard Lebedyuk · Feb 18, 2019 This seems to work for me: set x = "%sqlcq.something.value.foo" write x?1"%sqlcq".E That said, I assume you're iterating over some list of classes. If so, it may be better to add this or equivalent condition to the builder of the class list. If you do it via SQL and %Dictionary package, then excluding System classes, or generated classes or even classes that %STARTSWITH '%sqlcq' may be a better solution.
go to post Eduard Lebedyuk · Feb 16, 2019 Any particular reason to prefer: $system.Dictionary.comMemberKeyGet over $$$comMemberKeyGet ?
go to post Eduard Lebedyuk · Feb 16, 2019 Please modify your answer to point to InterSystems online documentation.
go to post Eduard Lebedyuk · Feb 8, 2019 You can easily develop your own custom function. Here's an example of a custom function which checks that the number is valid. /// Functions to use in rule definitions. Class Custom.Functions Extends Ens.Rule.FunctionSet { /// Returns 1 if a string is a number, 0 otherwise ClassMethod IsValidNumber(string As %String) As %Boolean [ CodeMode = expression, Final ] { $ISVALIDNUM(string) } }
go to post Eduard Lebedyuk · Feb 6, 2019 COS Faker is for generating random data.I'm more interested in meaningful initial data.
go to post Eduard Lebedyuk · Feb 6, 2019 Are you using EnsLib.FTP.InboundAdapter?Deletion happens after file is processed.What error are you getting?File size absolutely should not affect deletion result.
go to post Eduard Lebedyuk · Feb 6, 2019 Two ways to solve this error:Change permissions for the OS user you use to connect to the FTP so the user can delete (write permission) filesSet service setting DeleteFromServer to 0