go to post Marcel den Ouden · Apr 15 These are kind of "citizen developers", using the folder structure using one namespace at a time. Each feature which they work on has its own namespace, which might be deleted when the feature is approved and merged into the main branch. They can understand that a namespace has been deleted, but not being able to select another one by using the normal VSCode UI will be a bad experience for them as this might happen quite regularly.
go to post Marcel den Ouden · Apr 15 FYI The codeQuality tool now requires a newer java version. I had to change this in the settings.json from "sonarlint.ls.javaHome": "/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home" to "sonarlint.ls.javaHome": "/Library/Java/JavaVirtualMachines/temurin-21.jre/Contents/Home" I skipped version 17 as there was already a 21 which seems to work OK. I used the OpenJDK runtime: https://adoptium.net/temurin/releases/
go to post Marcel den Ouden · Apr 4 Thanks Pietro, Your suggestions certainly work. But I would prefer a more user-friendly solution for the developers. Ideally it would pop up the namespace selection dropdown if the namespace does not exist, or otherwise at least being able to change it from the "Switch namespace" option in the menu.
go to post Marcel den Ouden · Sep 27, 2023 FYI this has been accepted as an official bug, issue #1240.
go to post Marcel den Ouden · Sep 5, 2023 Class ${2:${TM_DIRECTORY/^.+\\/(.*)$/$1/}.$TM_FILENAME_BASE} Extends Ens.Production Found this in GIT. It evaluates correctly to Test.MyProd on my Mac but to the full filename in the Windows client next to me. Could this be a "backslash \" vs "forward slash /" issue ? My regex knowledge is insufficient here...
go to post Marcel den Ouden · Jul 28, 2023 Looks a bit like mine :) ClassMethod IsValid(s As %String) As %Boolean { f i=1:1:2E6 { s s=$REPLACE($ZSTRIP(s,"*E",,"()"),"()","") } q s="" } Since length was more important than speed I put the $ZSTRIP in the loop, and make it run 2M times (3.6M MAXLEN, that should be enough 😂 Sorry I meant to post this under the solution of @Alex Woodhead
go to post Marcel den Ouden · May 25, 2023 Hi Thomas, I think this information is insufficient to get help from the community. What is the exact ISC_IRIS_URL for example? ISC_IAM_IMAGE=containers.intersystems.com/intersystems/iam:3.0.2.0-4 ISC_IRIS_URL=https://IAM:mypassword@test.myserver.nl:443/api/iam/license My IRIS server is on https so I'm using port 443, but you could be using port 80 or 57772.
go to post Marcel den Ouden · Mar 29, 2023 Maybe this can help: You can use the BatchFlag()Opens in a new tab method to establish a process as executing in batch mode. A batch mode process has a lower priority than a non-batch process. https://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?...
go to post Marcel den Ouden · Dec 8, 2022 https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... There are comment/uncomment options for both single lines and blocks, including keyboard shortcuts: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... So: Ctrl+/ and Ctrl+Shift+/ should help. Good luck!
go to post Marcel den Ouden · Oct 25, 2022 Processes often do a lot of waiting (<sync>, <delay>), so that is probably why a larger poolsize helps. I am currently integrating with a system which takes up to five seconds to answer... so enough spare time to do a few in parallel.
go to post Marcel den Ouden · Oct 24, 2022 Yes this can be annoying; if you have a generic solution which you deploy at different customers which have different hardware and performance requirements, you cannot keep the production class "generic". This limits automation of the build process/deployment. You can do some scripting...
go to post Marcel den Ouden · Jul 5, 2022 Thanks @Robert Cemper Since my specific case is for the EU, I think the simplest solution is to use $ZTZ to correct for basic time zone. The rules for summertime are always the same in this area (until they change it, the discussion flares up two times a year). I already found some pseudo-code for that. If summertime, subtract another 60 minutes from $ZTZ. Not as generic as I wanted, but good enough for my case.
go to post Marcel den Ouden · Jun 17, 2021 @Dmitry Maslennikov Are there any special characters to watch with static .csp and .js files? I would expect the last map item to catch all, but it does not match with /csp/mynamespace/myfile.js (ends up in /MyFolder/csp/mynamespace/.... and I would expect /MyFolder/src/csp/mynamespace/...
go to post Marcel den Ouden · Jun 16, 2021 I have one prepared but not found the time yet. My plan is to measure the electricity use of my house continuously, do analysis on when I have a surplus of energy of my solar panels, and then switch certain devices based on that. My dishwasher, pool pump and heat pump are all connected. Currently I can do net metering for electricity but that will change in the near future. Better to use it myself if they don't want to pay a decent price for it ;-) The Pi is perfect for that kind of home automation.
go to post Marcel den Ouden · Jun 15, 2021 For my customers in Holland, our time-zone is POSIX is "CET-1CEST". Also works for most neighbours. (2016+) write !, "Current time: "_$ZDT($H) do $System.Process.TimeZone("CET-1CEST") write !, "New Current time: "_$ZDT($H)
go to post Marcel den Ouden · Feb 23, 2021 Looks nice Benjamin! I had to use http://localhost:52773/csp/mem-config/configurator.html to open it. Also, the screenshot on the openexchange page is not showing. IRIS for Windows (x86-64) 2019.1.1 (Build 612_0_19459U) Mon Dec 2 2019 16:11:46 EST (HS-UCR) in a VM. Could it do automatic measurement of the current machine/VM it is running on, especially memory?
go to post Marcel den Ouden · Feb 3, 2021 Excellent, thanks @Dmitry Maslennikov! Mine is simpler at this moment "objectscript.export": { "folder": "MyFolder", "addCategory": false, "map": { "(UnitTest\\..*)": "internal/$1", "(..*)": "src/$1" } } This does the trick for now.
go to post Marcel den Ouden · Feb 1, 2021 Have there been any updates on this? I am involved in a project which uses VSCode, and we want all unit test (Start with UnitTest.) classes to end up in another folder so they can be kept out of production easily.