Robert Cemper · Oct 15, 2022 go to post

and code quality will struggle with it and dislike it

because you use name in write, but you don't set it explicitly

but don't care much about:
it doesn't understand %-variables and global variable scopes
and $$$macros with code inside, and ... and ... and  

Robert Cemper · Oct 14, 2022 go to post

to get control over your situation you have 2 key methods:

  • $SYSTEM.License.MaxConnections() returns the maximum number of connections a user can make while consuming one license unit.
  • $SYSTEM.License.ConnectionCount() returns the number of connections currently associated with the given UserIdentifier. The range of return values is normally 0 through MAXCONNECTIONS. If the value exceeds MAXCONNECTIONS then more than the allowable number of concurrent connections were attempted for a given ID and the system has transitioned to a mode of one connection per license for this UserIdentifier.

So you have to check if your user has exhausted its available connections and block him.
It's anyhow quite interesting how these users are able to trigger so many connections.

Robert Cemper · Oct 14, 2022 go to post

This is intentional behavior.
If the routine you changed calls some subroutine it is kept "on the stack"
This is a requirement to have a save return and continuation after the call.

The new version only becomes active after you have left the previous one by QUIT or RETURN.
simpler: if it is gone from the return path. 

Robert Cemper · Oct 13, 2022 go to post

I share your suggestion!

When I started with Docker I was highly skeptical after many years with VMware starting before their first release.
It was a hard exercise and I took quite a while digging through docs and helps.
My main problem was that everything was so generic and not at all specific to IRIS (or Caché).

Meanwhile, it became so common to me that I stopped running reviews on packages without docker.
Docker allowed me to have a "clean desk" after testing.
In addition. I saw through this activity so many valid variations that
I doubt to decide how to start and where.
On the other hand, I see in OEX ~450 tested and working examples (a dozen PR still pending) 
Following these examples and trying to understand what will be achieved
could be good food for training designers. 
 

Robert Cemper · Oct 11, 2022 go to post

You may have only 1 command: in each build
the 2nd overwrites the first

  iris:
    image: intersystemsdc/iris-community:latest
    command: --check-caps false
    container_name: tls-ssl-iris
    networks:
      app_net:
        ipv4_address: 172.16.238.20
    volumes:
      - ./iris-config-files:/opt/config-files
      # Mount certificates files.
      - ./certificates/CA_Server.cer:/usr/irissys/mgr/CA_Server.cer
      - ./certificates/iris_server.cer:/usr/irissys/mgr/iris_server.cer
      - ./certificates/iris_server.key:/usr/irissys/mgr/iris_server.key
    hostname: iris
    # Load the IRIS configuration file ./iris-config-files/iris-config.json
    command: ["-a","sh /opt/config-files/configureIris.sh"] 

this worked as multi-line 

command: 
    - -a
    - sh /opt/config-files/configureIris.sh 
      - --check-caps false

BUT  
         command: ["-a","sh /opt/config-files/configureIris.sh","--check-caps false"]

works as well 
 

Robert Cemper · Oct 8, 2022 go to post

in my various examples I took these strategies:

  • try to run the Py code in PY shell in a REAL terminal or docker command line console
  • error messages directly from the shell are much more useful  
  • insert temporary print(...) statements at suspicious points
  • what I see by COS <THROW>  is often more obfuscation than a hint  

to my experience, your 'KeyError' indicates that you try to get a value
from a non-existing global or subscript. in COS it would be <UNDEF>

Robert Cemper · Oct 6, 2022 go to post

in my package GlobalToJSON-ePython-pure
I developed this workaround: 

#; simulate $data() for existence and content
def Ddata(gref):
	val = None
	_d = 11
#; check for subscripts	
	o=gref.order([])
	if o == None:
		_d -= 10
	try:
		val=gref.get([])
	except KeyError:
		#; no value @ top node
		_d -= 1
	return [_d,val]		
Robert Cemper · Oct 4, 2022 go to post

