Re: More Engine quesitons

2019-04-24 Thread Koen Van Hooreweghe via 4D_Tech
Chip,

This is documented in the 4D Design Reference>Finalizing and deploying final 
applicateions>Customizing a stand-alone application icon.

See: 
https://docs.4d.com/4Dv17/4D/17.1/Customizing-a-stand-alone-application-icon.300-4201096.en.html

HTH
Koen

> Op 24 apr. 2019, om 20:17 heeft Compass - Koen Van Hooreweghe via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Yes. You have to place an icon file next to your structure file having the 
> same name as your .4DB.





Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Aalter
Belgium
tel +32 495 511.653

**
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 Security White Paper

2019-04-24 Thread Ronnie Teo via 4D_Tech
Thanks for your input, Jody.

Regards,
Ronnie

> On 24 Apr 2019, at 9:29 PM, 4d_tech-requ...@lists.4d.com wrote:
> 
> From: Jody Bevan mailto:jody.be...@gmail.com>>
> To: 4D iNug Technical <4d_tech@lists.4d.com >
> Subject: Re: 4D Security White Paper
> Message-ID:  >
> Content-Type: text/plain; charset=utf-8
> 
> As with all security anything can be hacked given time, money, and desire.
> 
> First of all, social hacking is the most likely cause of leaked data. So 
> moving on, to other types.
> 
> If someone really wants your data they might steal your server computer. In 
> days gone by if you didn’t know the Administration password - not a problem 
> take the drives out and hook up into a different system. If though, you have 
> used a RAID system, with hardware encryption of the data that does not work. 
> Everything is encrypted on the hard drives. You are not going to get any data.
> 
> So, here again social hacking is needed to get the Administrator’s password. 
> No amount of work on our end as developers is going to stop social hacking.
> 
> 4D has long had encryption of data between the server and the 4D Client. That 
> is in case someone is going to sniff the wireless or wired network.
> 
> If you have opened up a 4D data file that is not encrypted, I challenge you 
> to actually piece together the information. I have tried when I opened up a 
> typical smaller data file of a smaller client - 30GB of data. Yes, I can see 
> information, but a record is not all together. Therefore trying to pull data 
> together for a single record, or a person is not going to be something one 
> can do.
> 
> This is all very easy for each of you to look at. Open a data file up. If it 
> is too big, you can build a text viewer that will read things in a character 
> or ‘x’ characters at a time. See for yourself how hard it is to read the 
> data, pull together information.
> 
> I have worked through lots of different government security regulations. 
> First they jump on what ever is the latest in the trade magazines. Second the 
> elephant in the room is ignored (social hacking). They make up all these 
> rules, and then when they have inspections on site they totally ignore the 
> security rules  that they should be checking.
> 
> Jody

**
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: -1 undefined database event

2019-04-24 Thread David Ringsmuth via 4D_Tech
Kirk,

This seems like it may be the cause!

I’ll check this out!!

THANKS!!!

David Ringsmuth

From: Kirk Brooks via 4D_Tech
Sent: Wednesday, April 24, 2019 4:38 PM
To: 4D iNug Technical
Cc: Kirk Brooks
Subject: Re: -1 undefined database event

David,

On Wed, Apr 24, 2019 at 2:23 PM David Ringsmuth via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The message says the record is locked, but 4D’s Locked($pTable->) returns
> false, and so does 4D’s Read only state($pTable->).
>
> Under what circumstances would this happen?
>
If you are using 4D server this can happen when the record has been
loaded/modified on the server. Triggers run on the server. This is one way
you get this sort of situation. The other, which has bitten me before, is
when an EXECUTE ON SERVER method has loaded, but not unloaded, a record.

-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
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: -1 undefined database event

2019-04-24 Thread David Ringsmuth via 4D_Tech
Chip,

The data file is in use by 20+ people who are updating it. It can’t be in 
read-only.

The system automatically runs a full validate data file every night, and also 
verifies every index value is correct. I don’t think the record is damaged, but 
I had not thought of that!

Thanks!

David Ringsmuth

From: Chip Scheide
Sent: Wednesday, April 24, 2019 4:32 PM
To: 4D iNug Technical
Cc: David Ringsmuth
Subject: Re: -1 undefined database event

immediate thoughts:
- the data file it self is read only.
 -- due to file access permissions (from the OS)
 -- the data file is open by another copy of the structure
 -- the record (or more) are damaged in some manner (run MSC)

Chip


On Wed, 24 Apr 2019 16:23:09 -0500, David Ringsmuth via 4D_Tech wrote:
> The message says the record is locked, but 4Dʼs Locked($pTable->) 
> returns false, and so does 4Dʼs Read only state($pTable->).
> 
> Under what circumstances would this happen?
> 
> Undefined Database Event.[-1] in the method 'Save_Record', on line 50.
> Method: Save_Record
> Line: 50
> 1066: dbmg: Record  is locked in table Student of database CMv10
> 1046: dbmg: Cannot save record 132171 in table Student of database CMv10
> 
> If (Not(Locked($pTable->)) & Not(Read only state($pTable->)))
> If (ModifiedRecord ($pTable;1+2;->$tModified))
>   Error:=0
>   C_TEXT($WindowTitle_t)
>   SAVE RECORD($pTable->)  // this is line # 50
> End if
> else
> ...
> end if
> 
> David Ringsmuth
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 

**
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: Custom Form Events

2019-04-24 Thread Chris Belanger via 4D_Tech
Hi Kirk,

to explain what I want to have ‘custom events’ for, I think Justin Carr’s 
comment on this thread gives some good reason — to do processing after an  on 
LOAD that cannot be done during that event since many objects on the form do 
not exist at the time of on load.
In my efforts to create as generic of a system as possible (which OBJECTS help 
greatly in), some objects in a Form do not ‘exist’ during ON LOAD; but I need 
to initialize structures BEFORE the form starts operating and only at the 
initialization stage (on Load).

Once 4D **finally** makes it possible to programmatically get/set all the 
listBox properties in a collection/entity selection-based listbox (particularly 
data source, current item, current item position, selected items) then I would 
be in position to make use of that information in the custom event that would 
run immediately after ON LOAD (as Justin described).


