Re: Active4D/ObjectTools with 4D 32-bit

2018-12-10 Thread Robert McKeever via 4D_Tech
Yes, still at 32-bit.

> On Dec 10, 2018, at 10:55 AM, Aparajita Fishman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Hi,
> 
> Just wondering how many Active4D or ObjectTools users out there *must* use 
> 32-bit 4D on macOS for the foreseeable future.
> 
> I need to know how much longer I need to support 32-bit versions of my 
> plugins on macOS.
> 
> Many thanks,
> 
> - Aparajita
> 
> 
> **
> 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
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@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: Native 4D to make REST request to Django application

2018-12-10 Thread Lee Hinde via 4D_Tech
Django is a python web framework. Django Rest Framework (DRF) is a plugin that 
facilitates adding a REST Api. It’s the most popular plugin for this,  but it’s 
not the only way to do it.

When I did this before there was an explicit call to get the token - the django 
developer created it. They may have used the default path, I’m not sure 
(/get-token)  I used the 4D command :
HTTP AUTHENTICATE($user;$password)
for the request to get the token.

Thereafter I used the token in the header and built the headers using arrays 
with HTTP Request… In my case the format for the header was:

Header Name: Authorization, Header Value : Token 


> On Dec 10, 2018, at 3:52 PM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am looking for assistance with developing a REST interface to a Django 
> application using native 4D v16R6 commands.  Is it possible to do this?  I 
> have been given a username, Password, and Basic Authorization token and  I 
> have tried using the HTTP AUTHENTICATE command to set username and password, 
> and then adding the Authorization to the http header but I am not getting 
> back the expected JSON results using the HTTP Get function.
> 
> Any suggestions would be appreciated!
> 
> Thank you,
> Brad Olson
> CommScope, Inc.
> **
> 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
**

Re: Native 4D to make REST request to Django application

2018-12-10 Thread John DeSoi via 4D_Tech
I'm not familiar with Django, but here are some suggestions after a quick look 
at their API. They show an examples here with curl. 

https://www.django-rest-framework.org/tutorial/quickstart/

https://www.django-rest-framework.org/api-guide/authentication/

If you run these adding the --verbose option you should be able to get an 
accurate picture of what is sent and received. From there you can probably 
figure out what is going wrong with your 4D implementation. 

John DeSoi, Ph.D.


> On Dec 10, 2018, at 5:52 PM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am looking for assistance with developing a REST interface to a Django 
> application using native 4D v16R6 commands.  Is it possible to do this?  I 
> have been given a username, Password, and Basic Authorization token and  I 
> have tried using the HTTP AUTHENTICATE command to set username and password, 
> and then adding the Authorization to the http header but I am not getting 
> back the expected JSON results using the HTTP Get function.

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

Native 4D to make REST request to Django application

2018-12-10 Thread Olson, Brad via 4D_Tech
I am looking for assistance with developing a REST interface to a Django 
application using native 4D v16R6 commands.  Is it possible to do this?  I have 
been given a username, Password, and Basic Authorization token and  I have 
tried using the HTTP AUTHENTICATE command to set username and password, and 
then adding the Authorization to the http header but I am not getting back the 
expected JSON results using the HTTP Get function.

Any suggestions would be appreciated!

Thank you,
Brad Olson
CommScope, Inc.
**
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: Active4D/ObjectTools with 4D 32-bit

2018-12-10 Thread Douglas von Roeder via 4D_Tech
Aparajita:

I've got one project that will be 32-bit for a couple of years. The client
has a lot of code in 4D Write (32-bit) but they won't have the budget
that's needed to rewrite their 4D Write code until calendar year 2020. That
application has over 6,000 references to OT, many of which are in
subroutines//accessor methods that are called in dozens, or in some cases,
hundreds of places.

One other app that uses Mac is now 32-bit but it will be migrated in 2019.
--
Douglas von Roeder
949-336-2902


