Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
plugin must be 4DCB bundle type for it to be loaded.

I am not sure if a bundle (which is not an app) needs to pass the

spctl --assess --type exec -

test.

as long as

codesign --verify --deep --strict --verbose=2

passes, I think

rejected (the code is valid but does not seem to be an app)

is OK.

> 2019/10/12 8:45、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> for reference,
> changing to BNDL resulted in the same error.




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
for reference,

changing to BNDL resulted in the same error.

> 2019/10/12 8:38、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール:
> I changed the bundle type from to APPL




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Keisuke Miyako via 4D_Tech
I don't have Catalina with me right now

but I found that

> spctl --assess --type exec -  /Zip.bundle


returns

> rejected (the code is valid but does not seem to be an app)


following hints from

https://forums.developer.apple.com/thread/77430

I changed the bundle type from to APPL
(default=4DCB)

I also disabled automatic codesign in Xcode,
and specified my Developer Application identity
(default=Mac Developer)

does that solve the issue?

https://github.com/miyako/4d-plugin-zip/releases/tag/3.5

> 2019/10/12 6:15、ADeeg via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> Try to sign the bundle before




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech

On Fri, 11 Oct 2019 16:25:55 -0500, Tim Nevels wrote:
> On Oct 11, 2019, at 4:07 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
>> actually its is not compiled component - it is the INTERPRETED version 
>> of the component!
>> compile it and it works?!?!?!?!
> 
> Thanks for the clarification, I thought this was a compiler issue. 
> 
> Since it is an interpreted only issue, I’ve got more ideas.
> 
> In the host database:
> 
> At the first line of the "On Startup" Database Method put in a 
> TRACE.  Do you hit this before the stack overflow?
> At the first line of the “On Host Database Event” Database Method 
> put in a TRACE.  Do you hit this before the stack overflow?
as I stated in the start of this thread -
I inserted a TRACE (in the host) and an ALERT(CURRENT METHOD NAME) in 
the component, as the first lines of code. Into EVERY SINGLE METHOD 
that already has code. which includes ON Startup, and ON Before ON 
Startup

The stack error occurs BEFORE any of this is hit.

The reason I inserted the code into every method is i was working on a 
different system, and I have a form which is the only form for the 
table, and is set as Input and Output - but it is an entry form and so 
is not really happy being an output form. During startup of this system 
(no password, no On Startup) I was getting errors from this form -- 
even though it was not being displayed.

 
> In the component database:
> 
> At the first line of the "On Startup" Database Method put in a 
> TRACE.  Do you hit this before the stack overflow?
> At the first line of the “On Host Database Event” Database Method 
> put in a TRACE.  Do you hit this before the stack overflow?
> 
> There are the only 2 entry points that can run when you start a 4D 
> database. It calls “On Startup” in the host and it can call “On 
> Host Database Event” in the component. That is if you have the “
> Execute ‘On Host Database Event’ method in components” Database 
> Settings -> Security setting turned on in the host. 
> 
> You might also try turning that off if you have it on and see if that 
> makes a difference.
the ON BEFORE STARTUP went was initially off when this problem first 
occurred.

 
> If you never get to the TRACE command before you get the stack 
> overflow error, then it’s a real puzzler. 
yes -- hence the long and related postings look for ideas and/or 
answers  :)


> Could the host be really, really old and upgraded through very old 
> versions of 4D? Wasn’t there a compatibility setting from a long 
> time ago when the “On Startup” database method was first introduced 
> that would actually automatically call a method named “Startup” or 
> “Debut”? Could that be involved in this strange problem? 

The original of this system was written in v11, however during the move 
to v13 I did what I am trying to avoid now, and had to build a new 
structure, so this system is a v13 system.

And btw, it basically passed 4D's 64 bit testing report. a few PICTS, a 
plugin (now updated) but that was all that failed.

Chip
 
> Tim
> 
> *
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.com
> *
> 
> 
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Tim Nevels via 4D_Tech
On Oct 11, 2019, at 4:07 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:

> actually its is not compiled component - it is the INTERPRETED version 
> of the component!
> compile it and it works?!?!?!?!

Thanks for the clarification, I thought this was a compiler issue. 

Since it is an interpreted only issue, I’ve got more ideas.

In the host database:

At the first line of the "On Startup" Database Method put in a TRACE.  Do you 
hit this before the stack overflow?
At the first line of the “On Host Database Event” Database Method put in a 
TRACE.  Do you hit this before the stack overflow?

In the component database:

At the first line of the "On Startup" Database Method put in a TRACE.  Do you 
hit this before the stack overflow?
At the first line of the “On Host Database Event” Database Method put in a 
TRACE.  Do you hit this before the stack overflow?

There are the only 2 entry points that can run when you start a 4D database. It 
calls “On Startup” in the host and it can call “On Host Database Event” in the 
component. That is if you have the “Execute ‘On Host Database Event’ method in 
components” Database Settings -> Security setting turned on in the host. 

You might also try turning that off if you have it on and see if that makes a 
difference.

If you never get to the TRACE command before you get the stack overflow error, 
then it’s a real puzzler. 

Could the host be really, really old and upgraded through very old versions of 
4D? Wasn’t there a compatibility setting from a long time ago when the “On 
Startup” database method was first introduced that would actually automatically 
call a method named “Startup” or “Debut”? Could that be involved in this 
strange problem? 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Server Hosting - The Future ? & Using Github to Manage Distributed Development

2019-10-11 Thread Kirk Brooks via 4D_Tech
Hi JPR,
i'm glad the 'Bat Signal' still works.

On Fri, Oct 11, 2019 at 1:34 AM JPR via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Do you like Fairy Tales?
>
I thought that was the demo...


> > So what you are saying is that if you are deploying 4D Server in a VM
> there is not need to try and use preemptive mode. You get no benefit from
> doing that. It’s a waste of time?
> Wrong. It will be a benefit in terms of speed, even not as large as you
> dream, because the system will optimise the use of each possible core. And
> a benefit in term of smoothness of execution, because no process will
> freeze the others.
>
OK - but assuming I'm running on a VM isn't that speed and usability
benefit coming from moving the processing into a Worker?


> > The whole benefit of preemptive mode is to allow 4D to assign a process
> to a core.
> Wrong. What I explained is that 4D does NOT assign a process to a core,
> but assigns a process to a THREAD, and the System assigns cores to Threads.

And once more I display my sketchy understanding of how the hardware works.


> > But in the case of a VM the actual, physical cores are managed by the VM.
> Wrong. The VM talks to the System, and the System manages cores. In fact,
> just imagine that a machine can run several VM at the same time.
>
Ibid.

If you have been at the 2019 Tour, remember J_OtherObjects example, where I
> show that if you use cooperative processes, with one executing an
> excruciating method, then the Forms on use are kind of frozen. Then, by
> switching to preemptive mode, the same awfully blocking method doesn't
> impact on interface while running.
>
True (in fact I just pulled it out to look at again). But we are running
that on our machines where the _threads_ can be assigned by the _system_ to
various cores and I can see that in the activity viewer. In fact running on
'bare metal' shows a lot of variation in the activity of the various cores.

I went rummaging around in the knowledgebase to see if I could find what
I'm remembering. I think it was one of the keynotes from the '16 Summit and
I couldn't find it. But I did find Laurent Ensault's session on the
subject: https://kb.4d.com/assetid=77547

I rewatched it and ran the example database. The demo spawns 4 cooperative
and 4 preemptive processes then runs an intensive method 1mil times in
each.

I made a small change to his demo - I added the start and end ticks to the
process record in addition to the duration. Why? Because I wanted to see
the total time spent on processing the 'job'. I do this by taking the end
of the last process to finish and subtracting the start of the first
process to begin. I also moved the demo db to v17.3.

As luck would have it I have an AWS instance with v17.3 installed so I am
able to run the demo locally and on AWS.
On my laptop:

Cooperative 1: 376 ticks
Cooperative 2: 376 ticks
Cooperative 3: 375 ticks
Cooperative 4: 367 ticks

Total run time:  395 ticks


Preemp 1: 118 ticks
Preemp 2: 119 ticks
Preemp 3: 117 ticks
Preemp 4: 119 ticks

Total run time:  119 ticks  //  that's what we want to see!


On AWS:

Cooperative 1: 740 ticks
Cooperative 2: 706 ticks
Cooperative 3: 793 ticks
Cooperative 4: 731 ticks

Total run time:  821 ticks


Preemp 1: 881 ticks
Preemp 2: 824 ticks
Preemp 3: 857 ticks
Preemp 4: 848 ticks