Another use for it that I have not explored yet is to have a chunk of code that 
gets run under several different circumstances, but which I don’t want to make 
a dedicated Project Method for it.
I prefer to reduce the number of Project Methods while, of course, creating 
ones that make logical sense (as they can be called in several places in my 
code). But you understand that as a programmer.

One simple instance I want to experiment on — which, of course, is trivial, is:

I have three fields (actually object attributes)
City
Province (or State)
FullCityName

FullCityName is computed from City & Province
: (City = “”) —> FullCityName := “”
:(Province = “”) —> FullCityName := City
else
FullCityName := City + “, “ + Province

this same logic must be performed whenever City or Province changes.
So it could be cool to set it as a ‘custom event’ that is ’triggered’ by City 
and Province scripts. Naturally, it would have to take place at the end of 
those scripts so as not to encounter unexpected behaviors.

Now, it could be copy/pasted into both City & Province scripts; it could be 
made into a Project Method that gets called by either. Or it could be stuffed 
into the Form Method as a ’custom event’.

—— 
I realize I am potentially playing with fire, as the execution of code could be 
much different than one is expecting if they don’t keep on their toes. The 
custom event will be handled after the code it is called from has completed 
execution. So under many circumstances it would be a bad idea.

The example above is more of a ‘proof of concept’ for me.

— Chris



> On Apr 23, 2019, at 11:45 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Chris,
> Reading through your post and the replies I'm trying to think of what a
> 'custom event' would be. Can you give an example or two?
> 
> On Tue, Apr 23, 2019 at 7:33 AM Chris Belanger via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I am wondering if there is a way to configure Custom Form Events. I would
>> like to be able to post a form event, and have it then processed within the
>> FORM METHOD as such.
>> I am doing a lot of work in “Orda context” right now and can think of some
>> handy features that could be implemented in that way, especially with
>> keeping the number of project methods down (as code could be put into a
>> script instead).
>> Before you think “why would he want to do that?” — please just focus on
>> the question of ‘can I?’. :)
>> 
>> In the past, I used the form event “on Outside Call” stuff to handle
>> communications between processes, so I understand all that stuff.
>> 
>> I remember — but cannot find again — some documentation that talked about
>> using negative-numbered values for events to facilitate custom events.
>> However, I seem to remember it only was in the context of subforms.
>> 
>> Any help or direction you could provide would be most appreciated!
>> Thanks — Chris
>> **
>> 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
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 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: Custom Form Events

2019-04-24 Thread Chris Belanger via 4D_Tech
Hi Justin,

Thanks for the observations. I never thought about using a SET TIMER(-1) to 
make something run immediately after On Load is done. It is true that many 
objects are not ‘existent’ by the On Load cycle and that causes me some 
problems in trying to make code that is as generic as possible.

I am going to try employing some of the functionality you describe.

Regarding ’new formula’, just to let you know how I have been using it, I 
‘install’ a   Form.onSave,  Form.onLoad,  Form.onNew   group of formulas
i.e. Form.onLoad:=new formula( ) or   := new formula from string( )
in conjunction with some other Form.   objects, I can have a generic mechanism 
for new / save/ load of records, with the specialized ’nub’ being executed in 
the appropriate formula.

I have been absolutely enthralled with the new focus of 4D on ORDA and 
object-oriented programming.
It is exciting to see how they are expanding this to other areas of the 
language.
I find that the code is greatly simplified and concise.


— Chris
   
> On Apr 23, 2019, at 5:20 PM, Justin Carr via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Chris
> 
> We use SET TIMER(-1) a lot for this purpose. It is ideal when you want to do 
> something as part of On Load but you need the On Load execution cycle to 
> finish first before you do the next thing, e.g. you need to know the size and 
> position of an object on a form before you take some other action.
> 
> POST OUTSIDE CALL can also be used for this purpose, particularly if you're 
> sending the event from another process. CALL FORM is the the "new way" to do 
> this sort of thing but you have to be aware that it does not always run in 
> its own execution cycle, i.e. you can't rely on it to perform the sort of On 
> Load workflow I just described because the chances are it will run in the 
> same exection cycle as the original On Load. Even when the CALL FORM is made 
> from a separate process it won't necessarily run in its own execution cycle. 
> That said, if I'm not relying on some previous execution cycle to have 
> finished and want to "send an event" to the form then CALL FORM is definitely 
> the way to go.
> 
> I haven't tried New formula yet so can't comment on that.
> 
> cheers
> J
> 
>> On 24 Apr 2019, at 1:24 am, Chris Belanger via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Douglas, that is an ingenious way to facilitate it. I suppose one could use 
>> a Form object (Form.myEvent) to specify the ‘event’ to perform.
>> But it seems that SET TIMER(-1) is what needs to be done [trigger as soon as 
>> possible] and then SET TIMER(0) disables the triggering?
>> 
>> — Chris
>> 
>>> On Apr 23, 2019, at 9:19 AM, Douglas von Roeder via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>> 
>>> Chris:
>>> 
>>> Set timer (0) and then catch it in On timer.
>>> 
>>> --
>>> Douglas von Roeder
>>> 949-336-2902
>>> 
>>> 
>>> On Tue, Apr 23, 2019 at 8:17 AM Chris Belanger via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>> 
 I have been using New formula too.
 In the context of ORDA-based forms, I have set up  Form.onSave(),
 Form.onLoad(), Form.onNew() etc. I like it because the code for record
 selection and change can be generic with these ’nubs’.
 I wish that one did not have to create a project method [for other than
 the most rudimentary use] to use ’New Formula’, but still it is a great new
 feature.
 
 In any case, back to my question about form events. Is the only mechanism
 to do an ‘Outside Call’ with POST OUTSIDE CALL? What have you found that
 works, if anything.
 
 
> On Apr 23, 2019, at 9:05 AM, Keisuke Miyako via 4D_Tech <
 4d_tech@lists.4d.com> wrote:
