Re: Version of v18 compatible with High Sierra (10.13) on OS X

2022-04-23 Thread Jörg Knebel via 4D_Tech


> On 24 /04 /2022, at 08:42, Tim Daniels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Can anyone help?

I just made a Q’nD including compiling and building a standalone. 

From my point I must say 18.5 and High Sierra working together.

HTH
**
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: Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech


> On 02 /11 /2021, at 07:23, THOMAS BENEDICT via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Finally, the reason I need to drop this list forever.

Sajonara.
**
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: Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech


> On 02 /11 /2021, at 07:14, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
>> On 02 /11 /2021, at 07:09, Douglas von Roeder via 4D_Tech 
>> <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> wrote:
>> 
>> Perhaps the best approach would be for you to try the command and see if
>> you get the desired result.
> 
> I’m sorry guys, it was just to late yesterday… 

… and I haven’t had my first coffee yet meaning I’m still in Self-Devence-Mode… 
;-)

**
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: Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech
Hi All,

> On 02 /11 /2021, at 07:09, Douglas von Roeder via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Perhaps the best approach would be for you to try the command and see if
> you get the desired result.

I’m sorry guys, it was just to late yesterday… 
**
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: Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech


> On 02 /11 /2021, at 06:57, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
>>> You do know what an ARRAY is?
> Did you go look at the page?


You sure it works with ARRAYs NOT filled by a selection?

**
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: Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech


> On 02 /11 /2021, at 02:24, Joshua Hunter via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> You want the docs for 'On a Series'
> https://doc.4d.com/4Dv19R2/4D/19-R2/On-a-Series.201-5493482.en.html 
> 
And this works on an ARRAY how?

You do know what an ARRAY is?
**
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
**

Calculate values of arrays...

2021-11-01 Thread Jörg Knebel via 4D_Tech
G’ day,

I’m sure I have seen it before but can’t remember where. :-(

I’m looking for "Get/Calculate Minimum, Maximum, Average etc.” on (numeric) 
Arrays.

Is there anybody willing to help?

Thanks

Cheers
Jörg
**
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: Search & menu questions

2021-10-30 Thread Jörg Knebel via 4D_Tech


> On 29 /10 /2021, at 10:24, Stephane Potvin via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Main table is client information, linked table for services provided.

Beside the super duper modern cool way to get a result what about the solid old 
way:

$DateServiced:=Add to date(current date(*);-1;0;0) // or value entered by a user

QUERY ([Services]LastServicedDate<=$DateServiced)
RELATE ONE SELECTION([Services];[Clients])

Your description about the menus is a knew one to me - sorry.

HTH

 Cheers
Jörg
**
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: I'm puzzled...

2021-10-28 Thread Jörg Knebel via 4D_Tech
G’day Bernd,

> On 28 /10 /2021, at 17:27, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> new stuff

Hey I love new stuff too as long as it has real “nutritional value”, it makes 
sense and is not mostly a PR-hype.

Thanks for sharing your view on things.

Cheers
Jörg
**
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: I'm puzzled...

2021-10-27 Thread Jörg Knebel via 4D_Tech
Hey Alex and Kirk,


Thank you for your response. :o)))

Cheers
Jörg
**
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
**

I'm puzzled...

2021-10-27 Thread Jörg Knebel via 4D_Tech
G’day,

Having watched the "4D World Tour Live 2021”, downloaded the V19 material and 
checked it and browsed that 4D-Web-Forum, especially 
https://discuss.4d.com/t/adding-field-or-variable-not-working/20963 
 started 
by Tom Dillon with the interesting remark from a responder about some “modern 
project format”… 

Those 4D still claims, in a marketing and/or reality capacity, to have an IDE 
(Integrated Development Environment)?

To me it looks like that Xcode, MS-Visual-Studio and some additional Editors 
are mandatory now to create a working application with/in 4D if one mistakenly 
starts the development in project mode where so much “doesn’t really make sense 
anymore” according to a post on the mentioned forum.

It is time for 4D to declare in detail what direction the kangaroo is hoping to 
give people the chance to make the right decision on time.

Cheers
Jörg

**
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: Count of young new developers after ...

2021-08-06 Thread Jörg Knebel via 4D_Tech

> On 06 /08 /2021, at 23:12, James Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 4D was Mac-only when I started using it.

Good onya!

**
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: Count of young new developers after ...

2021-08-05 Thread Jörg Knebel via 4D_Tech
Jim, 

> On 05 /08 /2021, at 01:59, James Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> exist 40 years from now, why should I care?

Just curious, did you start developing in 4D on Mac or Windows?

Cheers
**
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: Count of young new developers after ...

2021-08-05 Thread Jörg Knebel via 4D_Tech
Jim,

> On 05 /08 /2021, at 01:59, James Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 4D has been around since the 80s, …

That means we could talk about the decades passed for a long time.

Sorry, but I don’t have the time for this.

Cheers
Jörg


**
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: Count of young new developers after ...

2021-08-04 Thread Jörg Knebel via 4D_Tech


> On 04 /08 /2021, at 01:52, James Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I’m curious why that should matter.

Think about it a bit harder and it will come to you.


> Do you not appreciate some slight modernization of the language for yourself?


Hey extending the language and hopefully the functionality with it is great.

For example C_Objects is a great useful extension, unfortunately it was 
integrated more than 20 years later than ObjectTools and still misses things OT 
offers.

Implementing helpful things is good, but one should never abandon elements in 
use like FTP… in the Internet-Command-Plug-IN etc.

I hope you feel a bit more enlighten now.

Cheers
Jörg
**
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
**

Curious about Workers

2021-07-29 Thread Jörg Knebel via 4D_Tech
G’day,

Is there a way to distribute workers to specific cores of the CPU(s) of the 
computer from within 4D?

Thanks

Cheers
Jörg
**
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: Method Editor 4D-version≥18.5

2021-07-26 Thread Jörg Knebel via 4D_Tech
G’day Koen,

Thanks mate.

> On 26 /07 /2021, at 22:26, Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 4D Preferences > Methods > Options > Show Lists (uncheck)