On Mon, Dec 10, 2018 at 10:56 AM Aparajita Fishman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi,
>
> Just wondering how many Active4D or ObjectTools users out there *must* use
> 32-bit 4D on macOS for the foreseeable future.
>
> I need to know how much longer I need to support 32-bit versions of my
> plugins on macOS.
>
> Many thanks,
>
> - Aparajita
>
>
> **
> 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
**

RE: Active4D/ObjectTools with 4D 32-bit

2018-12-10 Thread David Ringsmuth via 4D_Tech
Aparajita,

About Active4D, to answer your question well requires researching the reasons 
for it.

I support sites using OSX 4D Server running Active4D, some of which are 
probably running 32bit, but I’m not sure they must run 32 bit. (would you mind 
describing the barriers/issures here?)

We are in the processing of upgrading to v17, which in our case requires 64 bit 
on the Client.

I have preferred to run 64 bit where every possible on our 4D Servers.

I wish this was a better answer for you.

David Ringsmuth

From: Aparajita Fishman via 4D_Tech
Sent: Monday, December 10, 2018 12:56 PM
To: 4d_tech@lists.4d.com
Cc: Aparajita Fishman
Subject: Active4D/ObjectTools with 4D 32-bit

Hi,

Just wondering how many Active4D or ObjectTools users out there *must* use 
32-bit 4D on macOS for the foreseeable future.

I need to know how much longer I need to support 32-bit versions of my plugins 
on macOS.

Many thanks,

- Aparajita


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

Re: Active4D/ObjectTools with 4D 32-bit

2018-12-10 Thread Sandor Szatmari via 4D_Tech
We still use 32bit.

Sandor Szatmari


















Senior Software Developer
Bristol Capital Inc. - InfoPlus
201 746 7215
www.infoplusonline.com



 From:   Aparajita Fishman via 4D_Tech <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Aparajita Fishman  
 Sent:   12/10/2018 1:55 PM 
 Subject:   Active4D/ObjectTools with 4D 32-bit 

Hi,

Just wondering how many Active4D or ObjectTools users out there *must* use 
32-bit 4D on macOS for the foreseeable future.

I need to know how much longer I need to support 32-bit versions of my plugins 
on macOS.

Many thanks,

- Aparajita


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

Active4D/ObjectTools with 4D 32-bit

2018-12-10 Thread Aparajita Fishman via 4D_Tech
Hi,

Just wondering how many Active4D or ObjectTools users out there *must* use 
32-bit 4D on macOS for the foreseeable future.

I need to know how much longer I need to support 32-bit versions of my plugins 
on macOS.

Many thanks,

- Aparajita


**
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 Structure Export...

2018-12-10 Thread Tom Benedict via 4D_Tech
Thanks for posting the link Lutz. I will dig into it deeper. It looks 
encouraging.

Tom Benedict  

> On Dec 10, 2018, at 01:26, Epperlein, Lutz (agendo) via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
>> Maybe we need to consider moving team development from the centralized 4D 
>> Team
>> Developer model to a distributed model  using individual copies of 4D. That 
>> would
>> match the classic development model and practice which non-4D developers have
>> enjoyed for decades Is anyone doing
>> this yet? I would try it myself, but I’m not a Partner at this time.
> 
> We have been doing something similar for some time with the VC_Framework 
> component. The original version of the component doesn't support the 
> re-import of code so we extended it with an import function for methods. The 
> procedure is a bit inconvenient, you have to do an additional step (the 
> import) manually after checking out the code from the versioning system 
> (Mercurial in our case) but it works flawlessly. We use this workflow and the 
> vc_framework component since 4d V13. Look here if you are interested: 
> https://github.com/elutz/vc-framework-v17
> 
> A remark: we don't use it for forms. An export of forms is possible using the 
> VC_framework. But we don’t re-import  forms, since this is not possible 
> before 17R3. (And we don't do much GUI development in 4D, it is web 
> development mostly). It might be possible with 17R3 but we have to extend the 
> component again. If we start with 17R3 (or later V18) I think we will adapt 
> the component using the new features.
> 
> Regarding this new features in 4D V17R3 I think they are based mainly on the 
> code of this component, the exported results look very similar. But a more in 
> depth test with the 17R3 we didn't do yet. 
> 
> 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-unsubscr...@lists.4d.com
**