Total run time:  881 ticks

Your first thought might be, "hold on, why is the total run time almost the
same as each process' run time?" The very first line of the method sets a
variable with the tick count. Because Laurent included the IDLE command in
the demo method those methods yield the processor back to 4D on each
iteration. (The video talks about the details on this.) So Coop1 starts and
then yields back to 4D which starts Coop2 and so on. In contrast Preemptive
processes simply start and run without having to 'yield back' to 4D.

So what we see is that each them gets started pretty much at the same time
and complete pretty close together as well. This probably wouldn't be the
case if they weren't doing exactly the same work and if 4D were actually
working instead of doing a demo. Total run time, as I said, is the tick
count for the last process to finish minus the tick count of the first one
to start. Or the total amount of time spent processing by all 4 processes.

This illustrates the point I recalled from back then: when you run on a VM
the advantage of the the OS to distribute threads to the actual cores is
abstracted away. They may be distributed to virtual cores but that doesn't
impact the total processing time. In the case of AWS apparently this VM
overhead actually causes it to run slower but this is a small sample set. I
have no idea why and frankly don't have the expertise to figure it out. But
it's there.

FYI - the AWS instance is an m5ad.xlarge: 4 cores, 16gb RAM. It sorta
sucks. I'd love to hear from anyone actually running 4D server on AWS with
good performance.

-- 
Kirk Brooks
San Francisco, CA
===

What can be 

Re: stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech
On Fri, 11 Oct 2019 15:48:39 -0500, Tim Nevels wrote:
> 
> You said it only happens when you use one specific compiled component 
> with one specific host database.

actually its is not compiled component - it is the INTERPRETED version 
of the component!
compile it and it works?!?!?!?!


>Why don’t you take 30 minutes and give it a try. 
>Just copy over enough methods to make one shared 
>component method available to the host. Compile 
>that and install it in the host. 
I did try a new version of the component and I get the same problem...

what I am trying to avoid is a new host100+ tables, 2200+ methods, 
unknown number of forms, some with some very finicky object and maker 
placements (reports).

:)

Chip
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Spencer Hinsdale via 4D_Tech

I do this the opposite way--delete until it ain't broke.

Make a copy and delete half.  If it's still broke make a new copy and delete 
the other half.  If that works, make a new copy and delete half of the 
known-broke half.  Repeat ten times for 1 in 1024 granularity.



On 10/11/19, 1:29 PM, "4D_Tech on behalf of Tim Nevels via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

On Oct 11, 2019, at 3:21 PM, Chip Scheide wrote:

> and Tim, I may eventually have to do that...build from scratch
> BUT since all of this worked at one point it would be nice to know what 
> the root cause of the issue is, so that I (and possibly others) do not 
> repeat it.

I know exactly what you mean. Nobody wants to spend hours rebuilding 
something. We all want to find that 1 line of code, change it and the problem 
is fixed. 

I just don’t know what you can do to isolate it down to one area. Only way 
I know is to start small with something that works. Then add to it and see if 
it still works. And when you add to it and it breaks, then you know what you 
just added caused it to break.



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech
Thanks for the ideas - only:
On a Mac.
I have 4 copies of v15
it does not matter which copy I use

Other 4D databases, hosts with components (including the component in 
question), and stand alone all function normally.

The data base does not crash.
I get a 4D error, which states (in not exact words) 
there is not enough stack space .

clicking OK refreshes the error message. I must force quit 4D to get 
out.

Chip

On Fri, 11 Oct 2019 22:11:22 +0200, Peter Bozek via 4D_Tech wrote:
> Again giant PITA, I know, but what other choices do you have?
>> 
>> 
> if it is a machine specific problem,  rebuilding structure may not help.
> More useful may be to reinstall system - which is PITA, too.
> 
> What may help in such case (and is still PITA) is install Win developer
> tools. Then crash should trigger low-level debugger and then it would be
> possible to look which code crashed. That may point to particular plugin or
> to 4D code. Not sure if it can point to component or component method,
> though.
> 
> --
> 
> Peter Bozek
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Tim Nevels via 4D_Tech
On Oct 11, 2019, at 3:21 PM, Chip Scheide wrote:

> and Tim, I may eventually have to do that...build from scratch
> BUT since all of this worked at one point it would be nice to know what 
> the root cause of the issue is, so that I (and possibly others) do not 
> repeat it.