> 
> I think the future is to use New formula.
> 
> it is like a function pointer in other languages,
> it allows the callee to invoke a callback function at a later time.
> 
> https://blog.4d.com/new-formula-more-power-behind-simplicity/
> 
> alternatively, one could say that CALL FORM is like a custom form event.
> 
> regarding subforms,
> CALL SUBFORM CONTAINER can only convert an event in the subform context
> to another event in the host's context,
> it does not generate a new event.
> 
> 2019/04/23 23:32、Chris Belanger via 4D_Tech <4d_tech@lists.4d.com
 >のメール:
> 
> I remember — but cannot find again — some documentation that talked
 about using negative-numbered values for events to facilitate custom
 events. However, I seem to remember it only was in the context of subforms.
> 
> 
> 
> **
> 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: [OFF] The Death of Sebastian...

2019-04-24 Thread Jody Bevan via 4D_Tech
Robert:

Sorry to hear this. Pets can be the most important beings in our lives. So sad 
for your loss.

Jody

> On Apr 24, 2019, at 7:01 PM, Robert ListMail via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Sadly I returned home, from two back to back trips (National Association of 
> Broadcasters & MotoGP), to find my beloved cat (Sebastian), the coolest cat 
> that ever lived, died unexpectedly while I was at MOTOGP on Sunday... I’m so 
> devastated that I did not see him for 8 days straight and that my unusually 
> poor decision making was a factor in his death and that I could have done 
> more to save his life! He was reportedly not well Saturday night but I didn’t 
> think his condition would be fatal 24 hours later. I feel like I’ve really 
> f@cked up and I’ll never forgive myself. Sorry to drop this on you. I know 
> that some of you knew him, while some had no such opportunity…
> 

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

[OFF] The Death of Sebastian...

2019-04-24 Thread Robert ListMail via 4D_Tech
Sadly I returned home, from two back to back trips (National Association of 
Broadcasters & MotoGP), to find my beloved cat (Sebastian), the coolest cat 
that ever lived, died unexpectedly while I was at MOTOGP on Sunday... I’m so 
devastated that I did not see him for 8 days straight and that my unusually 
poor decision making was a factor in his death and that I could have done more 
to save his life! He was reportedly not well Saturday night but I didn’t think 
his condition would be fatal 24 hours later. I feel like I’ve really f@cked up 
and I’ll never forgive myself. Sorry to drop this on you. I know that some of 
you knew him, while some had no such opportunity…

Robert Broussard
**
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: Code signing works on one app but fails on another

2019-04-24 Thread Pat Bensky via 4D_Tech
Hi Jim,
I ran the following in Terminal to check it:
codesign -dv /Users/patbensky/CatBase\ dev/CatBase\ v8/Final\
Application/CatBase\ 8.app

and this is the result:

Executable=/Users/patbensky/CatBase dev/CatBase v8/Final
Application/CatBase 8.app/Contents/MacOS/CatBase 8

Identifier=4d.com.CatBase 8.app

Format=app bundle with Mach-O thin (x86_64)

CodeDirectory v=20200 size=133812 flags=0x0(none) hashes=4176+3
location=embedded

Signature size=9042

Timestamp=24 Apr 2019 at 23:18:30

Info.plist entries=41

TeamIdentifier=8W63XCXWRA

Sealed Resources version=2 rules=13 files=2018

Internal requirements count=1 size=180

When I ran your suggested code
codesign --verify -v /Users/patbensky/CatBase\ dev/CatBase\ v8/Final\
Application/CatBase\ 8.app

I got:

a sealed resource is missing or invalid

file modified: /Users/patbensky/CatBase dev/CatBase v8/Final
Application/CatBase 8.app/Contents/Database/CatBase 8.4DIndy

file modified: /Users/patbensky/CatBase dev/CatBase v8/Final
Application/CatBase 8.app/Contents/Database/CatBase 8.4DC


So that's a bit more informative ... Any idea what "sealed resource" is
missing or invalid?

On Wed, 24 Apr 2019 at 23:30, Jim Crate via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Are you sure the app is signed correctly? Sometimes an app with invalid
> signature will launch until it is downloaded from the internet (downloading
> sets the quarantine flag). I use these commands after signing to
> double-check that signing worked properly:
>
>   spctl -av "$appPath"
>   codesign --verify -v "$appPath"
>
> Also, I launch the app before signing to choose the datafile and update
> the Info.plist with a more descriptive version string.
>
> Jim Crate
>
> > On Apr 24, 2019, at 9:42 AM, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Actually it doesn't seem to be working ... it seems to corrupt the app in
> > some way.
> > It's quite bizarre ... I compile the app, sign it using Miyako's code,
> and
> > create a disk image using DropDMG. I check it by mounting the disk image
> > and installing the app. It runs OK.
> > Then I upload it to DropBox.
> > Download it from Dropbox, open it, install it, and it will not run. The
> app
> > starts to open and then I get the message "CatBase 8 is damaged and can't
> > be opened."
> >
> > Any ideas?
> >
> > On Thu, 4 Apr 2019 at 11:52, Pat Bensky  wrote:
> >
> >> Brilliant, thank you Miyako!
> >> Note that I needed to make one change to the code, in the method "code
> >> sign":
> >>
> >> Change
> >>
> >> $infoPlistPath:=$applicationPath+Folder separator+\
> >>
> >> "Contents"+Folder separator+"Info.plist"
> >>
> >>
> >> to
> >>
> >>
> >> $infoPlistPath:=$applicationPath+\
> >>
> >> "Contents"+Folder separator+"Info.plist"
> >>
> >> Pat
> >>
> >> On Thu, 4 Apr 2019 at 01:32, Keisuke Miyako via 4D_Tech <
> >> 4d_tech@lists.4d.com> wrote:
> >>
> >>> the text edit setting "smart dashes" may convert double hyphens to
> dash,
> >>> which is not what you want in this context.
> >>>
> >>> https://support.apple.com/kb/PH23628?locale=ja_JP=en_US
> >>>
> >>> a single hyphen must be used with a short option name (-f)
> >>> a double hyphen must be used with a short option name (--force)
> >>>
> >>> -force is therefore an invalid instruction (single hyphen+long option
> >>> name).
> >>>
> >>> I've posted a utility to ease the process of signing
> >>>
> >>> https://github.com/miyako/4d-utility-build-application
> >>>
> >>> it is written in v17 but the target app path can be any path.
> >>>
> >>> 2019/04/03 8:05、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com >>> 4d_tech@lists.4d.com>>のメール:
> >>> —force: No such file or directory
> >>>
> >>>
> >>> **
> >>> 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
> >>> **
> >>
> >>
> >>
> >> --
> >> *
> >> CatBase - Top Dog in Data Publishing
> >> tel: +44 (0) 207 118 7889
> >> w: http://www.catbase.com
> >> skype: pat.bensky
> >> *
> >>
> >
> >
> > --
> > *
> > CatBase - Top Dog in Data Publishing
> > tel: +44 (0) 207 118 7889
> > w: http://www.catbase.com
> > skype: pat.bensky
> > *
> > **
> > 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)
> 

