Re: How to build a standalone app for Windows using Mac

2020-06-29 Thread David Belote via 4D_Tech
James,

I have 4D Developer Pro licenses for both macOS and Windows.  I run my Windows 
10 environment as a virtual machine on my Macbook Pro using Parallels.  My 
primary 4D development has been done for years on a Mac as I like the macOS 
environment much better for many reasons.  You simply copy the standalone app 
from the Mac to the PC and then using 4D Developer Pro, test it in the Windows 
environment and once bug free, re-compile it using your 4D Developer Pro for 
Windows license.

There are minor and generally well-documented differences when running a 4D app 
between the two operating system environments.  As an example, I ported 4D v18 
app from macOS Catalina to Windows 10 three weeks ago that reads and writes 
directories.  I thought I'd taken care of the path delimiter differences 
between Mac (colon) and PC (backslash), but it is currently aborting in testing 
when trying to read a Windows directory.  It works flawlessly in macOS.  It is 
probably a very simple fix, but fixing it right now is not at the top of my 
priority list.

David Belote

On 6/28/20, 5:04 PM, "4D_Tech on behalf of Chuck Miller via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

Needs to be done on windows. And it has to be licensed

Regards 

Chuck

Sent from my iPhone

> On Jun 28, 2020, at 6:57 PM, James Knight via 4D_Tech 
<4d_tech@lists.4d.com> wrote:
> 
> Hi
> 
> 
> 
> It’s a long time since I compiled & built an application for Windows.
> 
> 
> 
> I’m on 17.4 for Mac, and I can compile & build an application for Mac no 
problem.
> 
> 
> 
> What hoops do I need to jump through to build a standalone application 
which will run on Windows? Can I do that on a Mac or do I need to download the 
developer edition for Windows and build it on a Windows box?
> 
> 
> 
> Thanks!
> 
> 
> 
> James
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> 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)
New Forum: https://discuss.4D.com
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)
New Forum: https://discuss.4D.com
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 v18.0 LTS - Form Wizard Missing

2020-04-18 Thread David Belote via 4D_Tech
I was disappointed when 4D v18.1 was released and it did not include the 
missing Form Wizard in the Database Projects.  I really want to use Projects 
because the code can be versioned as Ascii as normal for nearly all other code, 
but without the Form Wizard it is difficult.  It also makes me wonder “what 
else” is missing.  I wonder why this traditional 4D tool is missing.

 

From: David Belote 
Date: Friday, February 28, 2020 at 7:09 AM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Subject: Re: 4D v18.0 LTS - Form Wizard Missing

 

You guys solved it.  I had created my v18 test databases as database projects 
instead of databases.  Database Projects appear to be new and I’ll have to read 
up on them.  I knew that 4D v18 was introducing a way to manage code in a 
non-binary format, but I did not know the details.

 

Thanks,

 

David Belote

 

From: Jeremy French 
Date: Thursday, February 27, 2020 at 1:01 PM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Cc: David Belote 
Subject: Re: 4D v18.0 LTS - Form Wizard Missing

 

Hi David,

 

When you create a new database with v18, you can choose between:

1) Database Project; or

2) Database.

 

Database Project (also known as Project Mode) has no form wizard.

 

Database (also know as Binary Mode) has the familiar form wizard: the gear 
button behaves as it did in v17 and earlier.

 

To create a v18 database in Binary Mode, choose FILE -> NEW -> DATABASE, as 
shown in this screen shot:

 

https://i.postimg.cc/mrsb44rY/2020-02-27-14-49-22.png

 

Best regards,

Jeremy French

 




On Feb 23, 2020, at 10:01 PM, David Belote via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

 

Specific version is 4D v18 build 18.246707…




The Gear button at the bottom of the Forms page used to provide options for 
using the Form Wizard.  Now all it lists is “New Form” which provides the exact 
same functionality that the plus sign to the left of it has.  Both of them just 
let a blank form be with no buttons or field chooser to pick from.

Is that what others see as well?  How do I fix this?

 

**
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 v18.0 LTS - Form Wizard Missing

2020-02-28 Thread David Belote via 4D_Tech
You guys solved it.  I had created my v18 test databases as database projects 
instead of databases.  Database Projects appear to be new and I’ll have to read 
up on them.  I knew that 4D v18 was introducing a way to manage code in a 
non-binary format, but I did not know the details.

 

Thanks,

 

David Belote

 

From: Jeremy French 
Date: Thursday, February 27, 2020 at 1:01 PM
To: 4D iNUG Technical <4d_tech@lists.4d.com>
Cc: David Belote 
Subject: Re: 4D v18.0 LTS - Form Wizard Missing

 