NIce you share a picture of a PDP11  ! 
a few of my heroes:

---

I know also some handicapped developers.
BUT: I find it highly insensitive and inadequate to drop their names in this forum

Robert Cemper · Oct 4, 2022 go to post
  • mountain climbing
  • long distance walking
  • practicing foreign languages
  • studying astrophysics, cosmology, nucelar physics,  anthropology, geology
Robert Cemper · Oct 4, 2022 go to post

Any sport that requires mental concentration. eg. mountain climbing, 
And I mean REAL climbing, not just moving your body somehow across nature.  

Robert Cemper · Oct 4, 2022 go to post
  • first I check the logical qualification - e.g. playing chess
  • next check the skills in estimating results of simple mathematical calculations 
    or simple mechanical ckecks or puzzle strategies (without paper and pencil) 
  • next, I observe the operation of their mobile phone and ask for explanations
  • the very last might be t take a look into suggestions like yours

With 2 very successful sons in software, internet, and project engineering (49yrs. + 36yrs.)
I have a valid benchmark for my strategy.

Robert Cemper · Oct 4, 2022 go to post

A real software developer doesn't care about the hardware or operating system.
Specific hardware is a subject for gamers.

Robert Cemper · Sep 28, 2022 go to post

I enjoy to solve what was declared to be IMPOSSIBLE before.
I dislike it if it turns out that issue was just a fake and nobody cares about my creations. 

Robert Cemper · Sep 26, 2022 go to post

Not of importance but interesting observation anyhow.
$ZPI differs in the last 3 digits .
$ZPI is right according to Wiki 

write "3.141592653589793116  PY",!,$ZPI_"  IRIS",!
3.141592653589793116  PY
3.141592653589793238  IRIS
Robert Cemper · Sep 25, 2022 go to post
 --progress plain

This is essential information.
Without it the building log just runs though with no chance for a rollback
and iris.script allows a lot of temporary debugging info.

Robert Cemper · Sep 21, 2022 go to post

The actual GTY is containers.intersystems.com/intersystems/webgateway:2022.1.0.209.0

And there is no :latest defined
 

Robert Cemper · Sep 21, 2022 go to post

DONE!
I found my solution and placed it in a PullRequest.
it was slightly more than just a missing port.

Robert Cemper · Sep 21, 2022 go to post

You may use input redirection as you find it in almost all Dockerfile installations:
 

RUN iris start IRIS \
    && iris session IRIS < iris.script \
    && iris stop IRIS quietly 

and iris.script (as example)


zn "%SYS"
Do ##class(Security.Users).UnExpireUserPasswords("*")
zn "USER"

 

Robert Cemper · Sep 20, 2022 go to post

As Issues are disabled in the GitHub Repo I place my issue here.

  • Container starts fine
  • Postman fails:POST http://localhost:5000/persons/
    • Error: connect ECONNREFUSED 127.0.0.1:5000
    • Network
    • agent: "Desktop Agent"
    • Request Headers
    • Content-Type: application/json
    • User-Agent: PostmanRuntime/7.29.2
    • Accept: */*
    • Cache-Control: no-cache
    • Postman-Token: d40ec7c2-5b24-4944-8a76-c4cbf2685bf7
    • Host: localhost:5000
    • Accept-Encoding: gzip, deflate, br
    • Connection: keep-alive
    • Request Body
    • {"name":"Elon Musk","title":"CEO","company":"Tesla","phone":"123-123-1233","dob":"1982-01-19"}
  • as port 5000 is not mapped in docker-compose.yml this might be related ???
Robert Cemper · Sep 20, 2022 go to post

Not sure if I can make the date.
Anyhow using Studio since its first days in Caché 5.0 for 20+ years almost daily
and still firmly tied to Windows I just have no need for change.
And I use my experience with all tricks and shorthands burned deep in my mind.
It's just Dino's behavior as a veteran that started with X ^% in terminal