Re: Code signing works on one app but fails on another

2019-04-24 Thread Jim Crate via 4D_Tech
Are you sure the app is signed correctly? Sometimes an app with invalid 
signature will launch until it is downloaded from the internet (downloading 
sets the quarantine flag). I use these commands after signing to double-check 
that signing worked properly:

  spctl -av "$appPath"
  codesign --verify -v "$appPath"

Also, I launch the app before signing to choose the datafile and update the 
Info.plist with a more descriptive version string.

Jim Crate

> On Apr 24, 2019, at 9:42 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Actually it doesn't seem to be working ... it seems to corrupt the app in
> some way.
> It's quite bizarre ... I compile the app, sign it using Miyako's code, and
> create a disk image using DropDMG. I check it by mounting the disk image
> and installing the app. It runs OK.
> Then I upload it to DropBox.
> Download it from Dropbox, open it, install it, and it will not run. The app
> starts to open and then I get the message "CatBase 8 is damaged and can't
> be opened."
> 
> Any ideas?
> 
> On Thu, 4 Apr 2019 at 11:52, Pat Bensky  wrote:
> 
>> Brilliant, thank you Miyako!
>> Note that I needed to make one change to the code, in the method "code
>> sign":
>> 
>> Change
>> 
>> $infoPlistPath:=$applicationPath+Folder separator+\
>> 
>> "Contents"+Folder separator+"Info.plist"
>> 
>> 
>> to
>> 
>> 
>> $infoPlistPath:=$applicationPath+\
>> 
>> "Contents"+Folder separator+"Info.plist"
>> 
>> Pat
>> 
>> On Thu, 4 Apr 2019 at 01:32, Keisuke Miyako via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> 
>>> the text edit setting "smart dashes" may convert double hyphens to dash,
>>> which is not what you want in this context.
>>> 
>>> https://support.apple.com/kb/PH23628?locale=ja_JP=en_US
>>> 
>>> a single hyphen must be used with a short option name (-f)
>>> a double hyphen must be used with a short option name (--force)
>>> 
>>> -force is therefore an invalid instruction (single hyphen+long option
>>> name).
>>> 
>>> I've posted a utility to ease the process of signing
>>> 
>>> https://github.com/miyako/4d-utility-build-application
>>> 
>>> it is written in v17 but the target app path can be any path.
>>> 
>>> 2019/04/03 8:05、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>> 4d_tech@lists.4d.com>>のメール:
>>> —force: No such file or directory
>>> 
>>> 
>>> **
>>> 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
>>> **
>> 
>> 
>> 
>> --
>> *
>> CatBase - Top Dog in Data Publishing
>> tel: +44 (0) 207 118 7889
>> w: http://www.catbase.com
>> skype: pat.bensky
>> *
>> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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: -1 undefined database event

2019-04-24 Thread Kirk Brooks via 4D_Tech
David,

On Wed, Apr 24, 2019 at 2:23 PM David Ringsmuth via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The message says the record is locked, but 4D’s Locked($pTable->) returns
> false, and so does 4D’s Read only state($pTable->).
>
> Under what circumstances would this happen?
>
If you are using 4D server this can happen when the record has been
loaded/modified on the server. Triggers run on the server. This is one way
you get this sort of situation. The other, which has bitten me before, is
when an EXECUTE ON SERVER method has loaded, but not unloaded, a record.

-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
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: -1 undefined database event

2019-04-24 Thread Chip Scheide via 4D_Tech
immediate thoughts:
- the data file it self is read only.
 -- due to file access permissions (from the OS)
 -- the data file is open by another copy of the structure
 -- the record (or more) are damaged in some manner (run MSC)

Chip


On Wed, 24 Apr 2019 16:23:09 -0500, David Ringsmuth via 4D_Tech wrote:
> The message says the record is locked, but 4D’s Locked($pTable->) 
> returns false, and so does 4D’s Read only state($pTable->).
> 
> Under what circumstances would this happen?
> 
> Undefined Database Event.[-1] in the method 'Save_Record', on line 50.
> Method: Save_Record
> Line: 50
> 1066: dbmg: Record  is locked in table Student of database CMv10
> 1046: dbmg: Cannot save record 132171 in table Student of database CMv10
> 
> If (Not(Locked($pTable->)) & Not(Read only state($pTable->)))
> If (ModifiedRecord ($pTable;1+2;->$tModified))
>   Error:=0
>   C_TEXT($WindowTitle_t)
>   SAVE RECORD($pTable->)  // this is line # 50
> End if
> else
> ...
> end if
> 
> David Ringsmuth
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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 undefined database event

2019-04-24 Thread David Ringsmuth via 4D_Tech
The message says the record is locked, but 4D’s Locked($pTable->) returns 
false, and so does 4D’s Read only state($pTable->).

Under what circumstances would this happen?

Undefined Database Event.[-1] in the method 'Save_Record', on line 50.
Method: Save_Record
Line: 50
1066: dbmg: Record  is locked in table Student of database CMv10
1046: dbmg: Cannot save record 132171 in table Student of database CMv10

If (Not(Locked($pTable->)) & Not(Read only state($pTable->)))
If (ModifiedRecord ($pTable;1+2;->$tModified))
Error:=0
C_TEXT($WindowTitle_t)
SAVE RECORD($pTable->)  // this is line # 50
End if
else
...
end if

David Ringsmuth

**
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 17.1 network issues

