go to post Herman Slagman · Mar 26, 2024 You are right, but this was based on your original question: "if they share a common element/ value return 1" But the code is easily enhanced to return all common values.
go to post Herman Slagman · Mar 22, 2024 Set x="Purple,Black,Yellow,Pink,Yellow,White,White,a,b,c,d,e,f" Set y="Red,Green,Orange,Yellow,z,y,x,w,v" Set Found=0 For i=1:1:$Length(x,",") { For i2=1:1:$Length(y,",") { If $Piece(x,",",i)=$Piece(y,",",i2) { Write $Piece(x,",",i)," = ",$Piece(y,",",i2),! Set Found=i_","_i2 Return Found } } }
go to post Herman Slagman · Mar 22, 2024 What do you expect of such a class (or classes)?I might have something on the shelf as a skunk project.
go to post Herman Slagman · Feb 6, 2024 We were 'forced' to use CQ by one of our customers and I was rather disappointed about it.It looks like the designers of those rules didn't have a lot of COS (or even MUMPS) experience.Maybe we should, as a community, find some kind of consensus what is good (?) (C)OS code.ISC is not a good example, their code (completely open for developers to look at, which you find nowhere in the industry): a lot of different styles (don't mention the 'p" and 't' prefixes ... ;-))I don't have the time to set this up, but am happy to join the discussions.
go to post Herman Slagman · Jan 28, 2024 No, if you build a Git plugin yourself, you will also have to build the Git menu and optional context menu. Class Git.PlugIn Extends %Studio.SourceControl.Base
go to post Herman Slagman · Jan 22, 2024 Yes, I know, but I was talking about the automatic configuration by the IRIS installer. It seems that it only supports IIS on Windows.
go to post Herman Slagman · Jan 21, 2024 What is the reason we cannot use Apache on Windows?Apache is already installed, I don't like installing IIS next to it.
go to post Herman Slagman · Jan 16, 2024 It is a custom build Git Studio plugin plus application and CLI, that can handle multiple repositories per namespace. It is one of the reasons I still use Studio.
go to post Herman Slagman · Jan 16, 2024 In the Git plugin, a %Studio.SourceControl.Base subclass , I get the active branch Set Active=##class(Git.Utils).GetActiveBranch(Repos.Directory)If Active["fatal" {Set sc=##class(Git.Utils).AddToSaveList(Repos.Name)}If that gets a fatal I call: Set Command="cd "_Repository.Directory_" && git config --global --add safe.directory "_DirSet sc=..CPipe(Command,.Output)This process runs under the Studio account
go to post Herman Slagman · Jan 4, 2024 User S-1-5-18 is (Local) Sytem a hidden account, https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/u....Your IRIS server is probably running under the System account.I'm using a Git plugin for Studio and let that background process execute the ' git config --global --add safe.directory' command.
go to post Herman Slagman · Dec 25, 2023 That's because the Portal is a ZEN application. CSS is 'hidden' in XData blocks inside the ZEN classes such as %CSP.Portal.Home XData CSS3Style{<style type="text/css"> #selector {overflow: auto;}
go to post Herman Slagman · Dec 18, 2023 I've reported this to WRC more then a year ago, They didn't seemed bothered.
go to post Herman Slagman · Dec 5, 2023 You should use $System.Event to wake-up queue handlers, not as a queue itself.
go to post Herman Slagman · Nov 10, 2023 It just what you define a 'success', from a pure HTTP standpoint *any* HTTP status code is a success, the server was able to return a status code.If you want to check if a resource exists or not, a 404 is a perfectly successful response.
go to post Herman Slagman · Aug 8, 2023 You can use Objectscript pattern matching:Set String="a=b"Write String?.e1P.e => 1The case isn't important, just to highlight the 1P(unctuation)
go to post Herman Slagman · Jul 31, 2023 I fully agree with Julius.Any class that exceeds 100 properties is dead wrong.We're not talking tables (relational) (and even then it's wrong) but OO design, which doesn't seem to be much in fashion these days.Redesign your solution
go to post Herman Slagman · Jul 14, 2023 Dramatic entrance ;-)Looks awesome, definitely will have a look.
go to post Herman Slagman · Jun 12, 2023 Maybe you can use a generator method somewhere in your code to create the WebApp, something like: ClassMethod CreateApplication() As %Status [ CodeMode = objectgenerator ]{Set $ZTrap="Error"New $NamespaceWrite !,"Creating XXX API",!Set URL="/xxx"Set $Namespace="%SYS"If ##class(Security.Applications).Exists(URL) {Return $$$OK}Set Props("Name")=URLSet Props("NameSpace")="%SYS"Set Props("Description")="XXX API endpoint"Set Props("AutheEnabled")=64 ; unauthenticatedSet Props("DispatchClass")="API.Handler.Class"Set Props("Type")=2 ; CSP AppSet Props("MatchRoles")=":%All"Set sc=##class(Security.Applications).Create(URL,.Props)Return scErrorSet $ZTrap=""Return $$$ERROR($$$GeneralError,"ErrorTrap: "_$ZError)}
go to post Herman Slagman · May 14, 2023 For what it is worth: I don't agree.Studio is a Objectscript dedicated IDE (Editor), rather clean and unobtrusive.It could be enhanced quite simple.The only problem is Windows only (which is still 57.37% of all desktops)
go to post Herman Slagman · May 12, 2023 I've trained about a dozen junior to senior developers in InterSystems (and predecessors) technology.ObjectScript is the least you should worry about. Any developer who can't grasp that isn't worth hiring.It's the IRIS ecosystem that is completely different from 'traditional' development. Globals, Namespaces, (Remote) Databases, Mirrors, Productions, Jobs. All concepts that are not found outside the InterSystems (MUMPS) realm.If people get their head around that, they either love it or hate it.