I know exactly what you mean. Nobody wants to spend hours rebuilding something. 
We all want to find that 1 line of code, change it and the problem is fixed. 

I just don’t know what you can do to isolate it down to one area. Only way I 
know is to start small with something that works. Then add to it and see if it 
still works. And when you add to it and it breaks, then you know what you just 
added caused it to break.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech

On Fri, 11 Oct 2019 14:57:57 -0500, Tim Nevels via 4D_Tech wrote:
> So you know it is a host specific problem. You know what you have to 
> do, but you don’t want to do it because it is a PITA and could take 
> hours. Start over fresh.

That is just it -
I am not sure it is *just* a host problem...
as the host is happy with other (interpreted) components
and the component in question (interpreted or compiled) does not cause 
a problem with other hosts.

Also unless there is -something- that MSC cannot see (even if it can 
not fix it) there is no apparent problem with the host, or component. 

In addition, the issue does not appear to be *directly* in my 
code/forms as no trace, nor alert is opened when the first line of code 
in **EVERY** project method, Form method, object method, & database 
method in the host is a TRACE, and in the component an ALERT -- and 
NOTHING is displayed (alert/component) nor traced (host) BEFORE the 
stack error.

If the component is compiled (with the above conditions of traces and 
alerts), and the host restarted using the compiled component - all of 
the alerts and traces display as expected -- Starting with On before 
Host Database Startup event in the component.  -- and yes there are a 
LOT  :)

and Tim, I may eventually have to do that...build from scratch
BUT since all of this worked at one point it would be nice to know what 
the root cause of the issue is, so that I (and possibly others) do not 
repeat it.

Chip
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Peter Bozek via 4D_Tech
Again giant PITA, I know, but what other choices do you have?
>
>
if it is a machine specific problem,  rebuilding structure may not help.
More useful may be to reinstall system - which is PITA, too.

What may help in such case (and is still PITA) is install Win developer
tools. Then crash should trigger low-level debugger and then it would be
possible to look which code crashed. That may point to particular plugin or
to 4D code. Not sure if it can point to component or component method,
though.

--

Peter Bozek
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: stack error - again

2019-10-11 Thread Tim Nevels via 4D_Tech
On Oct 11, 2019, at 2:00 PM, Chip Scheide wrote:

> There is no problem starting the host
> - using a different interpreted component
> - removing all components 
> 
> The component works with a different host, both interpreted and 
> compiled.

So you know it is a host specific problem. You know what you have to do, but 
you don’t want to do it because it is a PITA and could take hours. Start over 
fresh.

Create a new 4D structure. Open the problem structure with another copy of 4D. 
Begin rebuild the component in the new structure dragging and dropping over 
methods and forms. 

But do it is small steps. Start with just a single shared method and any 
related methods and forms it needs to run. Compile the new component. Quit both 
copies of 4D, install the new compiled component in the problem host. Start up 
the host and see if the problem occurs. 

No problem, repeat the above. Do it in small steps until you reproduce the 
error again. Then you will know what methods are causing the problem. You can 
go back and delete items and narrow it down to exactly the method that is 
causing the problem. 

And if the problem completely goes away, then you’ve still solved the problem. 
You’ll just not know what the original problem was.

I’ve had to do this with web pages that would not work correctly. Start small, 
add a little html code, test it. Add more html, test it. Add more, broke it. 
Now I know what part of the html is causing the problem. Fix that, then add 
more html until the page is finally totally rebuilt and working correctly. 

Again giant PITA, I know, but what other choices do you have?

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: stack error - again

2019-10-11 Thread Dennis, Neil via 4D_Tech
The plugin sounds suspect, but you said you removed it... so I'm not sure.

Plugins do have hooks into 4D before startup is run, and they can mess up 
memory.

Neil


--




















Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Windows Server 2019 OS

2019-10-11 Thread Jody Bevan via 4D_Tech
Windows Server OS advice

The last Windows Server OS I advised on selling for a 4D Server computer was in 
Windows Server 2012. 

Back then we never needed to pay for CALs. They have another server they are 
using for File Serving, DNS etc. The server computer they are purchasing is 
only for serving up 4D.

Can they not just purchase the Windows Server 2019 Standard, 16 Core, FI No 
Med, No CAL version of Window Server OS?