2019-04-24 Thread Charles Miller via 4D_Tech
If it shows as active, that may be part of the problem. I found many
moons ago similar issues when one of my customers had new server with
to NIC cards. It seems what happens is that client connects to 1,
inactive for period of time, goes back and tries using 2, crash just
as you are having. There used to be terminal command to combine two
NICs into one on a MAC. Have you tried restarting the machine. You
should not have a real IP on ethernet connection and self assigned on
wifi. Something is not adding up

Regards
Chuck

On Wed, Apr 24, 2019 at 12:28 PM Peter Bozek via 4D_Tech
<4d_tech@lists.4d.com> wrote:
>
> On Wed, Apr 24, 2019 at 4:06 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
>
> > No, just Ethernet is enabled. WiFi and the other connection types are not
> > connected (red dot). But that just helped me answer the question. If I
> > disable WiFi on my laptop, the server shows a 169.254.X.X link-local
> > address. I wonder why and if that could be a source of problems.
> >
> > It shows a red dot, "not connected", but it is active according to
> > ifconfig:
> >
> > en10: flags=8863 mtu 1500
> > ether a6:e9:75:40:77:fa
> > inet6 fe80::10be:87e1:3ea2:51c7%en10 prefixlen 64 secured scopeid
> > 0x17
> > inet 169.254.132.126 netmask 0x broadcast 169.254.255.255
> > nd6 options=201
> > media: autoselect (100baseTX )
> > status: active
> >
> >
>
> 169.x.x.x seems like a self-assigned address,  could it be you have some
> problem with DHCP?
>
> --
>
> Peter Bozek
> **
> 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
> **



-- 
-
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D, Sybase & SQL Server connectivity
  http://www.informed-solutions.com
-
This message and any attached documents contain information which may
be confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution,
disclosure, printing, copying, storage, modification or the taking of
any action in reliance upon this transmission is strictly prohibited.
Delivery of this message to any person other than the intended
recipient shall not compromise or waive such confidentiality,
privilege or exemption from disclosure as to this communication.
**
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 17.1 network issues

2019-04-24 Thread Douglas von Roeder via 4D_Tech
A client of mine has hit this very issue. He writes:

>> In addition to the dropped connections, it has also been reported 4D
will freeze up for a brief period and become unresponsive, then after about
15-20 seconds will begin responding again. No problems like this reported
with 16.4 on the same network.<<



I can confirm this same issue on v17r3 on Windows 64 bit client and server
running Windows Server 12r2 Datacenter. In addition, the server will
refuse connection until somebody touches the server admin window at which
point it will accept connections again.


--
Douglas von Roeder
949-336-2902


On Wed, Apr 24, 2019 at 10:39 AM John DeSoi via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> It is a link-local address (see
> https://en.wikipedia.org/wiki/Link-local_address), sometimes called
> self-assigned. There is nothing wrong with DHCP. As I mentioned in the
> previous message, you get this for WiFi on the Mac when Wifi is not
> connected or marked as inactivated. Seems strange, but hopefully it does
> not impact anything.
>
> John DeSoi, Ph.D.
>
>
> > On Apr 24, 2019, at 11:28 AM, Peter Bozek  wrote:
> >
> > 169.x.x.x seems like a self-assigned address,  could it be you have some
> problem with DHCP?
>
> **
> 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: More Engine quesitons

2019-04-24 Thread Compass - Koen Van Hooreweghe via 4D_Tech
Hi Chip,

Yes. You have to place an icon file next to your structure file having the same 
name as your .4DB.

Groeten,
Koen

Verstuurd vanaf mijn iPhone X

> Op 24 apr. 2019 om 20:11 heeft Chip Scheide via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Custom desktop icon.
> 
> Is there a way to get the icon to 'stick'?
> i.e. apply the icon in such a way that when I rebuild the app I do not 
> have to manually place it.
> 
> Thanks
> Chip
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **
> 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
**

More Engine quesitons

2019-04-24 Thread Chip Scheide via 4D_Tech
Custom desktop icon.

Is there a way to get the icon to 'stick'?
i.e. apply the icon in such a way that when I rebuild the app I do not 
have to manually place it.

Thanks
Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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 17.1 network issues

2019-04-24 Thread Ken Geiger Gmail via 4D_Tech
169.x.x.x is a self-assigned IP. 

Sent from my iPhone

> On Apr 24, 2019, at 10:28 AM, Peter Bozek via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> On Wed, Apr 24, 2019 at 4:06 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
> wrote:
> 
>> No, just Ethernet is enabled. WiFi and the other connection types are not
>> connected (red dot). But that just helped me answer the question. If I
>> disable WiFi on my laptop, the server shows a 169.254.X.X link-local
>> address. I wonder why and if that could be a source of problems.
>> 
>> It shows a red dot, "not connected", but it is active according to
>> ifconfig:
>> 
>> en10: flags=8863 mtu 1500
>>ether a6:e9:75:40:77:fa
>>inet6 fe80::10be:87e1:3ea2:51c7%en10 prefixlen 64 secured scopeid
>> 0x17
>>inet 169.254.132.126 netmask 0x broadcast 169.254.255.255
>>nd6 options=201
>>media: autoselect (100baseTX )
>>status: active
>> 
>> 
> 
> 169.x.x.x seems like a self-assigned address,  could it be you have some
> problem with DHCP?
> 
> --
> 
> Peter Bozek
> **
> 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: Engined App

2019-04-24 Thread Chip Scheide via 4D_Tech
Thanks - 
not happening :)

CHip
On Wed, 24 Apr 2019 09:46:52 -0700, Douglas von Roeder via 4D_Tech 
wrote:
> Chip:
> 
> That’s a licensing issue. I checked a few years back and the price was $3k.
> 
> --
> Douglas von Roeder
> 949-336-2902
> 
> 
> On Wed, Apr 24, 2019 at 9:43 AM Chip Scheide via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Can the 'splash' on exit of an engined application be removed?
>> 
>> Chip
>> ---
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing
>> **
>> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Code signing works on one app but fails on another

2019-04-24 Thread Chip Scheide via 4D_Tech
compress the dmg (zip it) before uploading to dropbox?