Hi David,

 

When you create a new database with v18, you can choose between:

1) Database Project; or

2) Database.

 

Database Project (also known as Project Mode) has no form wizard.

 

Database (also know as Binary Mode) has the familiar form wizard: the gear 
button behaves as it did in v17 and earlier.

 

To create a v18 database in Binary Mode, choose FILE -> NEW -> DATABASE, as 
shown in this screen shot:

 

https://i.postimg.cc/mrsb44rY/2020-02-27-14-49-22.png

 

Best regards,

Jeremy French

 



On Feb 23, 2020, at 10:01 PM, David Belote via 4D_Tech <4d_tech@lists.4d.com> 
wrote:

 

Specific version is 4D v18 build 18.246707…



The Gear button at the bottom of the Forms page used to provide options for 
using the Form Wizard.  Now all it lists is “New Form” which provides the exact 
same functionality that the plus sign to the left of it has.  Both of them just 
let a blank form be with no buttons or field chooser to pick from.

Is that what others see as well?  How do I fix this?

 

**
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 v18.0 LTS - Form Wizard Missing

2020-02-26 Thread David Belote via 4D_Tech
I’m wondering if I have a corrupted 4D v18.0 macOS install.  The Form Wizard 
that has existed since the earliest days of 4D is missing and I can’t build 
table forms.

 

Specific version is 4D v18 build 18.246707.  I downloaded it on the first day 
it was available to non-partners.

 

The Gear button at the bottom of the Forms page used to provide options for 
using the Form Wizard.  Now all it lists is “New Form” which provides the exact 
same functionality that the plus sign to the left of it has.  Both of them just 
let a blank form be with no buttons or field chooser to pick from.

 

Is that what others see as well?  How do I fix this?

 

Thank you,

 

Dave Belote

**
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: Questions about workers

2016-10-21 Thread David Belote
Thanks Chip.  That worked.

David Belote
Colorado Springs

On 10/18/16, 7:38 AM, "4D_Tech on behalf of Chip Scheide" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_o...@pghrepository.org> wrote:

probably adding either:
- reduce selction([table];0)
or
- unload record([table])
would resoleve this problem

On Mon, 17 Oct 2016 21:56:07 -0600, David Belote wrote:
> 
> I did discover what I think is a Worker bug in doing these simple 
> tests.  Each time I ran these little tests, the very last record that 
> was created and then saved by the Worked is edit locked.  It can’t be 
> deleted.
**
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
**


**
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: Generate Digest MD5 - Max Input File Size?

2016-10-21 Thread David Belote
Wow!  This thread has yielded a wealth of information about hashes & checksums 
and the issues surrounding generating and using them.  David Adams’s Hash Tool 
Component PDF finally gave me a good explanation about what a Hash is and 
provides a good resource.  I’m still a little bit foggy about the difference 
between what a Hash is vs. what a Checksum is.  Are they really different?  
Since the 4D Language itself doesn’t use the concept of hashes (I know they are 
used in other programming languages extensively), I simply don’t know much 
about them.

I downloaded Keisuke’s Hash plugin and will be testing it for use in my app 
during the next few days to generate MD5 checksums on files.

David Belote
Colorado Springs  

On 10/20/16, 8:25 PM, "4D_Tech on behalf of Keisuke Miyako" 
<4d_tech-boun...@lists.4d.com on behalf of keisuke.miy...@4d.com> wrote:

it never occurred to me that PHP hashing could take so long...

here I've just posted a plugin to generate the hash of a file:

https://github.com/miyako/4d-plugin-hash

for what it's worth, you can pass a callback method too...