Re: Form Scaling & Optimal Fonts...

2018-12-10 Thread ADeeg via 4D_Tech
4D Tech mailing list wrote
> For many projects, I’m working with a larger team where the precise size
> of fonts and other stylesheet details are already decided. In this case,
> I’m designing new forms and optimizing some old ones via Windows 10 (for a
> legacy application that looks like it ran on a Mac Plus) and I wanted to
> make a wise choice about an approach with respect to: stylesheets; optimal
> fonts and sizes for each platform and what to do about form scaling, if
> anything. I’ve never thought much about the form scaling feature of 4D but
> it seems like scaling is always in effect with a default of  "Windows to
> Mac (75%)”.
> 
> Form Scaling... Is this still a thing? :) 
> 
> While converting a v11-based structure to v17 that started life on a Mac
> many years before, I noticed that most forms seemed rather small on
> Windows (currently the only destination platform but I don’t want to
> exclude Mac clients). At first, the 133% increase in form size seemed
> seemed to fit the bill (if not slightly large). One issue I noticed is
> that the glass button graphics are obviously scaled beyond the bitmap
> (meaning that these buttons only look sharp at 48X48 and all standard 4D
> buttons are this size). I’ve never noticed scaling artifacts on other
> projects.
> 
> V17 Default Stylesheet
> Windows 7 & 8 (Segoe UI, 12 point)
> Windows Classic (MS Sans Serif, 12 point)
> OS X (Lucida Grande, 13 point)
> 
> Regarding the default stylesheet, what is “Windows Classic” and what
> stylesheet would Windows 10 use?
> 
> Which Windows fonts and sizes do you find optimal for your 4D
> applications? Do you use explicit stylesheets? Do you use automatic
> stylesheets too?  Scaling other than 133%? I saw recently where 125% was
> considered optimal. I appreciate your thoughts on modern, high-quality
> form design.
> 
> Thanks,
> 
> Robert

Robert,

there is a 4D Technote from 2015 (World Tour)

08_Zoom_Form

With this Technote and some modifications, you can zoom your forms
individually.
The code resizes and moves the form objects and increase the font sizes with
code.

sample screen from the same form: http://node.de/pic/ex7/zoom.png

I've used this code for 4D v12 and now with v16

Regards Armin




--
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 Structure Export...

2018-12-10 Thread Epperlein, Lutz (agendo) via 4D_Tech
> Maybe we need to consider moving team development from the centralized 4D Team
> Developer model to a distributed model  using individual copies of 4D. That 
> would
> match the classic development model and practice which non-4D developers have
> enjoyed for decades Is anyone doing
> this yet? I would try it myself, but I’m not a Partner at this time.

We have been doing something similar for some time with the VC_Framework 
component. The original version of the component doesn't support the re-import 
of code so we extended it with an import function for methods. The procedure is 
a bit inconvenient, you have to do an additional step (the import) manually 
after checking out the code from the versioning system (Mercurial in our case) 
but it works flawlessly. We use this workflow and the vc_framework component 
since 4d V13. Look here if you are interested: 
https://github.com/elutz/vc-framework-v17

A remark: we don't use it for forms. An export of forms is possible using the 
VC_framework. But we don’t re-import  forms, since this is not possible before 
17R3. (And we don't do much GUI development in 4D, it is web development 
mostly). It might be possible with 17R3 but we have to extend the component 
again. If we start with 17R3 (or later V18) I think we will adapt the component 
using the new features.

Regarding this new features in 4D V17R3 I think they are based mainly on the 
code of this component, the exported results look very similar. But a more in 
depth test with the 17R3 we didn't do yet. 

Regards 
Lutz


--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--


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