On Wed, 24 Apr 2019 17:42:10 +0100, Pat Bensky via 4D_Tech wrote:
> Actually it doesn't seem to be working ... it seems to corrupt the app in
> some way.
> It's quite bizarre ... I compile the app, sign it using Miyako's code, and
> create a disk image using DropDMG. I check it by mounting the disk image
> and installing the app. It runs OK.
> Then I upload it to DropBox.
> Download it from Dropbox, open it, install it, and it will not run. The app
> starts to open and then I get the message "CatBase 8 is damaged and can't
> be opened."
> 
> Any ideas?
> 
> On Thu, 4 Apr 2019 at 11:52, Pat Bensky  wrote:
> 
>> Brilliant, thank you Miyako!
>> Note that I needed to make one change to the code, in the method "code
>> sign":
>> 
>> Change
>> 
>> $infoPlistPath:=$applicationPath+Folder separator+\
>> 
>> "Contents"+Folder separator+"Info.plist"
>> 
>> 
>> to
>> 
>> 
>> $infoPlistPath:=$applicationPath+\
>> 
>> "Contents"+Folder separator+"Info.plist"
>> 
>> Pat
>> 
>> On Thu, 4 Apr 2019 at 01:32, Keisuke Miyako via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> 
>>> the text edit setting "smart dashes" may convert double hyphens to dash,
>>> which is not what you want in this context.
>>> 
>>> https://support.apple.com/kb/PH23628?locale=ja_JP=en_US
>>> 
>>> a single hyphen must be used with a short option name (-f)
>>> a double hyphen must be used with a short option name (--force)
>>> 
>>> -force is therefore an invalid instruction (single hyphen+long option
>>> name).
>>> 
>>> I've posted a utility to ease the process of signing
>>> 
>>> https://github.com/miyako/4d-utility-build-application
>>> 
>>> it is written in v17 but the target app path can be any path.
>>> 
>>> 2019/04/03 8:05、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>> 4d_tech@lists.4d.com>>のメール:
>>> ―force: No such file or directory
>>> 
>>> 
>>> **
>>> 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
>>> **
>> 
>> 
>> 
>> --
>> *
>> CatBase - Top Dog in Data Publishing
>> tel: +44 (0) 207 118 7889
>> w: http://www.catbase.com
>> skype: pat.bensky
>> *
>> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Code signing works on one app but fails on another

2019-04-24 Thread Jody Bevan via 4D_Tech
Pat:

I use DropBox for this every week. When I bill a .dmg file I upload to Dropbox 
and for about that last 6 months, when it is downloaded by others it works fine.

Just of note I use DMG Canvas. That should not matter, but it is a point of 
difference.

Jody

> On Apr 24, 2019, at 10:42 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Actually it doesn't seem to be working ... it seems to corrupt the app in
> some way.
> It's quite bizarre ... I compile the app, sign it using Miyako's code, and
> create a disk image using DropDMG. I check it by mounting the disk image
> and installing the app. It runs OK.
> Then I upload it to DropBox.
> Download it from Dropbox, open it, install it, and it will not run. The app
> starts to open and then I get the message "CatBase 8 is damaged and can't
> be opened."
> 
> Any ideas?
> 

**
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: Engined App

2019-04-24 Thread Douglas von Roeder via 4D_Tech
Chip:

That’s a licensing issue. I checked a few years back and the price was $3k.

--
Douglas von Roeder
949-336-2902


On Wed, Apr 24, 2019 at 9:43 AM Chip Scheide via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Can the 'splash' on exit of an engined application be removed?
>
> Chip
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing
> **
> 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
**

Engined App

2019-04-24 Thread Chip Scheide via 4D_Tech
Can the 'splash' on exit of an engined application be removed?

Chip
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Code signing works on one app but fails on another

2019-04-24 Thread Pat Bensky via 4D_Tech
Actually it doesn't seem to be working ... it seems to corrupt the app in
some way.
It's quite bizarre ... I compile the app, sign it using Miyako's code, and
create a disk image using DropDMG. I check it by mounting the disk image
and installing the app. It runs OK.
Then I upload it to DropBox.
Download it from Dropbox, open it, install it, and it will not run. The app
starts to open and then I get the message "CatBase 8 is damaged and can't
be opened."

Any ideas?

On Thu, 4 Apr 2019 at 11:52, Pat Bensky  wrote:

> Brilliant, thank you Miyako!
> Note that I needed to make one change to the code, in the method "code
> sign":
>
> Change
>
> $infoPlistPath:=$applicationPath+Folder separator+\
>
> "Contents"+Folder separator+"Info.plist"
>
>
> to
>
>
> $infoPlistPath:=$applicationPath+\
>
> "Contents"+Folder separator+"Info.plist"
>
> Pat
>
> On Thu, 4 Apr 2019 at 01:32, Keisuke Miyako via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> the text edit setting "smart dashes" may convert double hyphens to dash,
>> which is not what you want in this context.
>>
>> https://support.apple.com/kb/PH23628?locale=ja_JP=en_US
>>
>> a single hyphen must be used with a short option name (-f)
>> a double hyphen must be used with a short option name (--force)
>>
>> -force is therefore an invalid instruction (single hyphen+long option
>> name).
>>
>> I've posted a utility to ease the process of signing
>>
>> https://github.com/miyako/4d-utility-build-application
>>
>> it is written in v17 but the target app path can be any path.
>>
>> 2019/04/03 8:05、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 4d_tech@lists.4d.com>>のメール:
>> —force: No such file or directory
>>
>>
>> **
>> 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
>> **
>
>
>
> --
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
>


-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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: Listbox data type

2019-04-24 Thread Chip Scheide via 4D_Tech
Thanks.

No -
And BTW selection listbox is longint (not an array)
:)