I knew I’m blind. :-(

Cheers
Jörg
**
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
**

Method Editor 4D-version≥18.5

2021-07-26 Thread Jörg Knebel via 4D_Tech
G’day,

Is there a trick to hide the lists at the button of the editor by default?

Thanks

Cheers
Jörg

**
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: Synchronise between 4D and mySQL used in/with WordPress

2021-07-22 Thread Jörg Knebel via 4D_Tech
G’day Dougie,

> On 22 /07 /2021, at 19:09, Dougie via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I have used with 18.4 and see no reason why it would not work with v19.  If 
> in doubt then ask Rob at Pluggers.  I am sure he will let you know.

Thanks for that.

Cheers
Jörg
**
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: Synchronise between 4D and mySQL used in/with WordPress

2021-07-21 Thread Jörg Knebel via 4D_Tech
G’day Dougie,

> On 21 /07 /2021, at 17:13, Dougie via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I would always recommend Pluggers myconnect plugin for any MySQL 
> communication from 4D:  https://www.pluggers.nl/product/myconnect-plugin/ 
> 

Thanks for the suggestion. Is the plugin working with v18/v19?

I’ll have a look at Wordpress API.

Cheers
Jörg
**
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
**

Synchronise between 4D and mySQL used in/with WordPress

2021-07-20 Thread Jörg Knebel via 4D_Tech
G’day,

Does anybody out there ever had to work with WordPress/mySql?

I would be interested in any and all ideas and/or solutions to synchronise data 
between 4D (Standalone and/or C/S) and mySQL (used by WordPress).

Thanks in advance.

Cheers
Jörg


**
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: New Online Manuals

2021-06-29 Thread Jörg Knebel via 4D_Tech


> On 29 /06 /2021, at 22:22, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> its a github repo.
> 
> https://github.com/4d/docs
> 
> you can fork it.

Well, I might give it a shot…

Thanks mate.

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

New Online Manuals

2021-06-29 Thread Jörg Knebel via 4D_Tech
G’day,

I have to admit that this new manual system could get my seal of approval.

Question though: Is there a chance to download the entire package for internet 
blackouts?

Cheers
Jörg
**
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
**

New 4D Folder Structure

2021-06-29 Thread Jörg Knebel via 4D_Tech
G’day All,

Is there someone out there using Active4D and is willing to share the 
information where all the A4D-folders should be located in that new structure.

Thanks.

Cheers
Jörg

**
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: Great new documentation on file/folder architecture in v19 for projects

2021-06-23 Thread Jörg Knebel via 4D_Tech


> On 24 /06 /2021, at 02:08, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Now that I am in the office I can now pass this along for any that are 
> interested and couldn’t find the new documentation and search for it. This 
> page is 3 clicks into the new documentation.
> 
> https://developer.4d.com/docs/en/Project/architecture.html 
> 
> 
> Jody


This is helpful.
Thanks

Cheers
Jörg

**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech
Keith,

I don’t mind getting a “RTFM-answer” as long as a pointer tells me what manual 
to look in.

If there is a NEW manual with super duper search function than I don’t know 
about it and I can’t login in my 4D account.

On the other hand the “RTFM-answer” is the most brilliant generic answer one 
can give nowadays. :o))

Cheers
Jörg
**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech


> On 22 /06 /2021, at 23:59, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have never seen someone be so rude to another 4D developer.

Never did I! 

So, you win again!


**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech


> On 22 /06 /2021, at 23:47, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Jody

I’m proud of you!
**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech


> On 22 /06 /2021, at 23:20, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> If I was I would just…

… disappear into the Web-Forum?…

Please do!


**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech


> On 22 /06 /2021, at 23:20, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> If I was I…

Oha, someone is himself…

Get better mate!


**
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 Default Folder Structure

2021-06-22 Thread Jörg Knebel via 4D_Tech
G’day All,

How does the default folder structure has to look like in Binary and Project 
mode?

Where are the DEFAULT locations of the data-file, the PlugIns-folder and the 
Component-Folder?

What about the Active4D-Folders, in case Active4D is used?

Thanks in advance.

Cheers
Jörg

**
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: How to get information about a connected camera

2021-06-15 Thread Jörg Knebel via 4D_Tech
Hi Koen,

> On 15 /06 /2021, at 18:40, Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 'imagesnap -l' returns a list of available video devices.

Thanks for that. 


> I remember you had some trouble with the signing process and imagesnap (were 
> you able to solve it?).

No, I couldn’t get it to work at all neither with imagesnap nor mit Keisukes 
PlugIn. And believe me I signed everything like hell.

If 4D wants to continue with the Mac-platform they should make sure 4D has full 
access to all the hardware from now on.

Take care mate and thanks again.

Cheers
Jörg



**
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: How to get information about a connected camera

2021-06-15 Thread Jörg Knebel via 4D_Tech


> On 15 /06 /2021, at 10:18, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Is there a (simple) way to get “True or False” to the question “Camera 
> connected” for Mac and Windows?
> 
> Terminal and Command Prompt approach are just fine.

For Windows the solution is:

wmic path CIM_LogicalDevice where Caption="USB2.0 PC CAMERA" get status

This returns an  “Available” if a camera is present.

Someone with the Mac solution out there?

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

How to get information about a connected camera

2021-06-14 Thread Jörg Knebel via 4D_Tech
G’day All,


Is there a (simple) way to get “True or False” to the question “Camera 
connected” for Mac and Windows?

Terminal and Command Prompt approach are just fine.

Thanks in advance.

Cheers
Jörg
**
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: Base64 Image

2021-06-04 Thread Jörg Knebel via 4D_Tech
G’day Koen,

> On 04 /06 /2021, at 23:19, Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Personally I liked this e-mail mailing list, but fact is there is little 
> activity recently. 

Well thanks to that forum this list is free of the white noise and smart ass 
wanke**, which I never see/sow as activity.

Let’s keep this list as the area for real 4D-Pros and divert all the rubbish to 
the forum for the self-proclaimed specialists.

With 30+ years in 4D I can’t stand Newbie-BS.


> Maybe sometimes one just has to follow the crowd,…

Thanks but NO thanks! That is the job for all the lemmings!

In other words, I’ll post and answer HERE ONLY and I’m willing to help the best 
I can as long as this list exist.

Private communications will be an options as long as I program in 4D.

Cheers
Jörg

**
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: Base64 Image

2021-06-04 Thread Jörg Knebel via 4D_Tech


> On 04 /06 /2021, at 22:34, Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> not many developers are using this mailing list.



But lots of the well experienced one do and they are not on that web-forum. 
:o

And there even some they don’t participate at all anymore since all those hypes 
broke loose… 

Please stop the propaganda for that web forum, or some people could get some 
ideas against it.

Thanks

Cheers
Jörg



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

2021-05-26 Thread Jörg Knebel via 4D_Tech
Alex,

> On 27 /05 /2021, at 00:56, Herr Alexander Heintz via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> My current favorite here is Apache eCharts

Thanks for that.

Cheers
Jörg
**
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 Chart replacement

2021-05-26 Thread Jörg Knebel via 4D_Tech
G’day,

Are there any suggestions for a replacement for 4D Chart?

Thanks in advance.

Cheers
Jörg
**
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: JSON Plugin for 4Dv17

2021-04-08 Thread Jörg Knebel via 4D_Tech


> On 08 /04 /2021, at 16:33, Tarawerkz via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> Is there currently any 4D plugin for creating JSON files in 4D that is 
> compatible with 4Dv17 (Windows)?
> Thank you.

What about using native 4D commands?

Look into Objects, meaning create a new one, fill it with your data and then 
use JSON Stringify.

Helpful?

Cheers
Jörg
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-26 Thread Jörg Knebel via 4D_Tech


> On 26 /03 /2021, at 22:03, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> it is the app that needs to be notarised.
> 
> the rules discussed so far are common to all apps, nothing is specific to 4D.

I understand, it is totally my fault that it doesn’t work in 
interpreted/debugging mode.

One PlugIn less to watch out for!

Cheers

**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-26 Thread Jörg Knebel via 4D_Tech


> On 26 /03 /2021, at 17:41, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> info.plist and entitlements are 2 different entities.

Just to clarify one thing: You are talking about “4D Project Mode” all the 
time, do you?

**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-26 Thread Jörg Knebel via 4D_Tech
Keisuke,


> On 26 /03 /2021, at 17:41, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> info.plist and entitlements are 2 different entities.