Thanks.

Jody
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech
lol  :)
there are 3 oher threads, 2 here, 1 on the forums.
from memory, and without copy/paste, beside the things listed 
previously in this thread

NB: Issue summary (host has 1 component and 1 plugin)
Host started with COMPILED component starts normally
Host started with (specific) interpreted component gives a stack 
overflow error

Things I have done
- compared custom constants from both host and component against: 
  - each other
  - method names in both
  - against 4D constants
- compacted & repaired and compacted & repaired structures of both
- compacted & repaired and compacted & repaired data files of both
- created a new component from the old component
- removed all forms from the component
- removed the one plugin in use
result stack error on start with interpreted component

There is no problem starting the host
- using a different interpreted component
- removing all components 

The component works with a different host, both interpreted and 
compiled.

Chip
On Fri, 11 Oct 2019 18:28:11 +, Dennis, Neil wrote:
>> Anyone have any other ideas?!?!?!?!
> 
> Sorry Chip, I have mostly ignored this thread until now... did your 
> run a maintenance repair on the structure?
> 
> I would assume you did, but it wasn't mentioned specifically.
> 
> Neil
> 
> 
> 
> 
> 
> --
> 
> 
> Privacy Disclaimer: This message contains confidential information 
> and is intended only for the named addressee. If you are not the 
> named addressee you should not disseminate, distribute or copy this 
> email. Please delete this email from your system and notify the 
> sender immediately by replying to this email.  If you are not the 
> intended recipient you are notified that disclosing, copying, 
> distributing or taking any action in reliance on the contents of this 
> information is strictly prohibited.
> 
> The Alternative Investments division of UMB Fund Services provides a 
> full range of services to hedge funds, funds of funds and private 
> equity funds.  Any tax advice in this communication is not intended 
> to be used, and cannot be used, by a client or any other person or 
> entity for the purpose of (a) avoiding penalties that may be imposed 
> on any taxpayer or (b) promoting, marketing, or recommending to 
> another party any matter addressed herein.
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 'Zip.bundle will damage your computer...' Error message in macOS Catalina ― how to keep it enabled

2019-10-11 Thread Chip Scheide via 4D_Tech
Not using it - look into turning off gatekeeper
you will need to use the command line to do this.

Google is your friend for this.

Chip
On Fri, 11 Oct 2019 12:31:34 -0600, Chris Belanger via 4D_Tech wrote:
> I stupidly installed macOS Catalina this week. Now it is ‘protecting 
> me’ from malware with no obvious option of how to override its silly 
> conclusions.
> 
> I particular, I get “Zip.bundle” will damage your computer. You 
> should move it to the Trash. 
> 
> Only option is to Move to Trash.
> 
> This is the latest version from Miyako
> 
> Is  there a way to persuade macOS Catalina to stop this behaviour?
> 
> Any help is appreciated
> 
> Thanks,
> Chris
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

'Zip.bundle will damage your computer...' Error message in macOS Catalina — how to keep it enabled

2019-10-11 Thread Chris Belanger via 4D_Tech
I stupidly installed macOS Catalina this week. Now it is ‘protecting me’ from 
malware with no obvious option of how to override its silly conclusions.

I particular, I get “Zip.bundle” will damage your computer. You should move it 
to the Trash. 

Only option is to Move to Trash.

This is the latest version from Miyako

Is  there a way to persuade macOS Catalina to stop this behaviour?

Any help is appreciated

Thanks,
Chris
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: stack error - again

2019-10-11 Thread Dennis, Neil via 4D_Tech
> Anyone have any other ideas?!?!?!?!

Sorry Chip, I have mostly ignored this thread until now... did your run a 
maintenance repair on the structure?

I would assume you did, but it wasn't mentioned specifically.

Neil





--


Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: post-icon conversion

2019-10-11 Thread Patrick Emanuel via 4D_Tech
4D Tech mailing list wrote
> FYI, the find is working, but the replace is not.  The ID's stay negative
> even though I tell 4D to replace them without the negative.

Unfortunaly,yes, you're right. I remember having written a method to do that
by code, and not working at all. I got confirmation later on the forum that
wasn't possible by code 
This is why I said, until V18 where we should be able to manipulate flat
files, we have to do that one by one 'a la mano'

Patrick




-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: stack error - again