Chip
On Wed, 24 Apr 2019 10:55:24 -0400, Doug Cottrill via 4D_Tech wrote:
> 
> One other thought- is there an Array Real with the same name as your 
> listbox somewhere else in your DB?
> 
> DKC
> 
>> On Apr 24, 2019, at 10:53 AM, Doug Cottrill via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Chip,
>> 
>> I can’t say for sure why it’s happening- it frankly sounds like a 
>> bug.  However, I may have a possible workaround-
>> Explicitly type the listbox with ARRAY LONGINT(myListboxName;0)
>> My suspicion is that the compiler just defaults to a data type of 
>> ARRAY REAL when it runs into a numeric array, and no one noticed 
>> that it improperly affects selection list boxes (until now).
>> No idea if this will work or not, but worth a shot if you can’t 
>> figure out another workaround.
>> 
>> Good luck!
>> 
>> DKC
>> 
>>> On Apr 23, 2019, at 10:50 PM, Chip Scheide via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>> 
>>> that is what I thought
>>> I have a system I am getting ready to merge with engine. I was 
>>> testing, compiled, one function (a search function) which tests for 
>>> which type of listbox I am working with.
>>> ex:  
>>> if (type ($Listbox_ptr->) = is longint)
>>> do whatever
>>> 
>>> but the search was not working - it was not searching, it does wrk 
>>> just fine interpretedly.
>>> so - I  FSCKed around with it a while, put in alerts and other 
>>> things to try to figure out where and how it was failing when 
>>> compiled.
>>> 
>>> I eventually found that the code was failing where I test for the 
>>> type of listbox, as the above example.
>>> soI placed an alert
>>> Alert(string(type($Listbox->))) just before the txt that was failing.
>>> The Alert showed that the listbox was Type 1 (real) !!
>>> 
>>> I found this just as I had to leave for the day, so I will rejoin 
>>> the issue tomorrow, but..
>>> 
>>> How does a section listbox get typed (compiled) as Real?!?!!?
>>> 
>>> I have no idea. anyone?
>>> 
>>> Thanks
>>> Chip
>>> 
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Listbox data type

2019-04-24 Thread Doug Cottrill via 4D_Tech

One other thought- is there an Array Real with the same name as your listbox 
somewhere else in your DB?

DKC

> On Apr 24, 2019, at 10:53 AM, Doug Cottrill via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Chip,
> 
> I can’t say for sure why it’s happening- it frankly sounds like a bug.  
> However, I may have a possible workaround-
> Explicitly type the listbox with ARRAY LONGINT(myListboxName;0)
> My suspicion is that the compiler just defaults to a data type of ARRAY REAL 
> when it runs into a numeric array, and no one noticed that it improperly 
> affects selection list boxes (until now).
> No idea if this will work or not, but worth a shot if you can’t figure out 
> another workaround.
> 
> Good luck!
> 
> DKC
> 
>> On Apr 23, 2019, at 10:50 PM, Chip Scheide via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> that is what I thought
>> I have a system I am getting ready to merge with engine. I was testing, 
>> compiled, one function (a search function) which tests for which type of 
>> listbox I am working with.
>> ex:  
>> if (type ($Listbox_ptr->) = is longint)
>> do whatever
>> 
>> but the search was not working - it was not searching, it does wrk just fine 
>> interpretedly.
>> so - I  FSCKed around with it a while, put in alerts and other things to try 
>> to figure out where and how it was failing when compiled.
>> 
>> I eventually found that the code was failing where I test for the type of 
>> listbox, as the above example.
>> soI placed an alert
>> Alert(string(type($Listbox->))) just before the txt that was failing.
>> The Alert showed that the listbox was Type 1 (real) !!
>> 
>> I found this just as I had to leave for the day, so I will rejoin the issue 
>> tomorrow, but..
>> 
>> How does a section listbox get typed (compiled) as Real?!?!!?
>> 
>> I have no idea. anyone?
>> 
>> Thanks
>> Chip
>> 


**
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 17.1 network issues

2019-04-24 Thread John DeSoi via 4D_Tech
Hi Spencer,

> On Apr 24, 2019, at 8:29 AM, Spencer Hinsdale  wrote:
> 
> If you go to Apple menu, System Preferences on the mini, for Network do you 
> see more than one green dot?  Each is separate network connection, where you 
> can click Advanced and go to TCP/IP tab for details.  Is not unheard of for 
> someone to set up Ethernet and Wi-Fi.

No, just Ethernet is enabled. WiFi and the other connection types are not 
connected (red dot). But that just helped me answer the question. If I disable 
WiFi on my laptop, the server shows a 169.254.X.X link-local address. I wonder 
why and if that could be a source of problems.

It shows a red dot, "not connected", but it is active according to ifconfig:

en10: flags=8863 mtu 1500
ether a6:e9:75:40:77:fa 
inet6 fe80::10be:87e1:3ea2:51c7%en10 prefixlen 64 secured scopeid 0x17 
inet 169.254.132.126 netmask 0x broadcast 169.254.255.255
nd6 options=201
media: autoselect (100baseTX )
status: active

Even more interesting, you can highlight it and make it "Inactive" using the 
popup menu at the bottom of the list. Red dot disappears and it says 
"Inactive". But ifconfig still says it is active and the IP is still there when 
I restart the server.

> 
> Back in System Preferences, Energy Saver, you probably want Prevent Computer 
> From Sleeping on all computers, but especially server.  It is common for an 
> upgrade of computer or system to reset this, to be green.

Yes, I have it setup that way. There is no monitor attached, so I also have no 
screen saver and set the display to not sleep. Just switched off App Nap last 
night, but I doubt that matters since it should never sleep.


> 
> That said, be aware that 16.4 used New Networking only, which allows Clients 
> to sleep.  It is possible, if you have the Compatibility checkbox (in 4D 
> Server, File menu, Database Settings) set to Use Legacy Network Layer that 
> this works in 17.1 and would cause the errors below if Clients did Sleep.  
> This checkbox would have no effect (and different text) in 16.4 and Clients 
> could Sleep and wake no problem.  Maybe all you need is to uncheck this.

I switched to 64 bit only with version 16, so only the new network layer is in 
use.

I received a response off-line that stated similar problems and the issues were 
solved by upgrading to 17R3 or later. I hope there is a better solution.

In addition to the dropped connections, it has also been reported 4D will 
freeze up for a brief period and become unresponsive, then after about 15-20 
seconds will begin responding again. No problems like this reported with 16.4 
on the same network.

Thanks for your help and suggestions.

John DeSoi, Ph.D.
**
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 17.1 network issues

2019-04-24 Thread Chip Scheide via 4D_Tech
John,
did you turn off App Nap?
Chip

