go to post Ben Spead · Mar 23, 2017 Personally, I would do this via Source Control and not via Studio. The approach to this will depend on your source control structures, etc, but the easiest way to handle this for me would be:1) Make sure that everything in my package was checked into my branch, e.g. /MyApp/cls/MyFirstPackage/...2) Since my source tree is structured according to package names, I would copy /MyApp/cls/MyFirstPackage/... to /MyApp/cls/MySecondPackage/... 3) Check in /MyApp/cls/MySecondPackage/... into source control4) Check out /MyApp/cls/MySecondPackage/... 5) Do a Find & Replace in /MyApp/cls/MySecondPackage/... to replace all instances of "MyFirstPackage" with "MySecondPackage"6) Diff /MyApp/cls/MySecondPackage/... and make sure all replacements are desired7) Check in /MyApp/cls/MySecondPackage/... 8) Run my build routine to pull all of /MyApp/cls/MySecondPackage/... into my namespace and Compile it (or just use $system.OBJ.LoadDir() if you don't already have a build routine)Voila! Package is duplicated and all checked into source control ready for further changes :) The above process should only take a couple of minutes.
go to post Ben Spead · Mar 22, 2017 You can use %CSP.StreamServer class. See http://localhost:<your post>/csp/samples/streamserve.csp for a sample showing how to use it.
go to post Ben Spead · Mar 16, 2017 See https://github.com/intersystems-ru/webterminal for a good solution
go to post Ben Spead · Mar 16, 2017 The lock controls the source control hooks, so anything relying on the hooks should prevent changes to items under source control. Parts of the Ensemble Management Portal and the DeepSee portal tie in the hooks for that namespace, so I can see there being a possible interplay there. I have never used the "Deploy Production Changes" utility so I can't say for certain if the source control lock is coming into play there.You should work through this with Managed Services to find a resolution.
go to post Ben Spead · Mar 16, 2017 No - CCR is not a 'released product'. But there are implementation sites partnering with InterSystems that use it.
go to post Ben Spead · Mar 15, 2017 Scott,See the Documatic for the following methods in %Studio.SourceControl.ISC:classmethod Lock(Admin As %Boolean = 0) as %StatusLock the source control hooks for this instance.The default setting will be "Locked". Passing a '1' for the Admin parameter will set the instance to AdminLocked.See Locked for more details.classmethod Locked() as %StringReturns value that shows whether or not this instance is "Locked"Return values are:"": Instance has never been Locked or Unlocked (default)0: Instance is Unlocked1: Instance is Locked2: Instance is AdminLockedWhen the instance is Locked or AdminLocked, no changes can be made via Studio. It is possible to change from Locked to NotLocked via different UIs. When an instance is AdminLocked it should only be possible to unlock it via the Unlock method.classmethod Unlock() as %StatusUnlock the source control hooks for this instance.
go to post Ben Spead · Mar 10, 2017 Andreas - should this be cross-posted on the InterSystems Compatibility blog?http://blog.intersystems.com/compatibility/My guess is that there may be some people who follow that who might miss this significant announcement on the Developer Community. I know I missed this when it was originally posted.
go to post Ben Spead · Mar 10, 2017 You should never do that. That is a stripped down version of apache which should only be used for the Management Portal. You need to install your own full web server
go to post Ben Spead · Mar 7, 2017 Thanks Tim!! Very helpful.One question /comment - your approach doesn't allow for case insensitivity of the http(s)/ftp prefix. I would prefer to set the case insensitivity flag for the whole pattern.According to the ICU documentation (http://userguide.icu-project.org/strings/regexp#TOC-Flag-Options): [quote](?ismwx-ismwx)Flag settings. Change the flag settings. Changes apply to the portion of the pattern following the setting. For example, (?i) changes to a case insensitive match.[/quote]So I was able to make it work as follows: set matcher=##class(%Regex.Matcher).%New("(?i)(\b(https?|ftp)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])",string)set string = matcher.ReplaceAll("<a href='$1' target='_blank'>$1</a>") Thanks for the tips and pointing me in the right direction!
go to post Ben Spead · Feb 6, 2017 Sergey - I also appreciate the point about the "component" approach (as we're using 1.x + Angular Material). If you have any good references or tutorials on that approach (and/or contrasting with the 'typical' approach to do Angular 1.x), please post them :)
go to post Ben Spead · Jan 23, 2017 Gaolai,You need leading whitespace on any line of a routine which is not a line tag. Try putting a space or Tab on your 2nd and 3rd lines.Also, "Hello there!" isn't a valid COS command. Try using: Write "Hello There!"
go to post Ben Spead · Jan 10, 2017 If we change the unanswered query to only include questions with 'true' answers selected, do we expect everyone to be good enough citizens to go back and select true answers once they are provided? Would admins be able to mark true answers if the author abandons the thread?
go to post Ben Spead · Dec 22, 2016 Removed as requested (although I personally think that the screenshot makes people more likely to take a look at your code rather than less likely).
go to post Ben Spead · Dec 12, 2016 For debugging or programmatic purposes? If debugging / interactive you can just zwrite the variable to see the properties.
go to post Ben Spead · Nov 10, 2016 Michael - thanks for the article. It would be really helpful if you could add a paragraph at the top explaining what the Ensemble scheduler is and what it's main use-cases are so that people can tell quickly whether or not this is something which they would want to learn more about. Perhaps as an Intro?
go to post Ben Spead · Nov 10, 2016 %ZNODENAME appears to be a statically linked callout function (see http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...). This is specific to your code / application / environment and isn't something generic to Caché.If you are interested in retrieving your server name, try using:$piece($system,":")
go to post Ben Spead · Nov 10, 2016 I think that may be a custom routine. I don't recognize it as a Caché-supplied resource.