2019-10-11 Thread Dani Beaubien via 4D_Tech
I would suggest contacting 4D Tech Support.

Dani

> On Oct 11, 2019, at 10:56 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> In addition to the previous attempts to track this problem down.
> I have recently done the following:
> - examined all forms (both host and component) for recursive calls to 
> their respective form methods (which are project methods). - no 
> recursion found
> - insured that all host methods are NOT shared with the component. to 
> avoid host calling component calling host loops.
> - added* TRACE as the first (or last) line of code in ALL 3500 methods 
> and object scripts
> - added* ALERT(Current Method Name) as first (or last) line of code to 
> all 800 methods and object scripts
> 
> * - done by code, every method *should* have 2 Cr in the comment 
> header, but in case there is code that does not have this the 
> additional line of code (above) was added at the end of the method.
> 
> even after all of this...
> Starting the Host (interpreted) with the interpreted component results 
> in a stack over flow error ---BEFORE--- and of the above traces or 
> alerts fire.
> The Stack error occurs After login (4D user login system) and after the 
> base 4D splash screen opens, but as indicate just above ---BEFORE--- 
> any code in either component or host runs.
> 
> Anyone have any other ideas?!?!?!?!
> 
> Thanks
> Chip
> 
> We have done so much, with so little, for so long;
> We are now qualified to anything with nothing 
>  - unknown
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

stack error - again

2019-10-11 Thread Chip Scheide via 4D_Tech
In addition to the previous attempts to track this problem down.
I have recently done the following:
- examined all forms (both host and component) for recursive calls to 
their respective form methods (which are project methods). - no 
recursion found
- insured that all host methods are NOT shared with the component. to 
avoid host calling component calling host loops.
- added* TRACE as the first (or last) line of code in ALL 3500 methods 
and object scripts
- added* ALERT(Current Method Name) as first (or last) line of code to 
all 800 methods and object scripts

* - done by code, every method *should* have 2 Cr in the comment 
header, but in case there is code that does not have this the 
additional line of code (above) was added at the end of the method.

even after all of this...
Starting the Host (interpreted) with the interpreted component results 
in a stack over flow error ---BEFORE--- and of the above traces or 
alerts fire.
The Stack error occurs After login (4D user login system) and after the 
base 4D splash screen opens, but as indicate just above ---BEFORE--- 
any code in either component or host runs.

Anyone have any other ideas?!?!?!?!

Thanks
Chip

We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: post-icon conversion

2019-10-11 Thread Mike Kerner via 4D_Tech
FYI, the find is working, but the replace is not.  The ID's stay negative
even though I tell 4D to replace them without the negative.

