Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Kirk Brooks
Miyako, ​I must be missing something here. On Sun, Jan 15, 2017 at 4:54 PM, Keisuke Miyako wrote: > it is now recommended to use > > WEB GET OPTION > http://doc.4d.com/4Dv16/4D/16/WEB-GET-OPTION.301-3036901.en.html I plugged the IP into an on-line IP converter which

Re: Tip: Binary insertion code

2017-01-15 Thread David Adams
> ​What I'm seeing is these are techniques most applicable to really large > data objects. I'm most frequently dealing with object arrays of less than > 50 elements. For things this small I can rely on the straight forward 4D > approach. But as I write that I can also see the benefits of a little

Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Kirk Brooks
Hi Miyako, On Sun, Jan 15, 2017 at 4:54 PM, Keisuke Miyako wrote: > according to the docs (ignore the french constant names, it must be a > silly bug) > > it is now recommended to use > > WEB GET OPTION > http://doc.4d.com/4Dv16/4D/16/WEB-GET-OPTION.301-3036901.en.html >

Re: Tip: Binary insertion code

2017-01-15 Thread Kirk Brooks
Hey David, You know, you really are contributing massively to our collective knowledge with these posts. On Sun, Jan 15, 2017 at 2:57 PM, David Adams wrote: > > I'm thinking thousands+ of elements but maybe it's a noticeable bump on > > smaller ones? > > Hey Kirk, I haven't

Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Keisuke Miyako
according to the docs (ignore the french constant names, it must be a silly bug) it is now recommended to use WEB GET OPTION http://doc.4d.com/4Dv16/4D/16/WEB-GET-OPTION.301-3036901.en.html instead of Get database parameter

Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Balinder Walia
Ah! That's no good. What about one of the parameters in OWC? Does 0 means it is listening on all available IPs? On Sun, 15 Jan 2017 at 23:25, Kirk Brooks wrote: > Hey Bal, > > I think this is reading the same resource as WEB GET OPTION. For instance, > > since I have 'set'

Re: PDFtk: Updating librairies on Mac

2017-01-15 Thread Keisuke Miyako
that would be otool -L > 2017/01/16 4:15、Bertrand SOUBEYRAND のメール: > What is the handiest way on MacOS to update with command lines the PDFtk > associated librairies? 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449

Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Kirk Brooks
Hey Bal, I think this is reading the same resource as WEB GET OPTION. For instance, since I have 'set' a particular IP to listen so both of them return zero. The server is actually available at 192.168.1.3 or localhost. On Sun, Jan 15, 2017 at 1:51 PM, Balinder Walia

Re: Tip: Binary insertion code

2017-01-15 Thread David Adams
P.S. Another nice feature of a binary search as it adds no space relative to a scan. You exploit the sort order, but don't need to hang any extra attributes off the array to make it work. That's totally cool. That's one reason that binary search is a basic, long-standing, and still-popular

Re: Tip: Binary insertion code

2017-01-15 Thread David Adams
> As a rule of thumb how large an array are you dealing with where managing > them like this starts to matter? > > I'm thinking thousands+ of elements but maybe it's a noticeable bump on > smaller ones? Hey Kirk, I haven't the faintest idea. (But check the bottom of this message for more

Re: How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Balinder Walia
Kirk, You want *Get database parameter *command. The selector 16 (IP Address to listen) lets you get the IP address on which the 4D Web server receives HTTP requests. The following example splits up the hexadecimal value: *C_LONGINT *($a;$b;$c;$d)

Re: Input form strangeness v15r5

2017-01-15 Thread Max M
Thanks for your reply, Keith. I did run into FGCP while looking for a workaround, after my v12 magic abilities ran out. Thanks a lot for sharing, and your input. max > On Jan 15, 2017, at 7:27 AM, Keith Culotta wrote: > > You can also use "tabControl:=FORM Get current

Re: Tip: Binary insertion code

2017-01-15 Thread David Adams
> I think you’re possibly referring here to the implementation of the binary > search itself. Yes I was. > For example say I have an array which holds hierarchical data (arrCHILD, > arrPARENT). When you want to scan the array with a logical function that tests > for each element being in a

[MEETING] Montreal 4D Club Meeting

2017-01-15 Thread Thierry Daigneault
The next meeting of the Montreal 4D Club will be held Wednesday January 18th at 7 PM. The schedule for the next meeting is as follows: News Questions Presentations - Open meeting. Bring your questions and your presentations. End of the meeting We usually end up at some sort of restaurant after

How to get the IP address of the 4D web server within 4D?

2017-01-15 Thread Kirk Brooks
I thought I saw this recently but I can't find it now - given a copy of 4D running the web server how can I get the IP address it's listening to? I thought WEB GET OPTION would do it but it doesn't dynamically (it only seems to return whatever value WEB SET OPTION installed). Thanks -- Kirk

PDFtk: Updating librairies on Mac

2017-01-15 Thread Bertrand SOUBEYRAND
oyé, What is the handiest way on MacOS to update with command lines the PDFtk associated librairies? MacOS: libgcc_s.1.dylib libgcj.16.dylib libiconv.2.dylib libstdc++.6.dylib libz.1.dylib pdftk Bertrand SOUBEYRAND --- La Soub Compagnie 33 bd

Re: Tip: Binary insertion code

2017-01-15 Thread Arnaud de Montard
> Le 15 janv. 2017 à 18:31, Kirk Brooks a écrit : > > [...] > > I'm thinking thousands+ of elements but maybe it's a noticeable bump on > smaller ones? I put some test code under. It seems the position of the value to search (lines with *) seems to strongly influence

Re: Tip: Binary insertion code

2017-01-15 Thread Kirk Brooks
David, As a rule of thumb how large an array are you dealing with where managing them like this starts to matter? I'm thinking thousands+ of elements but maybe it's a noticeable bump on smaller ones? On Fri, Jan 13, 2017 at 4:57 PM, David Adams wrote: > 4D introduced binary

Re: Input form strangeness v15r5

2017-01-15 Thread Keith Culotta
You can also use "tabControl:=FORM Get current page" to the "On Load" event when you want the control to reflect the page the user views when walking records. Keith - CDI > On Jan 13, 2017, at 4:48 PM, Max Morrison wrote: > > V15R5 standalone and server/client, upgraded from

Re: Form Button (Why do 2-events that are disabled appear checked?)

2017-01-15 Thread Arnaud de Montard
> Le 15 janv. 2017 à 02:55, Jeremy French a écrit : > > When a new button is created, 3-events are automatically check-marked. These > events are: > > On clicked > On plug-in area > On data change > > What's odd, is that two of the events appear disabled, and the

Re: Tip: Binary insertion code

2017-01-15 Thread Peter Jakobsson
On 14 Jan 2017, at 23:32, David Adams wrote: > There's no need to use recursion. Dave Terry's code avoids it with > iteration but you can always replace recursion with a stack. Recursion > automatically gives you a stack for "free" Hi David I think you’re possibly referring