Re: problems with SSL cert/SOLVED

2020-01-10 Thread Rebecca Bryant via 4D_Tech
Thank you John! Good to know!!

Rebecca

>>>
Message: 10
Date: Fri, 10 Jan 2020 08:39:58 -0600
From: John DeSoi 
To: 4D iNug Technical <4d_tech@lists.4d.com>
Subject: Re: problems with SSL cert/SOLVED
Message-ID: 
Content-Type: text/plain;   charset=us-ascii

Glad to hear you solved it.

The initial setup can be a bit complex, but I highly recommend automating
the whole SSL certificate thing with Let's Encrypt. The certificate cost
goes to zero and you never have to worry about it again unless your logging
script says you have an issue. It automatically renews every few months and
I have seen zero issues since setting it up about a year and a half ago.

There is a 4D tech note about it in the link below. Or you can just script
it with Mac or Windows OS tools.

https://kb.4d.com/assetid=77671


John DeSoi, Ph.D.

On Fri, Jan 10, 2020 at 3:00 PM <4d_tech-requ...@lists.4d.com> wrote:

> Send 4D_Tech mailing list submissions to
> 4d_tech@lists.4d.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.4d.com/mailman/listinfo/4d_tech
> or, via email, send a message with subject or body 'help' to
> 4d_tech-requ...@lists.4d.com
>
> You can reach the person managing the list at
> 4d_tech-ow...@lists.4d.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of 4D_Tech digest..."
>
>
> Today's Topics:
>
>1. Re: HTTP Upload file size too low (Jim Labos - infobase)
>2. Re: HTTP Upload file size too low (Jim Labos - infobase)
>3. Re: HTTP Upload file size too low (Jim Labos - infobase)
>4. Re: problems with SSL cert (Rebecca Bryant)
>5. RE: problems with SSL cert (Timothy Penner)
>6. Re: problems with SSL cert (Rebecca Bryant)
>7. Re: problems with SSL cert/SOLVED (Rebecca Bryant)
>8. Re: problems with SSL cert (Sandor Szatmari)
>9. Write Pro disable spell checking (Piotr Chabot Stadhouders)
>   10. Re: problems with SSL cert/SOLVED (John DeSoi)
>
>
> --
>
> Message: 1
> Date: Thu, 9 Jan 2020 13:13:17 -0700 (MST)
> From: Jim Labos - infobase 
> To: 4d_tech@lists.4d.com
> Subject: Re: HTTP Upload file size too low
> Message-ID: <1578600797672-0.p...@n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Ok that's a start if using WEB GET BODY PART will get the "chunks" and I
> can
> then reconstruct the file (I am assuming that is how it works).
>
> I'll b echeking for libraries that will allow me to implemnt chuncked
> uploads. Thanks for your acknowledgement that you have had success doing
> this.
>
>
>
> 4D Tech mailing list wrote
> > I'm not sure if I understand your environment in which you would do that
> > file upload. As I mentioned before, I did some little testing with
> chunked
> > uploads using a web browser as a client and there a javascript library.
> At
> > the server side I use WEB GET BODY PART in conjunction with WEB Get body
> > part count. I was able to upload file up to 4 GB.
> >
> > It looks really simple:
> >
> >   For ($index;1;WEB Get body part count)
> >
> >   WEB GET BODY
> PART($index;$MimeBody;$name;$mimeType;$filename)
> >
> >   // do something with the chunk received in $MimeBody
> >
> >   End for
> >
> > If you use another client than a web browser you have to mimic the
> > appropriate request. Using 4D as a client shouldn't be a problem. Simply
> > use HTTP Request and build appropriate headers and body.
> >
> > Regards
> > Lutz
> >
> >
> >
> >
> > **
> > 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-Unsubscribe@.4D
>
> > **
>
>
>
>
>
> -
> Jim Labos - infobase
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
>
>
> --
>
> Message: 2
> Date: Thu, 9 Jan 2020 13:16:56 -0700 (MST)
> From: Jim Labos - infobase 
> To: 4d_tech@lists.4d.com
> Subject: Re: HTTP Upload file size too low
> Message-ID: <1578601016468-0.p...@n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Thanks for link John. I'll give it a look. I knew it needed more than HTML
> on
> the browser's side just wasn't sure if 4D was then able to receive the
> chunks.
>
> Cheers
>
>
> 4D Tech mailing list wrote
> > This is what I was trying to get at a few messages ago. Maybe WEB GET
> BODY
> > PART does support chunked encoding, but that is irrelevant if the client
> > side does not support it. As best I can tell from Jim's description is he
> > is using a standard HTML multipart form with a file input. Javascript is
> > not involved, so having this work depends on the browser's support for
> > switching to chunked encoding. I don't know if web browsers d