Now I’m totally confused. Where is the “entitlement entity” located? 

I asume it too should be edited with Xcode only?

I never touched Xcode yet but I think there will be a first time for everything 
to make sense out of all that gibberish needed to develop in 4D nowadays.

> the com.apple.security.device.camera key needs to be in entitlements, not 
> info.plist.
> info.plist is where you add NSCameraUsageDescription.
> 
> if you use a code editor to edit either plist file,
> you might want to "plutil -convert xml1" to normalise the file first.
> in general, using a tool other than Xcode will invalidate the plist file.
> 
> but again, all of that is done automatically in the GitHub example I shared 
> earlier.
> you just have added your Apple Developer password to keychain for it to work.

Well, I guess I’m luck not to have to do a handstand and balancing a daed cat 
with my feed at the same time.

Cheers

**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-25 Thread Jörg Knebel via 4D_Tech
Hi Jim

> On 25 /03 /2021, at 13:31, James Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> So if Jorg wanted to change the entitlements on the 4D.app he uses for 
> development so it could access the camera, he could just re-sign with the new 
> entitlements and his developer ID and notarize a copy of 4D.app with the 
> bundle ID "com.4d.4d”? I never tried this but I just assumed notarization 
> would require a different bundle ID. I guess the combination of bundle ID + 
> developer ID would still be unique, but I guess I just assumed that Apple 
> wouldn’t let that happen.
> 
> Btw, I’m pretty sure camera access requires entries in info.plist in addition 
> to the entitlements but I guess that’s probably already been covered.  It’s 
> also worth noting that the “4D.entitlements” used by 4D’s SignApp.sh has 
> com.apple.security.device.camera set to true so theoretically the only extra 
> thing needed should be the info.plist keys and a built signed notarized app 
> should be allowed to access the camera.


Thanks for sharing your thoughts.

Nothing I tried worked so far.

So, my last attempt to get Keisukes PlugIn working now is to clean my Catalina 
Mac of everything 4D an than reinstall v18.

If this is done I’ll extend the entitlements of 4D by adding the needed pieces 
into the info.plist by using BBEdit eg.


com.apple.security.device.camera



After that, I’ll see if it works within my development (Binary Mode).

I might sign my *.4DB via the terminal.

Cheers
Jörg
**
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: Copy and Paste

2021-03-24 Thread Jörg Knebel via 4D_Tech


> On 24 /03 /2021, at 18:45, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Please just unsubscribe if you don´t use this list anymore, but don´t tell 
> others that they should leave.



I second this!


Cheers
Jörg
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-22 Thread Jörg Knebel via 4D_Tech
Wayne,

Just for your information.


> On 21 /03 /2021, at 00:41, Wayne Stewart via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> You don’t need to as far as I know.
> 
> A .4db is just a document.
> 
> It’s only the application that needs to be signed. Maybe plug-ins as well
> I’m not sure, but not the .4db

As it turns out it is all bullshit.

All that signing business had some “funny-fuc*-up-crashes” effects but NOTHING 
got me over the line on Mac.

I’ll watch the way 4D is going… 



**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-22 Thread Jörg Knebel via 4D_Tech
Hi John,

Thanks for sharing your procedures.

> On 22 /03 /2021, at 03:31, John J Foster via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hope that helps. If not ask away and I’ll try to remember how I got this all 
> working. It took me time.


Yes it helped.

Finally I have an idea where the “road is heading”.
If necessary I’ll take you up on the offer to ask further questions.

Cheers
Jörg


**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-21 Thread Jörg Knebel via 4D_Tech


> On 21 /03 /2021, at 18:05, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> like I posted earlier, all the steps are implemented in the example:
> 
> https://github.com/miyako/4d-utility-build-application 
> 
Yes of cause.

Cheers
Jörg
**
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: [Fun] Special Query ORDA Replacement

2021-03-21 Thread Jörg Knebel via 4D_Tech


> On 21 /03 /2021, at 13:51, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> the general idea is like this:

Thanks Keisuke, BUT next time I mark something with “FUN”, please don’t waste 
any time on anything.

Cheers
Jörg
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-21 Thread Jörg Knebel via 4D_Tech


> On 21 /03 /2021, at 11:53, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 1. edit "info.plist" to explain what the app needs the camera for

Do you mean the 4D info.plist?


> 2. supply an entitlements file that will be embedded in the code signature

Entitlements file? 
Sorry, I have now idea what you’re talking about.

Could you offer a step by step explanation because this is all new to me.

Thanks
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-20 Thread Jörg Knebel via 4D_Tech
Wayne,


> On 21 /03 /2021, at 00:41, Wayne Stewart via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> You don’t need to as far as I know.

Not according to Keisuke:


> On 07 /03 /2021, at 13:59, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I will answer in place of Armin;
> 
> yes, it does not matter if you are in development or production, compiled or 
> interpreted.
> access to the camera requires entitlements, code signature, notarisation, and 
> not of the plugin, but of the app (4D) itself.
> 
> Since Keisukes Cupturev2-Plugin does not work either on Catalina and 4Dv18,
> 
> if you satisfy the aforementioned requirements, the plugin will work on 
> Catalina and 4D v18.



> 
> A .4db is just a document.
> 
> It’s only the application that needs to be signed. Maybe plug-ins as well

Well, the Plugin in question is notarised…

I turned off SIP and the gatekeeper in Catalina.

Any further hints?


Thanks 

Cheers
Jörg

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

[Fun] Special Query ORDA Replacement

2021-03-20 Thread Jörg Knebel via 4D_Tech
G’day,

Just out of my dirty and provocative soul… - have fun :o)

How would be the ORDA-Replacement look like for the following scenario?:

The administrator of a 4D-database is able to set/change the number and the 
order of the fields of ALL tables a common user can search in at any time 
without re-compiling.

Meaning the Query is constructed with the “;*" parameter.

/QUERY Construction

$count:=1

Repeat // start “collecting" Query parameters

