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

Robert Cemper · Sep 19, 2022 go to post

Class Reference of %SYSTEM.Status says:
classMethode IsError(statuscode As %Status) as %Boolean

Returns 1 if the statuscode contains errors. Otherwise, it returns 0.

 So if you get  [res] as  (0,....)  it is an ERROR!  
and therefore the result of IsError should be 1.  It is an Error.

Robert Cemper · Sep 18, 2022 go to post

%BI classes date back to Miner (DeepSee-1) and just were left in Caché over a decade at least
while its functionality was replaced by %DeepSee classes more than 10 years ago.

Of course, you can map all %BI.*  classes to some DB where you have R/W access and import it from Caché.
that's about 300 Classes.
BUT:  no one can tell you if they compile correctly
AND: you have to take care of the hidden %bi*.obj (~430) and other deployed code which you can't compile, but import and pray they work.
SO: this doesn't look like a  promising approach.
Therefore I'd suggest migrating from %BI to %DeepSee in Caché first and to IRIS next

Robert Cemper · Sep 17, 2022 go to post

The questions seem to imply the view from a management position:
 However, how would you recommend to people aged between 20 and 30 to start, maintain, or reboot their joy, excitement, love, or interest for coding and software development?

As I had the responsibility for a team of specialists my experience is such:

  • Is there any other motivation as simple payment?
    If yes, the person could be raised.
  • Any small success is a motivator. Especially if recognized by management.
  • Curiosity is another motivator. Exploring something no one did before could be driving.
    My personal trigger always was. "This not possible" 
    It is known as the "Galilei effect": And she (earth) is moving anyhow!
  • Competition within a team works but is risky if competitors are too different.
    The weaker one may give up if it sees o chance.
  • The best of all motivators is fun. Often in a team of 2 rather equal qualified people.

HTH

Robert Cemper · Sep 8, 2022 go to post

just to make your valuable entry visible in browser and email
http://<server-ip>:<smp-port>/api/atelier/
and you get back this nice JSON object:

Robert Cemper · Sep 7, 2022 go to post

SOAP is quite specific and critical to data format and structure.
You might extend it, but then Edge Server is the active part and you depend on its regular "broadcast".
If Doc Server should be the active partner I'd rather suggest to use JDBC in Linux.
Your actual $get might be embedded as a Method projected as SQL Procedure that you call.
There exist examples to even execute COS commands by that approach:
see: ObjectScript over ODBC

Robert Cemper · Aug 31, 2022 go to post

Hi @Ditmar Tybussek 
Raw containers from ISC are always just US versions. (aka. international)
If you use Dockfile you have all freedom to condition  YOUR container according to your needs.

MgmtPortal: this is a good old  CSP feature that looks for the primary language of your browser
and translates your pages to DE if available.
Docker itself seems to have no idea about your environment.

Robert Cemper · Aug 26, 2022 go to post

if it is a straight 8bit DB  you have the challenge to find out
how characters beyond the primitive 7bit ASCII are stored  e.g. ÀöÜß € ¡¿ è & é ç
is it ISO Latin 1 , 2 ,3 4, 5 ... or any of the horrible Win encondings

Robert Cemper · Aug 24, 2022 go to post

2 mistakes: 
#1^$get(node) delivers the content of variable node
but you would expect the result of $get(@node)  using node as global reference

#2) the better way is to use the implicit GET
Set node = $Query(^FromExtraMed(""),1,value)
write value  

Robert Cemper · Aug 23, 2022 go to post

if you have just to place a bunch of lines at OS level from inside IRIS you may try my package
WebCommand If you can operate with irisowner privileges
It's  similar to  ! or $  in normal terminal or console access.   Article on DC
 

Robert Cemper · Aug 20, 2022 go to post

A somewhat similar example might be found in ENSDEMO

Class Demo.Loan.FindRateTCPService

Robert Cemper · Aug 18, 2022 go to post

The count is totally correct as you asked for all lines of codes 
you get counted all executable code.
you do not count properties, comments, whatever .....

It might be easier to do an export in UDL format and let some
Notepad or similar count the lines without any qualification.

BTW. do get paid by lines ?  

Robert Cemper · Aug 16, 2022 go to post

Thank you @Ben Spead !
In our common project, I had the joy of letting rule creativity (which in turn triggers productivity)!
That's a key skill of an excellent project manager. 
It acts like a musher in 
Iditarod. Making the dogs give their best + having fun     

Robert Cemper · Aug 16, 2022 go to post

It's funny you raise that subject now, as I just finished writing my "technologic bio" for my sons.
I won't translate the whole booklet but just pick out some highlights, 

#1) Why did you choose to become a software engineer / developer?

To become Engineer was an almost a genetic determination. I could roll back my ancestors down
to 1600 to find a repeating pattern of technical construction in wood, stone, metal, ...
and started with studying electronics. Software just happened by consequence and found its
summit by a complete operating system, with a distributed  M-database, interpreter, ... on VAX.

#2) How and when did you start to generate a "flow state of mind" during your career?

As a boy I was reading Walt Disney's comics. "Gyro Gearloose" was the most impressive
character to me and his statement "An engineer can invent everything" just caught me.
I was reading the German translation that added some extra fun:  "Dem Intschinör ist nix zu schwör!".
It became my personal mission statement:  "For a real engineer ‘IMPOSSIBLE’ doesn’t exist !"
It became a red trace throughout my whole life. And the epigenetic 'fighter gen' inherited from my
first ancestor surviving the 30years war with honors formed me to never give up.  
#3)What are recommended habits inside and outside, during you own time and during
your work time, to be focused during your coding session and daily tasks?

  • For software development, you should understand the language you use down to its darkest corner. You have to be as fluent as in a foreign language you speak. You know that you are there if you use it also in your dreams.
  • Let your creativity roll on and seek to have fun with it to find the 'impossible' solution, and forget about thinking: "this can never happen!" This is just an illusion.
  • Don't accept stops by rules that are not yours. I've seen so many nonsense measurements like the number of lines by month. In the first years even the number of punched cards (!) length of code, length of lines, number of comment lines by method, sick naming conventions, .. 
  • find your solution first and make it fast and stable and leave the polishing to please Code Quality and similar tools that will never follow your mind to the  "coding clerks"  (minor qualified engineers) to please controllers and administrators and managers who are not able to follow your great ideas. 
  • Finally, share your oeuvre with a qualified software engineer that you trust, to add the minimum required comments and explanations triggered by his questions. 
  • If your employer dislikes your style., leave it. Working against your own fire of creativity and your own fun at working can never be compensated by money. I did it for some short years and was not happy at work at all. I fought for my success and had my achievements. But fun at work came back only until returned to software engineering.