Re: problems with SSL cert/SOLVED

2020-01-10 Thread Rebecca Bryant via 4D_Tech
Thanks for the tip Sandor. I like hanging on to the old certs too. I
usually hide them in a folder so it's good to know that's recommended (as
opposed to just renaming).

Rebecca

>
Message: 8
Date: Fri, 10 Jan 2020 09:01:00 -0500
From: Sandor Szatmari 
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Rebecca Bryant 
Subject: Re: problems with SSL cert
Message-ID: <5b4a0d72-6545-4a9a-8436-e334facb6...@infoplusonline.com>
Content-Type: text/plain;   charset="utf-8"

Rebecca,

Don’t know if this is related, but I had a difficult time replacing a cert
recently.  I found out that 4D server reads all certs in the main directory
regardless of if you intent to used them or not.  As soon as I removed
unused certs everything functioned perfectly.  I had simply renamed the old
cert to replace the new one.  Thinking I don’t want to trash this yet.  But
keeping it in the same dir gave major problems loading any cert.  hope that
helps.

Sandor

On Fri, Jan 10, 2020 at 3:00 PM <4d_tech-requ...@lists.4d.com> wrote:

> Send 4D_Tech mailing list submissions to
> 4d_tech@lists.4d.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.4d.com/mailman/listinfo/4d_tech
> or, via email, send a message with subject or body 'help' to
> 4d_tech-requ...@lists.4d.com
>
> You can reach the person managing the list at
> 4d_tech-ow...@lists.4d.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of 4D_Tech digest..."
>
>
> Today's Topics:
>
>1. Re: HTTP Upload file size too low (Jim Labos - infobase)
>2. Re: HTTP Upload file size too low (Jim Labos - infobase)
>3. Re: HTTP Upload file size too low (Jim Labos - infobase)
>4. Re: problems with SSL cert (Rebecca Bryant)
>5. RE: problems with SSL cert (Timothy Penner)
>6. Re: problems with SSL cert (Rebecca Bryant)
>7. Re: problems with SSL cert/SOLVED (Rebecca Bryant)
>8. Re: problems with SSL cert (Sandor Szatmari)
>9. Write Pro disable spell checking (Piotr Chabot Stadhouders)
>   10. Re: problems with SSL cert/SOLVED (John DeSoi)
>
>
> --
>
> Message: 1
> Date: Thu, 9 Jan 2020 13:13:17 -0700 (MST)
> From: Jim Labos - infobase 
> To: 4d_tech@lists.4d.com
> Subject: Re: HTTP Upload file size too low
> Message-ID: <1578600797672-0.p...@n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Ok that's a start if using WEB GET BODY PART will get the "chunks" and I
> can
> then reconstruct the file (I am assuming that is how it works).
>
> I'll b echeking for libraries that will allow me to implemnt chuncked
> uploads. Thanks for your acknowledgement that you have had success doing
> this.
>
>
>
> 4D Tech mailing list wrote
> > I'm not sure if I understand your environment in which you would do that
> > file upload. As I mentioned before, I did some little testing with
> chunked
> > uploads using a web browser as a client and there a javascript library.
> At
> > the server side I use WEB GET BODY PART in conjunction with WEB Get body
> > part count. I was able to upload file up to 4 GB.
> >
> > It looks really simple:
> >
> >   For ($index;1;WEB Get body part count)
> >
> >   WEB GET BODY
> PART($index;$MimeBody;$name;$mimeType;$filename)
> >
> >   // do something with the chunk received in $MimeBody
> >
> >   End for
> >
> > If you use another client than a web browser you have to mimic the
> > appropriate request. Using 4D as a client shouldn't be a problem. Simply
> > use HTTP Request and build appropriate headers and body.
> >
> > Regards
> > Lutz
> >
> >
> >
> >
> > **
> > 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-Unsubscribe@.4D
>
> > **
>
>
>
>
>
> -
> Jim Labos - infobase
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
>
>
> --
>
> Message: 2
> Date: Thu, 9 Jan 2020 13:16:56 -0700 (MST)
> From: Jim Labos - infobase 
> To: 4d_tech@lists.4d.com
> Subject: Re: HTTP Upload file size too low
> Message-ID: <1578601016468-0.p...@n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Thanks for link John. I'll give it a look. I knew it needed more than HTML
> on
> the browser's side just wasn't sure if 4D was then able to receive the
> chunks.
>
> Cheers
>
>
> 4D Tech mailing list wrote
> > This is what I was trying to get at a few messages ago. Maybe WEB GET
> BODY
> > PART does support chunked encoding, but that is irrelevant if the client
> > side does not support it. As best I can tell from Jim's description is he
> > is using a standard HTML multipart form with a file input. Javascript is
> > not in