$searchptr:=Get pointer("vtxtSearch"+String($count))
If ((Not(Is nil pointer($searchptr))) & ($searchptr->#""))
SU_SearchTable 
(Field([xFieldInfo]TableIDRef;[xFieldInfo]FieldID);$searchptr). // Get info for 
the current table
End if 
$count:=$count+1
NEXT RECORD([xFieldInfo])

Until (End selection([xFieldInfo]))

\QUERY Construction

QUERY(vptrCurrentTable->) // Execute Query 


Cheers
Jörg

**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-20 Thread Jörg Knebel via 4D_Tech
Hey Champion,

> On 07 /03 /2021, at 13:59, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> yes, it does not matter if you are in development or production, compiled or 
> interpreted.
> access to the camera requires entitlements, code signature, notarisation, and 
> not of the plugin, but of the app (4D) itself.

I successfully signed the compiled application Standalone.app with "Developer 
ID Application: Jorg Knebel (**)” with the build in function of 4D and 
verified the signature.

BUT, how in the fu hell do I sign the interpreted/development (*.4DB) 
version of my creation?

Do I have to sign the “*.4DB” and/or the “*.4dbase” thing??

I’ll use the terminal to sign what ever has to be signed that enables me to 
continue developing:

codesign --deep --force --verbose --sign "” $Path/To/My/Development

I would appreciate a definite “How to...” answer, but will accept “this is a 
total Apple-Fu**-Up”.

Thanks

Cheers
Jörg

**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-14 Thread Jörg Knebel via 4D_Tech
Keipsuke,

> On 07 /03 /2021, at 13:59, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I will answer in place of Armin;
> 
> yes, it does not matter if you are in development or production, compiled or 
> interpreted.
> access to the camera requires entitlements, code signature, notarisation, and 
> not of the plugin, but of the app (4D) itself.
> 
> Since Keisukes Cupturev2-Plugin does not work either on Catalina and 4Dv18,
> 
> if you satisfy the aforementioned requirements, the plugin will work on 
> Catalina and 4D v18.

Thanks and sorry for the late answer.

I’ll have another look at it asap.

Cheers
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-06 Thread Jörg Knebel via 4D_Tech
Hey Armin,

> On 06 /03 /2021, at 07:38, ADeeg via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> you have to sign and notarize your mac app with the Magic Miyako tool build
> application to enable the needed security settings and get the camera
> access.

Even if I’m still at the development/debugging state, meaning not compiled and 
not even closed to deployment?

Cheers
Jörg
**
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.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-05 Thread Jörg Knebel via 4D_Tech
Everyone,

Many thanks for the answers and the tips, it was very helpful.

I followed up on all the tips and tricks

• “./“ Yes and no
• $MyShellScript.sh 
- hard coded in BBedit
- created in 4D 
- chmod 755 $MyShellScript.sh 
• Prepare POSIX-Pathname with Escape-Routines from Chip (Thanks) and 
Keisuke

• shorten the depth of the path
$FoDoPath:=System folder(Desktop)
$FoDoPath:=Convert path system to POSIX($FoDoPath)
$cmd:=$FoDoPath+"imagesnap -w 2.0”

What ever I tried it would not work when called via LEP but always works direct 
in the terminal.

Since I use other terminal (UNIX) executable stored in the resource folder, I 
guess there is something wrong with “imagesnap”.

Since Keisukes Cupturev2-Plugin does not work either on Catalina and 4Dv18, so 
I have to cancel that security feature for the Mac-Version of the application. 
This is the first time in 30 years that I have to do this for the Mac-side, 
otherwise it always was the Windows-side with this kind of problems.



Now something almost unrelated.

If you guys ever need to get the public IP-Address here are some suggestions:

Mac & Windows (result will be returned into $StdOut)

$cmd:="curl ifconfig.me”
OR
$cmd:="curl icanhazip.com”


Wndows ONLY

$cmd:="curl icanhazip.com | clip” // writes the result to the clipboard 

Cheers
Jörg
**
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 v18.3; Mac {10.13.6} + {10.15.7}] LEP-voodoo

2021-03-04 Thread Jörg Knebel via 4D_Tech

G’day All,

We are talking Mac ONLY - High Sierra and Catalina!

I found a command line application that can take a snapshot with the current 
camera.

This nifty tool is called “imagesnap” and it is totally free in all regards.

Check out: http://iharder.sourceforge.net/current/macosx/imagesnap/ 


So, I placed that tool in the resource folder of the application I’m working on 
and tried to call it from within 4D via LEP:

<4D code>

C_TEXT($cmd)
C_TEXT($FoDoPath;$OutPictPath;$imageSnapPath)
C_BLOB($StdIn;$StdOut;$Error)
C_LONGINT($PID)

$FoDoPath:=Get 4D folder(Current resources folder)
$FoDoPath:=Convert path system to POSIX($FoDoPath)

$cmd:=$FoDoPath+"./imagesnap -w 2.0 "

LAUNCH EXTERNAL PROCESS($cmd;$StdIn;$StdOut;$StdOut;$PID)



Result: The camera shows activity, but no picture is saved nowhere.

And now comes the voodoo I don’t get:

I copied the content from “$cmd” out of the 4D-debugger and paste it into the 
terminal and got a jpg-picture saved into the current user account (it seems 
“imagesnap" has some problems with user specified destinations).

The “$cmd” in my case contains this: 
/DATA/4Dƒ/TTTCorev18/TTTCorev18.4dbase/Resources/./imagesnap -w 2.0 

Please tell me we can blame 4D for another botched implementation.

Any help, pointers etc. are appreciated.

Cheers
Jörg
**
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: Big Sure Application file returning weird information

2021-01-26 Thread Jörg Knebel via 4D_Tech
Patrick,

> On 27 /01 /2021, at 16:34, Patrick Abrams via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Is it a known issue



Yes, Big Sure is a big issue. - SCNR


Cheers
Jörg

**
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: Importing PDFs into 4D Win v17R6 - v18 and converting

2021-01-20 Thread Jörg Knebel via 4D_Tech
Hi Peter,

> On 20 /01 /2021, at 22:44, Peter Adam via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am trying to import PDFs into 4D win and then upload them as png files to a 
> web site.
> 
> This works seamlessly on a Mac but my client uses Win 10.
> 
> I am able to load the pdf into a BLOB but when I do BLOB to Picture as a PDF, 
> the 4D picture variable displays as the Camera with a cross through it and 
> .pdf at the bottom of the image area.
> 
> I am using 4D v17R6 on a Win 10 OS I have Quicktime installed but I am nort 
> sure if that has any part two play.
> 
> Ideally I would like to convert the pdf to a png in Windows, It works for me 
> on the Mac



We discussed this just a couple of days ago. :o)

Check out https://www.xpdfreader.com/download.html 
 and download the command line tools.

I haven’t try “pdftopng” but in my dropbox there is a v18 sample/test DB that 
works on Mac (Catalina) and Win10 (20H2) at least for the text conversion.

You can download it from here: 
https://www.dropbox.com/s/9t7zyll2mt82eww/XpdfRead.4dbase.zip?dl=0 


And here is part of the post from yesterday:

xpdf-tools/XpdfReader was suggested by Wolfgang Kunkel (if you come across that 
4D-Partner, please thank him) that there could be problems running it in 
4d-Server on macOS.

After some testing I decided to go with the OpenSource-alternative to be called 
by LEP.

I placed the xpdf-tools in the Resouces-folder of the 
4D-database-Packadge-Hirachy as followed:

Resources
xpdftools
Linux // you never know what positive feature could come... :o)
bin32
bin64
Mac
bin64
pdfdetach
pdffonts
pdfimages
pdfinfo
pdftohtml
pdftopng
pdftoppm
pdftops
pdftotext
Windows
bin32
bin64
man_pages // documentation Unix-style 



HTH

Cheers
Jörg
**
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
**

FYI: Convert PDF to Text...

2021-01-18 Thread Jörg Knebel via 4D_Tech
Hi iNug rebells, ;-)

It’s time for some content/questions/tipps/voodoo/ etc.

Background:
I have to deal with lots of invoices from multiple vendors coming in every day.
Most of those invoices have only one invoice line on that A4 paper.

Fortunately the invoices arrive also as PDF-attachments to emails from the 
vendors.

The task is to eliminate the need for the administration staff to physically 
touch the paper invoices delivered with the goods.

So far so good.

There are two options to convert pdf to text, the PlugIn from Pluggers and the 
open source alternative “xpdf tools / xpdfReader” from 
https://www.xpdfreader.com/download.html 
.

