Re: Problems installing built application

2018-01-30 Thread Keisuke Miyako via 4D_Tech
extended finder attributes cause code sign to fail, but of course, clearing 
them with xattr mean little if the app is not signed in the first place.

basically,

if you don’t sign a built application, you have no choice but to ask the end 
user to disable gate keeper for the app, and install it under documents or some 
other permissive directory.

even if you do sign the application, you probably still need to use the v15 
default data system, as a safer way to start.

and then, there still remains the issue of how to manage backups.

the setting file is inside the package, and the destination folder is there 
also by default. I think it is OK to modify an xml file once the app is 
installed, only executable files are supposed to be code signed.

in my experience, backup is the one that often gets over looked.



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

RE: Problems installing built application

2018-01-30 Thread Timothy Penner via 4D_Tech
Hi James,

I agree with what Chuck Miller posted (I think he was quoting my reply to your 
previous thread: http://kb.4d.com/resources/inug?msgid=GmailId1607a1da70d0a99b).
Definitely start signing your application if you are not already doing so - and 
then make sure to distribute your signed application on a signed DMG.

In addition to signing your application, I wonder if you would benefit from 
using the Default data file... You mention that:
- The data is all stored in a MySQL database
- The 4D data file is only used to get things started
- The (4D) data file is stored in Users/Shared/MyProgram

This sounds to me like a perfect candidate for the Default data file- assuming 
that that the data file doesn't need to change...
http://doc.4d.com/4Dv15/4D/15/Default-data-file-in-merged-applications.300-2005955.en.html

-Tim




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

Re: Win32API 8.1.2 gui_GetWindowEx("") in v16r5 (Seth Leeper)

2018-01-30 Thread Keisuke Miyako via 4D_Tech
to be clear,

you don't need a "v16" SDK to support v16 or v16 R releases.

the SDK version is only bumped when there is a major change to the architecture,
in my 10+ years of using it,
that has only happened 4 times:

v2004 (mach-o bundle)
v11 (unicode mode)
v12 (64-bit for windows)
v14 (64-bit for mac and removal of mac resources)

if you look at the source file on GitHub,

https://github.com/4D/4D-Plugin-SDK

you would see that the SDK version is still v14.
but that has not prevented developers from targeting v16 R releases.

2018/01/31 7:11、Jeffrey Kain via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
They just announced (on the forums) that it will be available on github.



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

Re: Problems installing built application

2018-01-30 Thread Charles Miller via 4D_Tech
One thing I would for sure do is get your application signed so you do not
get into instance where OS won’t lety it run. Here are notes from

My assumption is that the application is falling victim to Gatekeeper and
being translocated to a read-only location. Apple documents how to get
around this; they suggest signing the app and placing it on a dmg and then
signing the dmg. Quote from Apple: "For distribution outside of the Mac App
Store, the preferred options are to use a signed disk image (DMG) or signed
installer package. Signing these allows validation of the contents and
their source. ZIP archives may also be used, but this is discouraged."



However they also mention that if you still deliver the application as a
zip file then you would need to place the application into the root of the
/Applications/ folder; so if your application is named myApp.app it should
be moved exactly to /Applications/myApp.app right after extracting it from
the ZIP file (not after attempting to run it from somewhere else). But I am
pretty sure for this to work the application is still supposed to be signed.



Sometimes you can right clicking on the application and choosing "Open" to
get passed gatekeeper warning about unsigned applications, but I am not
sure if this affects app translocation.



As a last minute alternative, maybe there is an extended attribute you can
remove from the installed application (using 'xattr -cr
/Applications/myApp.app' from a terminal) to get it out of quarantine. I
don’t know if this will work, but maybe it can help.



Here are some references that may help:

http://kb.4d.com/assetid=77688

https://developer.apple.com/library/content/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG17

https://apple.stackexchange.com/questions/87313/how-to-remove-xattr-com-apple-quarantine-from-all-webarchive-files-with-that-ex

On Tue, Jan 30, 2018 at 5:08 PM, James Knight via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I’ve never managed to find a reliable way of installing a built
> application on our client Macs.
>
> Our network is 15 Macs running latest versions of 10.10 or 10.12. 4D is
> version 15.5 and I’m compiling an app using 4D Volume Desktop. The data is
> all stored in a MySQL database, accessed via the MyConnect plugin, so the
> 4D data file is only used to get things started.
>
> The data file is stored in Users/Shared/MyProgram. I have tried installing
> the compiled app by copying it directly on to the client machines, and by
> building a package and running installer. I’ve tried installing in the
> applications folder and in the Users/Shared/MyProgram folder. Always I get
> one of the following issues:
>
> 1. Crash immediately after selecting the data file. Extract from crash
> report says:
>
> > Crashed Thread:8  Application process (id = -1)
> >
> > Exception Type:EXC_BAD_ACCESS (SIGSEGV)
> > Exception Codes:   KERN_INVALID_ADDRESS at 0x0020
> > Exception Note:EXC_CORPSE_NOTIFY
> >
> > Termination Signal:Segmentation fault: 11
> > Termination Reason:Namespace SIGNAL, Code 0xb
> > Terminating Process:   exc handler [0]
>
>
> 2. Error on launch telling me that the error dialog could not be loaded (I
> haven’t seen this one recently so can’t remember the exact words). The app
> continues to load after dismissing the dialog.
>
> 3. Runtime error on quit - "error when executing the method sponsored
> (runtime) at line number 13, database is write protected”
>
> 4. Error telling me that the file is write protected
>
> I can fix all of these problems by either:
>
> a) getting info on the folder enclosing the app (when it’s not in the
> applications folder) and applying its privileges to the enclosed items; or
> b) copying the application to the desktop and then copying it back into
> the applications folder. This alters the owner from “system" to the logged
> in user.
>
> In both scenarios, I can’t see any obvious alterations to the permissions,
> by carrying out this instruction, but it’s the only way I can find to make
> the app work.
>
> But obviously this is not a sustainable solution, as I have to log into
> each computer (albeit using Remote Desktop) and alter the privileges on
> every computer, every time I deploy an update.
>
> Does any of this make any sense to anyone?
>
> TIA
>
> James
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL 