On Wed, 24 Apr 2019 06:54:15 -0500, John DeSoi via 4D_Tech wrote:
> Since I upgraded from 16.4 to 17.1 (all Mac), users have been 
> complaining about 4D Client disconnects. Messages like:
> 
> "The current connection to the database has been disrupted. 
> Connection error with the server. Please restart the application."
> 
> "Unknown Error. Connection error with the server. Please restart the 
> application."
> 
> It is an all local single switch network with default timeouts. I 
> experimented with changing timeouts, but it did not help.
> 
> The server hardware also changed (new 2018 Mac Mini), so I'm looking 
> into that. One curious thing I noticed is the "Application Server" 
> tab shows it to be listening on two IP addresses: 192.168.X.X and 
> 169.254.X.X. The 192 address is expected and the only active network 
> connection on the computer. Why would the server be listening on a 
> 169 link-local address and where did that come from? I don't see that 
> when I run the server on my laptop under the same operating system 
> (10.14 Mojave).
> 
> Digging into it with Wireshark is next, but hoping someone might 
> suggest an easier path.
> 
> John DeSoi, Ph.D.
> 
> 
> **
> 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
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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 Authentication with SharePoint Online -- FedAuth cookie

2019-04-24 Thread Mike Beatty via 4D_Tech
All-

Trying to connect 4D to a Sharepoint Online repository. I can get there, but 
part of the process is to capture a “BinarySecurityToken”, then use that to 
populate a second request to capture the “FedAuth” cookie. The problem we are 
running into is that although the connection seems successful, and no error 
code is received, the data received does not contain a “FedAuth” cookie. 
Perhaps there’s a “verbose” http header option?

Has anyone been able to connect to Sharepoint Online successfully, and perform 
activities such as directory scans? Has anyone any experience w/the FedAuth 
cookie, that might be able to point us in the right direction?

Does Miyako have a “Bat Signal”?

Any advice appreciated! 

Thanks!

Mike

Mike Beatty
Objective Systems
**
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 v17 R5 file and folder objects !!!

2019-04-24 Thread Jody Bevan via 4D_Tech
Jeff:

LOL. Is that like find a Millennial that can jump in a Land Rover Defender and 
drive because they understands no keyless entry, need a key to start it, 2 
stick shifts with 12 gears and differential lock, and hand crank down windows.

Oh, yes one that I found is true. They do not know how to read hand writing! I 
was blown away when a 19 year old Canadian said he could not read it because 
they were never taught it.

On an appreciative Note:

Now that the move to 64bit, and updating the code base, 4D SAS is really 
pouring out the enhancements. Fun times to be working with 4D I think.

Jody

> On Apr 24, 2019, at 5:36 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Time references for documents are a good weed-out mechanism - if you can find 
> a millennial who just gets it, you have a keeper... :)
> 
>> On Apr 24, 2019, at 2:51 AM, Bruno LEGAY via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Hi,
>> 
>> I just noticed in 4D v17 R5 the new file and folder objets...
>> 
>> https://doc.4d.com/4Dv17R5/4D/17-R5/File-and-Folder.201-4282207.en.html
>> 
>> This is great !
>> 

**
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 Security White Paper

2019-04-24 Thread Jody Bevan via 4D_Tech
As with all security anything can be hacked given time, money, and desire.

First of all, social hacking is the most likely cause of leaked data. So moving 
on, to other types.

If someone really wants your data they might steal your server computer. In 
days gone by if you didn’t know the Administration password - not a problem 
take the drives out and hook up into a different system. If though, you have 
used a RAID system, with hardware encryption of the data that does not work. 
Everything is encrypted on the hard drives. You are not going to get any data.

So, here again social hacking is needed to get the Administrator’s password. No 
amount of work on our end as developers is going to stop social hacking.

4D has long had encryption of data between the server and the 4D Client. That 
is in case someone is going to sniff the wireless or wired network.

If you have opened up a 4D data file that is not encrypted, I challenge you to 
actually piece together the information. I have tried when I opened up a 
typical smaller data file of a smaller client - 30GB of data. Yes, I can see 
information, but a record is not all together. Therefore trying to pull data 
together for a single record, or a person is not going to be something one can 
do.

This is all very easy for each of you to look at. Open a data file up. If it is 
too big, you can build a text viewer that will read things in a character or 
‘x’ characters at a time. See for yourself how hard it is to read the data, 
pull together information.

I have worked through lots of different government security regulations. First 
they jump on what ever is the latest in the trade magazines. Second the 
elephant in the room is ignored (social hacking). They make up all these rules, 
and then when they have inspections on site they totally ignore the security 
rules  that they should be checking.

Jody


**
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 17.1 network issues

2019-04-24 Thread John DeSoi via 4D_Tech
Since I upgraded from 16.4 to 17.1 (all Mac), users have been complaining about 
4D Client disconnects. Messages like:

"The current connection to the database has been disrupted. Connection error 
with the server. Please restart the application."

"Unknown Error. Connection error with the server. Please restart the 
application."

It is an all local single switch network with default timeouts. I experimented 
with changing timeouts, but it did not help.

The server hardware also changed (new 2018 Mac Mini), so I'm looking into that. 
One curious thing I noticed is the "Application Server" tab shows it to be 
listening on two IP addresses: 192.168.X.X and 169.254.X.X. The 192 address is 
expected and the only active network connection on the computer. Why would the 
server be listening on a 169 link-local address and where did that come from? I 
don't see that when I run the server on my laptop under the same operating 
system (10.14 Mojave).

Digging into it with Wireshark is next, but hoping someone might suggest an 
easier path.

John DeSoi, Ph.D.


**
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 v17 R5 file and folder objects !!!

2019-04-24 Thread Jeffrey Kain via 4D_Tech
Time references for documents are a good weed-out mechanism - if you can find a 
millennial who just gets it, you have a keeper... :)

> On Apr 24, 2019, at 2:51 AM, Bruno LEGAY via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> I just noticed in 4D v17 R5 the new file and folder objets...
> 
> https://doc.4d.com/4Dv17R5/4D/17-R5/File-and-Folder.201-4282207.en.html
> 
> This is great !
> 
> I won't miss trying to explain/justify to new 4D developers why a document 
> reference is a TIME variable...
**
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
**