xpdf-tools/XpdfReader was suggested by Wolfgang Kunkel (if you come across that 
4D-Partner, please thank him) that there could be problems running it in 
4d-Server on macOS.

After some testing I decided to go with the OpenSource-alternative to be called 
by LEP.

I placed the xpdf-tools in the Resouces-folder of the 
4D-database-Packadge-Hirachy as followed:

Resources
xpdftools
Linux // you never know what positive feature could come... :o)
bin32
bin64
Mac
bin64
pdfdetach
pdffonts
pdfimages
pdfinfo
pdftohtml
pdftopng
pdftoppm
pdftops
pdftotext
Windows
bin32
bin64
man_pages // documentation Unix-style 

What can I say - it works like a charm as long as one compensates for non 
disclosed 4D-conditions…

1. On macOS all path to documents/folders have to be converted to POSIX-Format!

2. All paths in the LEP calls on macOS AND Windows should be encapsulated by 
CHAR(Double Quote)/Char(34) to give the underlaying OS a chance to interpret it 
the right way.

3. During my tests I was reminded to declare variables under ALL circumstances, 
especially when running 4D on Windows.


Code Sample:

Case of 
: (Is macOS)

$pathToCommand:=Convert path system to 
POSIX($pathToCommand)
$PathToSourceFile:=Document+Char(34)
$PathToSourceFile:=Convert path system to 
POSIX($PathToSourceFile)

$PathToSourceFile:=Char(34)+$PathToSourceFile+Char(34)+"-"  // compensate for 
spaces in the file/path name.

: (Is Windows)

$PathToSourceFile:=Char(Double 
quote)+Document+Char(Double quote)+" -"

  //: (Is Linux)

Else 
  // Fuck up
End case 

$CallLEP:=$pathToCommand+$PathToSourceFile

LAUNCH EXTERNAL 
PROCESS($CallLEP;$InputStream;$stdout;$ErrorStream;$ExPID)


Oha, the most important thing is to get the converted pdf-file into “$stdout”… 
well read the man-page and forget the “ ‘ “ at the right point.

The XpdfRead.dbase will be dropped in a DropBox upon request - to be used at 
your own risk! :o)


And tomorrow I try to convince you to share some wisdom in regards to “How to 
mess around in/with/etc. text”



Cheers
Jörg, Good night and good luck! - Thursday already…




**
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: PING of life...

2021-01-17 Thread Jörg Knebel via 4D_Tech


> On 18 /01 /2021, at 18:41, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 
> I really like this mailing list but the one thing I hate about it is, that 
> some people just don´t know how to qoute and often leave the whole digest in 
> their answer. So the next digest just contains that one mail plus the quoted 
> previous digest. *sigh*
> .
> 
> Happy monday to all...



I second this! Even if my Monday will be over soon. :-)

Cheers
Jörg

**
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: Remember "Layout Procedure" in 4D v2?

2021-01-14 Thread Jörg Knebel via 4D_Tech


> On 14 /01 /2021, at 23:05, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> … and have a laugh :o)

At least the method editor accept this!

**
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: Remember "Layout Procedure" in 4D v2?

2021-01-14 Thread Jörg Knebel via 4D_Tech


> On 14 /01 /2021, at 22:50, Herr Alexander Heintz via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> „During"
> 
> actually quite logical isn’t it?

Of course it is  - just checking. :o))

Now try the following in a Form Method in v18:

:(Form Event Code = Before)

:(Form Event Code = After)


… and have a laugh :o)



**
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: v18 Folders in a package

2021-01-14 Thread Jörg Knebel via 4D_Tech


> On 14 /01 /2021, at 23:00, Charles Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I always create folders inside resources and that works
> like a charm

Thanks Chuck, I keep that in mind.

Cheers
Jörg

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

v18 Folders in a package

2021-01-14 Thread Jörg Knebel via 4D_Tech
G’day All,

Of course I can tested myself, but maybe someone can save me some time.

If I create my own folders beside the standard ones (Log, Resources, etc.) are 
mine transferred to the client machine in a C/S
environment?

And while we're at it, what about the components in the 4D.app? Do I have to 
move them in to the Component-Folder of my structure package if I want them 
implemented in my standalone application and my C/S system?

Thanks 

Cheers
Jörg
**
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
**

Remember "Layout Procedure" in 4D v2?

2021-01-14 Thread Jörg Knebel via 4D_Tech
G’day All,

Back than we had only 3 “Situations”:

Before

?

After


Can someone fill in the question marks - just curious…


Thanks

Cheers
Jörg 
**
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: PING of life...

2021-01-14 Thread Jörg Knebel via 4D_Tech


> On 14 /01 /2021, at 19:26, Graham Langley via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I find your reply unfriendly, you don't get that on the discuss site old man.

You're allowed to have your opinion!


Cheers
Jörg
**
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: PING of life...

2021-01-13 Thread Jörg Knebel via 4D_Tech


> On 14 /01 /2021, at 18:42, Graham Langley via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I find it odd that a subset of developers on this "forum" is a good thing.

Let time be the judge of that.


> I love the discuss site,

No one forces you to participate here!


> We should also welcome "smart-arse newbies”.

This would heavily depend on the kind of the newbies.


> Pretty sure we've all whined in the past about the
> lack of new developers.

Are we talking about quality or quantity only?


Cheers
Jörg
**
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: PING of life...

2021-01-13 Thread Jörg Knebel via 4D_Tech
Lahav,

> On 14 /01 /2021, at 10:24, lists via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> and Jörg, carful with labeling us dinosaur/old timers, we are just well 
> seasoned…..

You’re right. :o)

I’m sure all the dumb-click-newbies see that different.

Cheers
Jörg

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

PING of life...

2021-01-13 Thread Jörg Knebel via 4D_Tech
G’day,

Are here still enough dinosaur/old timers present to have some decent 
discussions without that white noise and smart-arse newbies in the forum?

I’m following the lead of my neighbour David Adams and don’t participate in the 
forum any more.

Question is, are there other oldies willing to participate WITHOUT feeding 
anything into the forum(s) following the slogan “What happen in/on iNUG stays 
in/on iNUG”?


Cheers
Jörg

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

Keisuke PlugIn Capture in v18

2020-11-08 Thread Jörg Knebel via 4D_Tech
To whom it may concern,

I upgraded all my stuff to v18 because of the 64bit ONLY future.

When I tried to convert/transform this...

//Capture v1.1 (2016) - no Form just getting a mugShot into a variable
$Snap:=->$picture
$success:=CAPTURE Snap (CAPTURE DEVICE Get default ;$Snap->)

to v2.4 I failed so I use v1.1 again.

I’m wondering if someone managed the transition and is willing to share the 
knowledge.

Thanks

Cheers
Jörg

PS: Please, NO lectures about using the forum instead of this list.
**
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: Forum (Was: Re: V18 Closing Method windows and Form windows when switching modes...)

2020-09-19 Thread Jörg Knebel via 4D_Tech


> On 19 /09 /2020, at 19:51, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Count me in.
> I much prefer the one-stop-shop of mailinglists over logging in to a dozen 
> forums.


I 100% second this!

And I prefere PDF-Manuals! 類