> 2016/10/20 23:17、Cannon Smith <can...@synergyfarmsolutions.com> のメール:
>
> I created a feature request a few years ago 
(http://forums.4d.fr/Post/EN/13706008/1/13706009#13706009) because I was in the 
same situation you are and turned to php as well. Only I was doing a SHA1 
instead of MD5. Anyway, the thing I was running into wasn’t a file size limit 
but a time limit. PHP calls error out after 30 seconds which wasn’t enough time 
to compute the SHA1 on the size of files I was working with.
>
> I just mention it in case this is what is happening to you as well.



宮古 啓介
セールス・エンジニア

株式会社フォーディー・ジャパン
〒150-0043
東京都渋谷区道玄坂1-10-2 渋谷THビル6F
Tel: 03-6427-8441
Fax: 03-6427-8449

keisuke.miy...@4d.com
www.4D.com/JP

**
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
**


**
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: Generate Digest MD5 - Max Input File Size?

2016-10-19 Thread David Belote
The code that was failing on the 687.6 MB file with an out of memory error 
follows.  In order to use the Generate digest command on a file, you have to 
convert the file to a BLOB first.  If I would have written it, I would have 
just read in the file directly and computing the checksum as it streamed in, 
but for some reason the method’s author chose to allow only BLOB or Text as 
input.

C_POINTER($ptr_pathFilename;$1)
$ptr_pathFilename:=$1

C_BLOB($blobbedDocument)
DOCUMENT TO BLOB($ptr_pathFilename->;$blobbedDocument)

$0:=Generate digest($blobbedDocument;MD5 digest)

David Belote
Colorado Springs

On 10/19/16, 9:49 AM, "4D_Tech on behalf of Timothy Penner" 
<4d_tech-boun...@lists.4d.com on behalf of tpen...@4d.com> wrote:

The docs say that Generate Digest accepts either a BLOB or a TEXT variable:
http://livedoc.4d.com/4Dv15-R5/help/Command/en/page1147.html

The docs also say that both Blobs and Text variables are limited to 2 GB - 
here are the relevant excerpts:


BLOB http://livedoc.4d.com/4Dv15-R5/help/Title/en/page262.html#12745 

A BLOB field or variable is a series of bytes (from 0 to 2 GB in length) 
that you can address individually or by using the BLOB Commands. There is no 
expression of type BLOB.
Note: In the 4D Language Reference manual, BLOB parameters in command 
descriptions are denoted as BLOB.


String http://livedoc.4d.com/4Dv16-R2/help/Title/en/page262.html#1211073 

String is a generic term that stands for:
* Alphanumeric fields or variables: an Alphanumeric field may contain from 
0 to 255 characters (limit set when field is defined).
* Text fields or variables: a Text field, variable, or expression may 
contain from 0 to 2 GB of text..
* Any String or Text expression
There is no difference between a string or text variable.
You can assign a string to a text field and vice-versa; 4D does the 
conversion, truncating if necessary. You can mix string and text in an 
expression.
Note: In the 4D Language Reference manual, both string and text parameters 
in command descriptions are denoted as String, except when marked otherwise.


-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
**


**
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: Questions about workers

2016-10-17 Thread David Belote
I have many of the same questions you do about Workers.  I only discovered the 
new concept of Workers three days ago and am running experiments to try to 
figure them out myself.  But I can offer up the following.  

As for High Velocity:  I created an iteration loop that called a Worker.  The 
only thing that I had the Worker do was to Create a new record, store the 
iteration number + current date + current time in it and save the record.  I 
set it up for 500,000 iterations.  It took about the same time as just running 
in the same process (I didn’t exhaustively compare numbers).  It doesn’t seem 
to have the normal time lag that would occur to start up a New Process.  
Anyway, it was very fast.

I was also concerned about what would happen when a Worker was given a new 
request while it was still executing a previous request.  So I lmited the 
integration to just 20 records, but introduced a 3 second time delay.  It 
stored up those requests and executed all of them.  It did not drop any of the 
request on the floor.  I believe it executed the Worker requests in the same 
sequence of the Worker calls from my iteration loop, but I am not certain about 
that.  I now am wondering what the limit is for the number of requests to the 
Worker that can be stored up?

I did discover what I think is a Worker bug in doing these simple tests.  Each 
time I ran these little tests, the very last record that was created and then 
saved by the Worked is edit locked.  It can’t be deleted.

I hope this helps at least a little bit.

David Belote
Colorado Springs

On 10/16/16, 10:18 AM, "4D_Tech on behalf of Foucauld Perotin" 
<4d_tech-boun...@lists.4d.com on behalf of fp.lis...@teluric.com> wrote:

Hi,

I have some questions about workers. Sorry if it is obvious for some of 
you. I still don’t feel so comfortable with this new stuff. 

- May the workers be local processes? (naming them with a $, I guess)

- What about the stack size ? I see nothing about that, and I do not 
understand why. I guess the stack will have the mystery "default size", but I’m 
not sure... ;)

- I know that preemptive execution implies no interprocess variables. OK. 
But, if the preemptive aspect is not a priority for me now, can I still use 
inteprocess variables without any problem in my workers?

– Is the use of workers not for a high velocity compute section of an app, 
but for a regular part, with basic records filling and so, reasonable or not? 
with the idea to call the worker-process by the "call form" command, when 
needed). Why would I do that? Because some of my apps have a concept of several 
permanent processes with reuse of those. So, the workers would be better than 
the processes which are most of the time sleeping, then wake up, then go back 
to sleep, and so on...

Thanks for your upcoming replies! :)

-- 
Foucauld Pérotin
 
 Try again.
 Fail again. Fail better.
 
 Samuel Beckett 
**
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
**


**
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
**