You'll have to do it manually
http://www.herongyang.com/Cryptography/DES-JDK-What-Is-PKCS5Padding.html
- Log in to post comments
You'll have to do it manually
http://www.herongyang.com/Cryptography/DES-JDK-What-Is-PKCS5Padding.html
AES ECB encryption/decryption is done using AESEncode/AESDecode methods in the same package. They are deprecated so don't appear in documentation.
You can use <img> tag and get a Google Maps image using Static GMaps API
Documentation for <img> https://docs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=GRPT_…
Documentation for static maps API https://developers.google.com/maps/documentation/maps-static/overview
There are 2 utilities which may help you:
- PROFILE https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
- PERFMON https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
Both can be used for routines/classes in deployed mode.
.png)
You need to right-click and select Export
Yeah I think we can shred a couple of characters using this technique from your code as well - it will become 71 characters, best so far:
f i=1:1:N f j="",1:1:i,i-1:-1:1 w !?N-j f l=1:1:j{w l} f r=l-1:-1:1 w rYeah I thought N>9 is "bonus level" - it will definitely require more characters. Original answer (top one) was only working for N<=9 anyway
Shrunk your code a bit, 71 chars:
f s=1:1:s f i=1:1:s,s-1:-1:1,"" s a=i f k=a-1:-1:1{s a=k_a_k} w !?s-i,aI shrunk your code a bit, it's 72 characters now:
f n=1:1:n f i=1:1:n,n-1:-1:1,"" s a=$e(112345678,2,i) w !?n-i,a,i,$re(a)Another way to look at results -- by medal count. Border is part 1 (doesn't count), background is part 2.
.png)
$c(7) also works in MacOs -- makes terminal window jump
Despite being disappointing, this is actually a correct result - you would get the same with OS level tools
Hi Nikita,
> A need to change how the self-update mechanism works or shut it down completely.
If a package is distributed via package manager, its self-update should be completely removed. It should be a responsibility of package manager to alert the user that new version of package is available and to install it.
> Thus, create an additional pipeline (or split the codebase) for 2 WebTerminal versions: ZPM's one and a regular one with all the tests and
so on.
Some package managers allow to apply patches to software before packaging it, but I don't think it's the case for ZPM at the moment. I believe you will need to do a separate build for ZPM/non-ZPM versions of your software. You can either apply some patches during the build, or refactor the software so that it can run without auto updater if it's not installed.
The whole purpose of package manager is to get rid of individual installer/updater scripts written by individual developers and replace them with package management utility. So that you have a standard way of installing, removing and updating your packages. So I don't quite understand why this question is raised in this context -- of course package manager shouldn't support custom installers and updaters. It might need to support Projections eventually because as you said it's a part of language, but definitely not for installing purposes.
In addition to talks mentioned by Luca, I will be hosting an Experience Lab "Containerising Apps with IRIS" where you will be able to build and publish your own container with IRIS-based application: Tuesday 1:30PM and Wednesday 12:00PM, you need to pre-register but there are still spots available for both time slots.
Hi Jude,
For questions like this you should use TRC https://trc.intersystems.com/ -- this is likely related to your environment setup which shouldn't be shared publicly and there are not many Trak people on the Developer community anyway.
Cheers
Sergei
Just as a side comment, this has actually nothing to do with cookies. Cookies don't protect against CSRF. This is a custom HTTP header with a word "Cookie" in its name. So while it's correct it's a bit confusing.
I was not sure if checking for just presence of the header and not an actual value is enough (we assign a random value at logon time and store it in session), but apparently all browsers prevent cross-site AJAX requests so 3rd party site can't send custom header.
In that case I think it would be nice to have several ways to distribute a project:
One thing to consider is that Community Edition has a restriction on how many additional namespaces and databases you can have (and that's exactly zero). So while it may be nice to be able to have 3rd party tool in it's own database, it would also be nice to be able to use it from within USER and %SYS.
OK now I'm curious where it was originally posted! :)
You can use $zu function directly with third parameter
$ZU(171,1) returns CPU time (in milliseconds) on any OS, as a string in format SYS_time,USER_time $ZU(171,1,pid) returns total CPU time (system + user) for process pid.
However this will return CPU time -- the time CPU was actually serving the process, not the time since process was started (when process is idle, this counter does not increase). Eduard's solution would be better if you need the total time.
Did you check GetCPUTime() method of that class?
I'm glad you found the solution, though still not sure about its usefulness :)
I believe it's enough to have [Final] keyword set in deployed mode to give a developer a hint that this class should not be extended.
If you want to enforce this behaviour, I would add a check into each method as a first line , something like
if $this.%ClassName(1)'="My.Class" quit $$$ERROR(50000,"don't extend this class")
Since all code will be deployed, developers will not be able to remove this check easily.
You can also try to add a method-generator, I believe when you have a deployed class with method generator it will not be able to compile a subclass without method generator's source (though I'm not sure).
Good one!
You can actually use 10e21 in COS code, it's a valid number format.
Also don't forget to change docker storage driver if you want to run examples http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=ADOCK_additional_driver
Please find slides for my presentation here https://www.slideshare.net/secret/bnUsuAWXsZCKrp (Modern Development Environment)
Please find repository here https://github.com/logist/wduk18 - you will need to load your own IRIS container and change "FROM" statement in Dockerfile - see http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=AFL_containers_deploy_repo for instructions. You'll also need license key because REST service will not work without it.
Hi Galena,
It's not quite clear what you are tying to do, but if you want to interact with IEX API via IRIS integration engine it's just a standard REST API so you can use techniques described in this book http://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GREST (chapters 4 and 5)