I got one more: I miss the big excitement about classes after I posted some 
corrections to that "TimeStamp-class-hype”…

4D Take a step back and breath slowly at least for a million times… 


Cheers
**
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: iNUG -Archive

2020-04-29 Thread Jörg Knebel via 4D_Tech
Hi John.

> On 29 Apr 2020, at 23:08 AEST, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> There is a button on the right for "iNug Messages".

Thanks for that.

Hm, that shows that there are only 152,680 posts, but my MacSoup archive shows 
171,831 and this is missing at least two month of posts.

So, is there a way to get all the missing posts in a kind of structured 
download or we everywhere on the “Cloud-hype”?

Thanks


Regards
Jörg Knebel, M.Eng. - 4D Developer since 1991
TTT Data Systems Pty Ltd
Phone: +61 (0)2 6601 7453
www.tttdatasystems.com.au 
**
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
**

iNUG -Archive

2020-04-29 Thread Jörg Knebel via 4D_Tech
Hey All,

I used to download all the posts via NNTP from "gmane.comp.lang.inug-4d.tech 
” to archive that stuff locally, but this 
doesn’t work any more.

Would someone please be so kind and tell me where I can look up / search the 
iNug archive(s).

Thanks

Cheers


Regards
Jörg Knebel, M.Eng. - 4D Developer since 1991
TTT Data Systems Pty Ltd
Phone: +61 (0)2 6601 7453
www.tttdatasystems.com.au 
**
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: Longitude Index: B-Tree or Cluster

2020-04-10 Thread Jörg Knebel via 4D_Tech


> On 11 Apr 2020, at 12:24 AEST, John J Foster via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Couldn’t find anything in KB.

Here is the post from 155 month and 19 days ago mentioned in the other post:



But someone might think the following could be of some help, sorry  
its not 4D-code.

First, the orientation - 

N (North) - E (East) - S (South) - W (West)
N=0° - E=90° - S=180° - W=270°

All computers and programming languages I know are handling angles  
the 'Mathematic Way' witch makes sense!

Every trigonometric function can be described/build by more simpler  
trigonometric functions.

For trigonometric functions look here: 

It is possible to calculate bearing and direction from 'A' to 'B' and  
find 'B' if bearing and distance is known.

The following is my own translation of my own posting placed in a  
German GPS news-group a long time ago.

***
Definitions
nm = Nautical Mile = 1852 m

alpha   = Bearing
d   = distance in [nm] 
b   = latitude difference between ‘A’ and ‘B’
l   = longitude difference between ‘A’ and ‘B’
a   = Abweitung 
just in case someone wants a desicription - no English version 
sorry
Ba  = latitude of Position ‘A’
La  = longitude of Position ‘A’
Bb  = latitude of Position ‘B’
Lb  = longitude of Position ‘B’
Bm  = Mittelbreite - middle latitude??? anyone??? Krauts! ;-)

 ;-)
b =Bb-Ba
l =Lb-La

Bm=(Ba+Bb)/2   OR   Ba + b/2

l=a*sec(Bm)  (sec = 1/cos)
a=l*cos(Bm)

a=d*sin(alpha)
b=d*cos(alpha)
d=b*sec(alpha)