Re: Win32API 8.1.2 gui_GetWindowEx("") in v16r5 (Seth Leeper)

2018-01-30 Thread Jeffrey Kain via 4D_Tech
They just announced (on the forums) that it will be available on github.

--
Jeffrey Kain
jeffrey.k...@gmail.com


> On Jan 30, 2018, at 3:32 PM, Seth Leeper via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> To the best of my knowledge, 4D has not released the v16 SDK.

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

Problems installing built application

2018-01-30 Thread James Knight via 4D_Tech
I’ve never managed to find a reliable way of installing a built application on 
our client Macs. 

Our network is 15 Macs running latest versions of 10.10 or 10.12. 4D is version 
15.5 and I’m compiling an app using 4D Volume Desktop. The data is all stored 
in a MySQL database, accessed via the MyConnect plugin, so the 4D data file is 
only used to get things started.

The data file is stored in Users/Shared/MyProgram. I have tried installing the 
compiled app by copying it directly on to the client machines, and by building 
a package and running installer. I’ve tried installing in the applications 
folder and in the Users/Shared/MyProgram folder. Always I get one of the 
following issues:

1. Crash immediately after selecting the data file. Extract from crash report 
says:

> Crashed Thread:8  Application process (id = -1)
> 
> Exception Type:EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes:   KERN_INVALID_ADDRESS at 0x0020
> Exception Note:EXC_CORPSE_NOTIFY
> 
> Termination Signal:Segmentation fault: 11
> Termination Reason:Namespace SIGNAL, Code 0xb
> Terminating Process:   exc handler [0]