On Fri, Oct 11, 2019 at 5:36 AM Patrick Emanuel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Waiting  V18 to manipulate project files which for some will be flat format
> could be a solution for someone whose want to deliver an application in V18
> For the others which are not able to move to v18 for some reasons (client
> doesn't change system version, ), they have to do that 'manually', one
> by one. I don't say that is good to stay, but market is there and has it
> own
> contraints.
>
> Patrick
>
>
>
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: HIDE MENU BAR in On Startup database method

2019-10-11 Thread John DeSoi via 4D_Tech
Reported as a bug in January 2018 - ACI0097822.

John DeSoi, Ph.D.


> On Oct 11, 2019, at 8:24 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> When starting an 64-bit Engined Application, the 4D menu bar is visible for a 
> moment, even while I call HIDE MENU BAR in the On Startup database method
> I am talking about the menu:
> File|Edit|Run|Design|Records|Tools|Windows|Help
> 
> I don’t want that users see (and click) on this menu bar, so I call HIDE MENU 
> BAR in the On Startup database method
> As far as I know this does work I 4D 32-bit version
> 
> Can anybody confirm this?
> Is this a bug?

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

HIDE MENU BAR in On Startup database method

2019-10-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When starting an 64-bit Engined Application, the 4D menu bar is visible for a 
moment, even while I call HIDE MENU BAR in the On Startup database method
I am talking about the menu:
File|Edit|Run|Design|Records|Tools|Windows|Help

I don’t want that users see (and click) on this menu bar, so I call HIDE MENU 
BAR in the On Startup database method
As far as I know this does work I 4D 32-bit version

Can anybody confirm this?
Is this a bug?

Thanks,
Piotr

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Using Github to Manage Distributed Development

2019-10-11 Thread Narinder Chandi via 4D_Tech
I hope that what we're suggesting is that the plan is to (finally) dump the
binary format entirely and move to a collection of text files, whether they
be XML, YAML, JSON, etc.

Yes, the Project mode currently in Beta seems designed to achieve exactly that. 
In fact maybe you missed JPR's reply as it was in another thread:

I said:
But, I still need to fully understand exactly why 4D is not eliminating the 
interpreted structure binary .4DB file completely at this time? Maybe 4D plan 
to do so eventually? Was this question asked at the last tour? If we are given 
the Project feature then we should be all in and have no option but to embrace 
it and source code repos such as Git, since, pretty much every other 
programming language is doing it this way.

JPR responded:
AFAIK, if you use the Project mode, you don't need any binary, for everything 
is in text files (.json, .xml, .txt, .4DProject, .css, . 4DCatalog , .4dm, 
.4DForm, etc.) The .4DB is not necessary.

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
 
I am available for new consulting opportunities…
http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html
-- 



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Using Github to Manage Distributed Development

2019-10-11 Thread Mike Kerner via 4D_Tech
I hope that what we're suggesting is that the plan is to (finally) dump the
binary format entirely and move to a collection of text files, whether they
be XML, YAML, JSON, etc.

On Thu, Oct 10, 2019 at 6:53 PM Cannon Smith via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I can’t think of any reason one would want to go back, either. Splitting
> the structure into files is something we’ve wanted for _so_ long and opens
> so many opportunities.
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Aetna, AB Canada
> 
> 
>
>
> > On Oct 10, 2019, at 4:38 PM, Tim Nevels via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> >> Yes, you're correct, currently the move from binary to Project format
> is one way, whether this will become bi-directional I don't know. It is
> still possible to compile back to a single binary though so the step to go
> from Project to interpreted structure binary should surely be possible??
> >
> > This was asked to JPR at the last 4D World Tour show and his response
> was “why would you want to do that?” And then he proceeded to explain that
> to implement a feature like that would require many hours of engineering
> time, and QA time and then it would have to be maintained into the future.
> >
> > So he said are no plans for a “project folder back to a single .4DB
> file” feature. Only way to have the happen is to convince 4D it is a needed
> and necessary feature.
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: post-icon conversion

2019-10-11 Thread Patrick Emanuel via 4D_Tech
Waiting  V18 to manipulate project files which for some will be flat format
could be a solution for someone whose want to deliver an application in V18
For the others which are not able to move to v18 for some reasons (client
doesn't change system version, ), they have to do that 'manually', one
by one. I don't say that is good to stay, but market is there and has it own
contraints.

Patrick



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Server Hosting - The Future ? & Using Github to Manage Distributed Development

2019-10-11 Thread Narinder Chandi via 4D_Tech
JPR,

Hi. Ah, that's great, thanks for confirming that. I should really find some 
time to experiment with Project mode then ;)

Regards,
 
Narinder Chandi,
ToolBox Systems Ltd.
 
I am available for new consulting opportunities…
http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html
-- 

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 11 October 2019 at 09:33
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: JPR 
Subject: Re: 4D Server Hosting - The Future ? & Using Github to Manage 
Distributed Development

AFAIK, if you use the Project mode, you don't need any binary, for 
everything is in text files (.json, .xml, .txt, .4DProject, .css, . 4DCatalog , 
.4dm, .4DForm, etc.) The .4DB is not necessary.


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Server Hosting - The Future ? & Using Github to Manage Distributed Development

2019-10-11 Thread JPR via 4D_Tech
[JPR]

Hi Guys,

Once upon a time, in a magic computer, a lovely virtual princess was waiting in 
a cooperative process for a strong and handsome virtual prince to awake her... 
Unfortunately, the prince was a cooperative one and he was waiting for the door 
to open, and the key was held by the princess... 

Do you like Fairy Tales?

Here is another one, from Goethe: Once upon a time, an old sorcerer departed 
his workshop, leaving his apprentice with programs to execute. Tired of waiting 
tasks waiting in queue to access one of the 4 CPUs of his computer, the 
apprentice enchanted a virtual machine to do the work, using preemptive 
programming in which he was not fully trained. The apprentice soon realised 
that he couldn't control the tasks because he did not know the magic required 
to do so. The apprentice began to split the CPU in two with a magic mouse, but 
each of the pieces becomes a whole CPU that was splitting again and again in 
the virtual space, until the power supply became red hot!  When all seemed 
lost, the old sorcerer returned and quickly reduced the number of preemptive 
tasks to a more reasonable number! 

Do you believe it? If you have been assisting to the training day I gave during 
the 2019 Tour, you remember that we have discussed about that, and we have seen 
examples on the practical use of preemptive workers, the use of the Signal 
object, how to handle this typical Catch-22 situation, etc. We have also seen 
that the preemptive multithreading was useful to gain speed only in some very 
very specific cases (Remember the demo K_PreemptiveVsCooperative)

Sorry for those of you who still believe in him, but Santa doesn't exist. 
Virtual cores are NOT actual cores. And even if you get zillions of cores, 
there is still only ONE bus to access to memory. So, don't dream, multiplying 
the number of cores will NOT multiply the speed of every database operations. I 
mean, it will not be slower, but (cores * 8) ≠ (speed * 8). And this is even 
much more true in case of hyper threading. And obviously even much much moe 
true in case of a VM.

So let's try to be crystal clear:

> So what you are saying is that if you are deploying 4D Server in a VM there 
> is not need to try and use preemptive mode. You get no benefit from doing 
> that. It’s a waste of time?
Wrong. It will be a benefit in terms of speed, even not as large as you dream, 
because the system will optimise the use of each possible core. And a benefit 
in term of smoothness of execution, because no process will freeze the others.

> The whole benefit of preemptive mode is to allow 4D to assign a process to a 
> core.
Wrong. What I explained is that 4D does NOT assign a process to a core, but 
assigns a process to a THREAD, and the System assigns cores to Threads. The 
same Thread can be switched from core to core by the System, you don't even 
have to know.

> But in the case of a VM the actual, physical cores are managed by the VM.
Wrong. The VM talks to the System, and the System manages cores. In fact, just 
imagine that a machine can run several VM at the same time.

If you have been at the 2019 Tour, remember J_OtherObjects example, where I 
show that if you use cooperative processes, with one executing an excruciating 
method, then the Forms on use are kind of frozen. Then, by switching to 
preemptive mode, the same awfully blocking method doesn't impact on interface 
while running. 

So please, don't mix Processes, Threads, and Cores. Preemptive programming is a 
real plus from many points of view, including it helps 4D to optimise it's own 
internal optimisation processing. And also, remember that Preemptive 
programming is like food, it's necessary, but stay reasonable...

Regarding the other question:
> Yes, you're correct, currently the move from binary to Project format is one 
> way, whether this will become bi-directional I don't know.

> This was asked to JPR at the last 4D World Tour show and his response was 
> “why would you want to do that?” And then he proceeded to explain that to 
> implement a feature like that would require many hours of engineering time, 
> and QA time and then it would have to be maintained into the future. 
> So he said are no plans for a “project folder back to a single .4DB file” 
> feature. Only way to have the happen is to convince 4D it is a needed and 
> necessary feature. 
Thank you, Tim, it's exactly what I said (plus the accent) and it's still the 
current status.

> But, I still need to fully understand exactly why 4D is not eliminating the 
> interpreted structure binary .4DB file completely at this time? Maybe 4D plan 
> to do so eventually? Was this question asked at the last tour? If we are 
> given the Project feature then we should be all in and have no option but to 
> embrace it and source code repos such as Git, since, pretty much every other 
> programming language is doing it this way.
AFAIK, if you use the Project mode, you don't need any binary, for 

RE: Re: 4D v17r4 Windows Print To PDF ignoring PAGE SETUP

2019-10-11 Thread Scott Staley via 4D_Tech
I am also having a similar problem...

Code

   SET PRINT OPTION(Paper option;$t_Paper)
   SET PRINT OPTION(Orientation option;$l_Orientation)
   SET PRINT OPTION(Scale option;$l_Scale)
   SET PRINTABLE
MARGIN($l_margin_Left;$l_margin_Top;$l_margin_Right;$l_margin_Bottom)

   PRINT SETTINGS

The scale (50%) and margins (varies) are being respected but the paper
option (legal) and Orientation (landscape) are not.  

I've set the form page setup with the correct settings.  I've also set the
Print Settings in the property list.



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**