For Longitude 85° d=a*cosec 
(alpha)  `(cosec = 1/sin)

tan(alpha)=a/b


*



If you need more just ask.

Cheers
Jörg

**
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: Longitude Index: B-Tree or Cluster

2020-04-10 Thread Jörg Knebel via 4D_Tech
Hi John,

> On 11 Apr 2020, at 12:24 AEST, John J Foster via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Yes I understand all that and use the longitude to calculate MGT offsets and 
> Latitiudes for Declinations and so on …
> 
> I am fixing data - matching one set imported data from another source - and I 
> also realize that I could use a good proximity routine (using the lon/lat and 
> a distance to find other places).
> 
> Couldn’t find anything in KB.

Check the archives of the iNUG, a looong time ago I posted the algorithms to 
deal with that kind of things.

Position1 + Bearing + Distance [nm] ===> Position2 
OR
Position1 + Position2   ===> Bearing + Distance.

If you can’t find it let me know and I’ll dive into the abyss of my hard 
drives. ;-)


Cheers
Jörg


**
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: Longitude Index: B-Tree or Cluster

2020-04-10 Thread Jörg Knebel via 4D_Tech
G’day John,

> On 10 Apr 2020, at 10:03 AEST, John J Foster via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Many of the values are similar like 141.235 or 141 3.23 and so on.

Have a look at a world map with a grid and consider this:

Geodata are shown in degrees and fractions of it and can be shown in different 
formats like:

143.754 ° E = 143° 59.5755’ E = 143° 59’ 34.5358” E

Look at 0° Longitude (Greenwich)! Going to the Right means you are going East 
(+) and going to the Left means you are going West (-).
In both directions it ends at 180° (International Date Line).

Recap: E = + (Plus); W = - (Minus)

For Latitude take a look at the Equator.
When you travel north (N) (North Pole) you’re Positive (+), going South (S) to 
Antarctica you’re negative (-)

Means: N = + (Plus); S = - (Minus)

Suggestion: store the data as REAL in decimal degree format and you should be 
fine.

Exercise:
Name the town where I’m located when my position is:

- 30.30225°  153.1086°

Cheers
Jörg
**
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: v18 - 4D Internet commands

2020-01-20 Thread Jörg Knebel via 4D_Tech
Hi Arnaud,

Thanks for responding.

> On 21 Jan 2020, at 01:31 AEDT, Arnaud init5 imap via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> From the v18 "what's new" under and in previous versions, only smtp is 
> mentioned:
>  >
> Maybe other changes have occurred, for example I'm not sure the 32 chars 
> length of file name with "FTP_Receive" is still a limit. 

I’d like the FTP-stuff to work at all.

If I find the time I'll do some testing.

Cheers

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

v18 - 4D Internet commands

2020-01-20 Thread Jörg Knebel via 4D_Tech
G'day All,

I'm curious, has there any work been done to that PlugIn especially the 
FTP-part?

Or was there only a compiler run to bring it up to v18?

Thanks

cheers
Jörg


**
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: Command(s) with column and C-number

2019-11-21 Thread Jörg Knebel via 4D_Tech
Hi Arnaud,


> On 21 Nov 2019, at 22:08 AEDT, Arnaud init5 imap via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> beside code sharing, it's important to tokenise your own formulas if they 
> embed commands or constants "as text". 

Thanks for the additional information.

Cheers


**
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: Command(s) with column and C-number

2019-11-20 Thread Jörg Knebel via 4D_Tech
Thanks Patrick.
**
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
**

Command(s) with column and C-number

2019-11-20 Thread Jörg Knebel via 4D_Tech
Hi All,

What is the benefit/advantage of using commands followed by a column and a 
(unique) number?

Examples:
OB Get:C1224(…)
C_LONGINT:C283
Open window:C153(…)

Thanks

Cheers
Jörg
**
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: FYI: [v17.3] Get System Info on Windows 10

2019-11-06 Thread Jörg Knebel via 4D_Tech


> On 7 Nov 2019, at 01:52 AEDT, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> The power button on the TV screen doesn't turn off the PC :)

Correct!

You MUST tell this all Windows-Users immediately!


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

FYI: [v17.3] Get System Info on Windows 10

2019-11-06 Thread Jörg Knebel via 4D_Tech
Hi All,

This time 4D is  NOT  to be blamed

Get System Info is a very good function to gather information about the system 
your 4D-application is running on. 

BUT, be aware of the following:

$systemInfo.uptime - will give you the exact time the Mac is running (checked 
in the terminal)


Running the same stuff un Windows 10 gave me this:


"osVersion": "Windows 10 Pro 1903 (18362.356)”,

--—>"uptime": 2441750, <— 


I started the Win10-Box about 10 minutes before conducting the tests… 


Out of curiosity I went to “Task Manager - Performance” and found out that 
Win10 was running for the last 28+ days…

Well, according to Albert Einstein I must have moved at least at the speed of 
light to archive that kind of time dilation…

OR Windows 10 is just much further behind the present than originally thought 
:-)

Cheers
Jörg
**
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: FYI: [v17.3] - Create Folder (hierarchy) findings

2019-10-15 Thread Jörg Knebel via 4D_Tech
Milan,

Thanks for you response.

> On 15 Oct 2019, at 19:10 AEDT, Milan Adamov via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I can’t find it in documentation right now, but I’ve read somewhere that if 
> FileVault is enabled for certain drive you have to use POSIX syntax for 
> paths. Could that be a problem?


I can assure you that I don’t use FileVault.

And I tested POSIX with no success.


The statement “Use absolute path” stands.

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

FYI: [v17.3] - Create Folder (hierarchy) findings

2019-10-14 Thread Jörg Knebel via 4D_Tech
G’day,

If the following has been mentioned before - sorry for the noise.

Tested/confirmed on Mac  macOS 10.13.6 interpreted

$MyFolderHierarchy:=“MyRoot"
Create Folder ($MyFolderHierarchy)

creates the folder “MyRoot” at the same level as the structure file



$MyFolderHierarchy:=“MyRoot"
Create Folder ($MyFolderHierarchy;*)

does NOTHING



$MyFolderHierarchy:="MyRoot”+Folder separator+"Level1"+Folder 
separator+"Level2"+Folder separator+"Level3"+Folder separator
Create Folder ($MyFolderHierarchy;*)

throws errors:

Error when executing the method "_001_Test" at line number 26

The file is locked or the pathname is not correct. (File: 
MyRoot:Level1:Level2:Level3:)

Error code: -45 (4DRT)
The file is locked or the pathname is not correct. (File: 
MyRoot:Level1:Level2:Level3:)
component: '4DRT'
task -5, name: 'P_8'

Error code: 652 (xbox)
Cannot create folder MyRoot:.
xtoolbox
task -5, name: 'P_8'

Error code: 13 (POSX)
Permission denied
component: 'POSX'
task -5, name: ‘P_8'



$SourcePath:=Get 4D folder(Database folder)//!!

$MyFolderHierarchy:=$SourcePath+"MyRoot”+Folder separator+"Level1"+Folder 
separator+"Level2"+Folder separator+"Level3"+Folder separator

Create Folder ($MyFolderHierarchy;*)

Will have the wanted effect —> new folder hierarchy starting at the 
structure level.


Conclusion: It might be a good idea to use an absolute path at all times.

My 2¢

HTH

Cheers
**
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 and FTP - AGAIN

2019-10-10 Thread Jörg Knebel via 4D_Tech


> On 11 Oct 2019, at 09:13 AEDT, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:

> are you tracing the callback method?

I think I should check this out.


> I do not understand how one would debug "forward/backward/left/right"


Staying constantly in the debugger scrolling up and down and make changes to 
variables, parameters etc. 

> often time in technical discussion (and especially if the other party is a 
> non-native English speaker like me...)
> it would be greatly appreciated if you could describe an issue using terms 
> that are easier to understand…

BTW, I’m a non-native English speaker too but try to follow your request. ;-)


> but I love your lively comments

You’r welcome.


Cheers
Jörg

**
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 and FTP - AGAIN

2019-10-10 Thread Jörg Knebel via 4D_Tech
Tim,

Thanks.

> On 11 Oct 2019, at 04:23 AEDT, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I’m expecting to get details of this at the next 4D Summit in 2020. 


Fingers crossed.

Cheers
Jörg
**
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 and FTP - AGAIN

2019-10-10 Thread Jörg Knebel via 4D_Tech
All,

> On 9 Oct 2019, at 22:19 AEDT, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> This is a SOS / 000 / 911 / 112 - call !!


STAND DOWN RED ALERT!

Keisuke's 4d-plugin-curl-ftp works - for the most part.

The limits:

IN THE ROOT:
One can create directories, upload files and download files but no 
rename/delete/remove directory…


Uploading files with directory hierarchy with “createMissingDir" - works ONLY 
with one additional level of directory.

There is some kind of timeout/time limit when one is debugging 
"forward/backward/left/right” without leaving the debugger or even restart 4D…

These are my findings only!!

For what I have to do Keisuke's 4d-plugin-curl-ftp will do fine.


Since the plugIn is open source is there anybody out there willing to take over 
an maintain it?


Or is there a secret plan from 4D to overhaul 4D_Internet_Commands which the 
World Wide Developer Community will find out about only if they sacrifice a 
black cat at full moon on the grave of a killer?


 4D! What about 4D-Internet_Commands???
**
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 and FTP - AGAIN

2019-10-09 Thread Jörg Knebel via 4D_Tech
G’day,

This is a SOS / 000 / 911 / 112 - call !!

For the better part of the last days I tried to get a reliable FTP-Module in 
v17.3 to work, but became close to be the world champion in “spitting the 
dummy”.

I have to be able to exchange files from several 4D-sites/applications 
automatically via a FTP-server.
The 4D-application(s) are developed on Mac (10.13.6) in v17 64bit and will be 
deployed on both platforms.

Since the FTP-part of the 4D-Internet command plugIn is a lost cause I focused 
my efforts on Keisuke's 4d-plugin-curl-ftp, but run into problems and I’m 
wondering if someone has a working multi-platform ftp-solution to do

- send file 
- receive file
- delete file 
- delete directory (with content would be nice)
- get system
- create directory
- get directory list
- get file/folder info

the corresponding commands from Keisuke’s plugIn are:

- cURL_FTP_Receive
- cURL_FTP_Send
- cURL_FTP_Rename
- cURL_FTP_RemoveDir
- cURL_FTP_Delete
- cURL_FTP_PrintDir
- cURL_FTP_GetFileInfo

I experienced problems with some of the commands to work in the way as 
advertised 
(cURL_FTP_Send, cURL_FTP_Rename, cURL_FTP_RemoveDir)

I already looked into PHP-options...


If anyone has a solution and/or is willing to help it will be highly 
appreciated!

For help offers needing my code and my ftp-server please contact me off-list.

Thanks

Cheers
Jörg


Regards
Jörg Knebel, M.Eng. - 4D Developer since 1991
TTT Data Systems Pty Ltd
Phone: +61 (0)2 6601 7453
www.tttdatasystems.com.au 
**
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: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-25 Thread Jörg Knebel via 4D_Tech


> On 25 Sep 2019, at 07:32 AEST, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:

> I would PICTURE TO BLOB and then BASE64 ENCODE the blob to create a text 
> representation of the picture. Reverse the process to bring it back. 

That sounds like a plan.

Thanks
Cheers
Jörg
**
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: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Jörg Knebel via 4D_Tech


> On 25 Sep 2019, at 04:59 AEST, Aparajita Fishman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Property names are case-sensitive. That why this one failed.

I already figured this out.



>> So, I think 4D-Objects need more time (another 25 years?) to catch up with 
>> ObjectTools…
> 
> Usually it only takes 10-15 years for them to catch up. 

Well, that should be enough time to do a proper job - don’t you think? 浪


>> A command like OB To BLOB would be a nice point to start.
> 
> That would be pretty trivial to write yourself.

Of cause it would, but there are two obstacles in the way:

1. I’m a bloody lazy bustard
2. There is a thing available right now that works and you might be aware of 
it, it’s called “ObjectTools”. 


In conjunction with all this, I’m wondering for how long ObjectTools will be 
maintained and would there be an early warning when/if support will cease… 樂


Cheers
Jörg
   
**
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
**

FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-23 Thread Jörg Knebel via 4D_Tech
G’day,

I tried the following (pseudo code):

Create an object
Fill the object with some stuff

Create another object and filled it with stuff including a picture

Put the second object into the first.

JSON Stringify($MyGreatObj)

Save objectText to file

Opened the file in BBEdit:
{
"Para1": "2019-09-24",
"Para2": 36170,
"ActivationCode": "activationCode",
"Embeded": {
"SomePict": "[object Picture]",
"someText": "TestText",
"aRealNumber": 3.1415926535898
}
}

 NOW

$ObjText := Document To Text

$TestObject:=JSON Parse($ObjText)


$TestText:=$TestObject.Embeded.sometext

TestPict:=$TestObject.Embeded.somePict

Both variables are EMPTY!


* Next STEP


$EmbeddedObj:=$TestObject.Embeded

$TestText:=$EmbeddedObj.sometext


$EmbeddedObj contains the object but $TestText is empty again.

The picture is a total lost!


So, I think 4D-Objects need more time (another 25 years?) to catch up with 
ObjectTools…

A command like OB To BLOB would be a nice point to start.

My 2¢

Cheers
Jörg
**
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: [v17.3] - Clear 4D-Oject

2019-09-23 Thread Jörg Knebel via 4D_Tech


> On 24 Sep 2019, at 10:21 AEST, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Clear Variable (object)

Arrrgh, that’s it - Thanks
**
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
**

[v17.3] - Clear 4D-Oject

2019-09-23 Thread Jörg Knebel via 4D_Tech
G’day,

Is there a simpler way to clear/destroy a 4D-Object than to loop trough it?

I think of something already implemented in ObjectTools - OT Clear(ObjHandle) / 
OT Clear (All)

Thanks

Cheers
Jörg
**
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 Object To BLOB/TEXT/Document

2019-09-17 Thread Jörg Knebel via 4D_Tech
Kirk,

> On 17 Sep 2019, at 17:10 AEST, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> JSON Stringify converts an object into plain text. So you can use:
> 
> TEXT TO DOCUMENT($docPath;JSON Stringify($myobject))

Thanks for that.

Cheers
Jörg
**
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 Object To BLOB/TEXT/Document

2019-09-17 Thread Jörg Knebel via 4D_Tech
G'day All,

Does someone has a solution to save a 4D Object somehow to a file?

I like to be prepared for a dark future without Aparajita's ObjectTools.

Thanks

Cheers
Jörg

**
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 authentication system that allow for stronger security.

2019-09-06 Thread Jörg Knebel via 4D_Tech
Jeffrey,

> On 6 Sep 2019, at 01:17 AEST, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> 4D integrates well with Active Directory/LDAP servers. That's probably the 
> best way to go, along with some custom code to track failed login attempts


Arrgh, do you rely believe trusting/relying on an outside “system” is worth 
even considering?

Please think again, and than think different and again… 

Just as a warning,  “Active Directory” and everything coming from Microsoft - 
use at your customer risk…


EOD - no further comments!!

… my 2 ¢


**
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 authentication system that allow for stronger security.

2019-09-06 Thread Jörg Knebel via 4D_Tech
Eric,

> On 6 Sep 2019, at 24:22 AEST, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Does anyone have a replacement login system for 4D that offers stronger 
> authentication security than the current system. Since the current system 
> does not enforce password changes, or password complexity it is a pretty poor 
> system in the current age. While the encryption is crypt is is still brute 
> force attackable as well. There are no failed login lockouts. Nor is three 
> the ability to have two factor authentication? Or is this something beyond 
> what anyone out there is using. 

I roll my own system for more than 25 years now.
It allows to manage access rights on record level divided by read only and read 
write.

Here are some pointers to give you an idea.

All the information are hold in the data-file and therefore a kind of mirroring 
of the structure is 
( [Tables], [Fields], [Staff], [Passwords], [Branches], [Departments] etc.)

The passwords are stored as hashes (MD5…SHA512) which makes it a bit harder but 
not immune against brut force attacks.
A mandatory change of passwords after a period of time or number of logins can 
be implemented as well as x-way authentication can be implemented.
To use this as an addition to the 4D-build-in stuff is also possible, but I 
don’t see a reason why.

The access rights for each user are hold in arrays for each user within an 
organisation like this:

READ ONLY
NA  AA  UA  DA  BA  FA
[Table1]√

[TableN]√

READ WRITE
NA  AA  UA  DA  BA  FA
[Table1]√   

[TableN]√   


Legend:

NA  No Access
AA  Author Access
UA  Unit Access
DA  Department Access
BA  Branch Access
FA  Full Access

Every table has the following LongINT “Head Fields” :

UserIDRefCreated
UserIDRefModified
xCorpCreated
xBranchCreated
xDepartmentCreated
xUnitCreated

Every time a user is accessing a table his rights (arrays see above) are 
applied.

Granted to implement this in an existing application will take some doing but 
it could be worth it.

For instant if someone within an organisation changes to a different branch but 
will hold the “same” position, no access rights have to be adjusted and the 
data from the former branch/department/etc. cannot be accessed any more.

HTH


Cheers
Jörg


**
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: Folder equivalent for: "SET DOCUMENT PROPERTIES"

2019-09-03 Thread Jörg Knebel via 4D_Tech
G’day Lutz,

> On 3 Sep 2019, at 22:25 AEST, Epperlein, Lutz (agendo) via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> For Windows:
> Don't use the old cmd, use powershell instead.

Thanks for the warning.

I do think about a way to avoid “folders”…

Cheers
Jörg
**
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: Folder equivalent for: "SET DOCUMENT PROPERTIES"

2019-09-03 Thread Jörg Knebel via 4D_Tech
Narinder,

Thanks for your response.

> On 3 Sep 2019, at 20:04 AEST, Narinder Chandi via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> IS this for Mac/Windows or both? You can use the LAUNCH EXTERNAL PROCESS 
> command:


Yes it has to be for both platforms and I suspected to have to go down to 
Terminal/DOS-promt again but hoped that someone did it already - why inventing 
the wheel again?


Let’s see what else comes up.

Cheers
Jörg
**
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
**

  1   2   >