2. Error on launch telling me that the error dialog could not be loaded (I 
haven’t seen this one recently so can’t remember the exact words). The app 
continues to load after dismissing the dialog.

3. Runtime error on quit - "error when executing the method sponsored (runtime) 
at line number 13, database is write protected”

4. Error telling me that the file is write protected 

I can fix all of these problems by either:

a) getting info on the folder enclosing the app (when it’s not in the 
applications folder) and applying its privileges to the enclosed items; or
b) copying the application to the desktop and then copying it back into the 
applications folder. This alters the owner from “system" to the logged in user. 
 

In both scenarios, I can’t see any obvious alterations to the permissions, by 
carrying out this instruction, but it’s the only way I can find to make the app 
work.

But obviously this is not a sustainable solution, as I have to log into each 
computer (albeit using Remote Desktop) and alter the privileges on every 
computer, every time I deploy an update.

Does any of this make any sense to anyone?

TIA

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

Re: Win32API 8.1.2 gui_GetWindowEx("") in v16r5 (Seth Leeper)

2018-01-30 Thread Seth Leeper via 4D_Tech
Unfortunately, Orchard has made the decision to only support base releases in 
the Win32API and not R releases.

As Peter mentioned, the code will remain freely available to the 4D community 
to modify as needed.

To the best of my knowledge, 4D has not released the v16 SDK.

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

Re: 10.13.2 running on a MacMini (Late 2014) 8GB RAM External RAID 0+1 Samsung SSD. Using SoftRaid XT

2018-01-30 Thread Tim Nevels via 4D_Tech
On Jan 30, 2018, at 2:00 PM, Jim Dorrance wrote:

> Find a mac mini late 2012 i7 with ssd and 16 gb ram


I agree. This is a fantastic little machine for running 4D Server on with under 
20 users and a “medium sized” data file. 

This is how I currently categorized 4D data file sizes:

Small is less than 5GB
Medium is between 5GB and 30GB
Large is anything over 30GB

If I have the RAM, I set the data cache size to about the same as the data file 
+ index file size. Otherwise I like to have data cache set to about 50% of that 
total size. This is for high transactional type databases. I like to keep cache 
purging to almost never. Load it once from disk. Generally speaking, if you are 
purging the database cache daily or weekly, you need to increase the cache 
size. Of course with SSDs now becoming the norm, I may have to adjust my 
thinking. 

I’d be curious what others feel are “small”, “medium” and “large” sizes for 4D 
databases running on current, modern hardware and using 4D v13+. (I can 
remember the days where a 1GB data file would be considered huge for 4D.)

Tim

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


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

Re: v13 - Number of field/array pairs for selection to array

2018-01-30 Thread Chip Scheide via 4D_Tech
v13 docs do not specify a limit to the pairings, but other commands 
(Query) have (or had) limits even without an acknowledgment from 4D.

the '*' in this instance does not negate the need for Execute Formula, 
I considered that option.
Thanks

On Tue, 30 Jan 2018 20:32:56 +0100, Arnaud de Montard via 4D_Tech wrote:
> 
>> Le 29 janv. 2018 à 20:01, Douglas von Roeder via 4D_Tech 
>> <4d_tech@lists.4d.com> a écrit :
>> 
>> Chip:
>> 
>> Perhaps the optional asterisk has removed that limit?
> 
> Asterisk could also remove the need to use Execute Formula…
> 
> -- 
> Arnaud de Montard 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: v13 - Number of field/array pairs for selection to array

2018-01-30 Thread Arnaud de Montard via 4D_Tech

> Le 29 janv. 2018 à 20:01, Douglas von Roeder via 4D_Tech 
> <4d_tech@lists.4d.com> a écrit :
> 
> Chip:
> 
> Perhaps the optional asterisk has removed that limit?

Asterisk could also remove the need to use Execute Formula…

-- 
Arnaud de Montard 


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