4D write pro add a new section.

2020-01-10 Thread Eric Naujock via 4D_Tech
I see I can add a new subsection. But I am still trying to figure out how I 
would create new sew section object to append to a document. I see I need to 
have a second section to change from a one column layout to a 2 column layout. 
But there does not seem to be ab way to create a section object or append a new 
section to a WP document. Any hints out there. I need to do this 
programmatically.
**
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
**

Document encoding

2020-01-10 Thread Two Way Communications via 4D_Tech
Hi All,

An important customer of mine has requested that all documents, sent to him, 
are UTF-8 encoded.
This concerns PDF files, text files, Word, Excel, picture files.

I did some tests, but can’t figure out how to do that.

If, e.g., I look at a pdf file in BBEdit, it says ‘Mac Roman’.

Then I tried to open that file in 4D (v17, UTF-8) with document to blob
then:

DOCUMENT TO BLOB(document;$blob)
$DocBlobtxt:=Convert to text(blob;2027)  // 2027 = MacOS Roman  
TEXT TO BLOB($DocBlobtxt;$docblobUTF8;UTF8 text without length)

It seems to do that correctly, but then, this file cannot be opened in preview 
( Opens, but content is blanc)

The other thing is that I need to know the encoding of the file before using 
‘Convert to text’. That is not always possible.

Is this request feasible to start with?

Any ideas how to accomplish that?   


Regards,

Rudy Mortier
Two Way Communications bvba 



**
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: Write Pro multi column layout.

2020-01-10 Thread Eric Naujock via 4D_Tech
I think I may have found it in the blogs. 

https://blog.4d.com/create-multi-column-documents-in-4d-write-pro/ 


> On Jan 10, 2020, at 4:21 PM, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Good morning,
>   I have been digging in the docs to try and figure out how to add a two 
> column block to a Write Pro document. I have a single column document. But 
> wanted to add a block to the end that had two columns for a set of two 
> signature blocks.
> Effectively I would like to create a write pro object that has two columns 
> with one Write pro objects in each of the two columns. Then append then to 
> the end of a running Write pro section. 
> **
> 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
**

Write Pro multi column layout.

2020-01-10 Thread Eric Naujock via 4D_Tech
Good morning,
I have been digging in the docs to try and figure out how to add a two 
column block to a Write Pro document. I have a single column document. But 
wanted to add a block to the end that had two columns for a set of two 
signature blocks.
Effectively I would like to create a write pro object that has two columns with 
one Write pro objects in each of the two columns. Then append then to the end 
of a running Write pro section. 
**
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: problems with SSL cert/SOLVED

2020-01-10 Thread John DeSoi via 4D_Tech
Glad to hear you solved it. 

The initial setup can be a bit complex, but I highly recommend automating the 
whole SSL certificate thing with Let's Encrypt. The certificate cost goes to 
zero and you never have to worry about it again unless your logging script says 
you have an issue. It automatically renews every few months and I have seen 
zero issues since setting it up about a year and a half ago.

There is a 4D tech note about it in the link below. Or you can just script it 
with Mac or Windows OS tools.

https://kb.4d.com/assetid=77671


John DeSoi, Ph.D.


> On Jan 9, 2020, at 11:58 PM, Rebecca Bryant via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Tada! The URL now resolves to the login page using the new cert.pem and
> key.pem files. I'll check in on it periodically to make sure all is well.

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

Write Pro disable spell checking

2020-01-10 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When displaying a write pro area in a form, on default I want to disable spell 
checking

I thought I could do this with the view property wk spell enable

$viewProps[wk spell enable]:=false
WP SET VIEW PROPERTIES(*;$wpro_area;$viewProps)


However, when doing this the spelling options in the context menu are gone, and 
in the write pro toolbar the "enable spelling" button is disabled
So, the user cannot enable spell cheking

Is there another way to disable spell checking? (On load, without the write pro 
area having the focus)
Im a doing something wrong?

Gr,
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: problems with SSL cert

2020-01-10 Thread Sandor Szatmari via 4D_Tech
Rebecca,

Don’t know if this is related, but I had a difficult time replacing a cert 
recently.  I found out that 4D server reads all certs in the main directory 
regardless of if you intent to used them or not.  As soon as I removed unused 
certs everything functioned perfectly.  I had simply renamed the old cert to 
replace the new one.  Thinking I don’t want to trash this yet.  But keeping it 
in the same dir gave major problems loading any cert.  hope that helps.  

Sandor

> On Jan 9, 2020, at 09:14, Rebecca Bryant via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am having a problem getting a new SSL certificate to work. This web app
> has been running successfully with SSL for several years. The current cert
> expires in a few days so I used GENERATE ENCRYPTION KEYPAIR and GENERATE
> CERTIFICATE REQUEST to generate a private key, public key, and certificate
> request. The request was submitted to DigiCert (by a tech support
> co-worker). The resulting file was renamed 'cert.pem' and the private key
> was renamed 'key.pem' and placed in the folder with the structure. When I
> try to start the app I get an error on the first line of the startup
> routine; it lists the 'key.pem' file with the error 'Access denied'. I have
> done all of this successfully before so I am stumped as to what is causing
> the failure this time. The app works fine if I replace the new cert.pem and
> key.pem files with the old ones (from Go Daddy). The app is running via 4D
> Server 16R5 on Windows Server 2016. Normally it runs as a service via
> FireDaemon. I have several other apps running with the same configuration
> and with SSL certs that were generated the same way.
> 
> Any ideas what the problem might be? Any help would be greatly appreciated.
> 
> Thank you and Happy New Year to all,
> Rebecca Bryant Williams
> becca...@gmail.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
> **



CONFIDENTIALITY NOTICE: This email (and any related attachments) contains 
information from InfoPlus (a service of Bristol Capital, Inc.). It is intended 
only for the addressee and may contain information that is confidential and/or 
otherwise exempt from disclosure under applicable law. If you are not the 
intended recipient or are acting as agent for the intended recipient, any use 
or disclosure of this communication is prohibited. If you have received this 
communication in error, please notify us immediately to arrange for the 
appropriate method of returning or disposing of the communication. If our 
respective Companies have confidentiality provisions in effect, this email and 
the materials contained herein are deemed CONFIDENTIAL and should be treated 
accordingly unless expressly provided otherwise.

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