Re: htaccess and .gz

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the web server has a built-in compression feature, Web HTTP compression level Web HTTP compression threshold http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Web-Server.302-3112186.en.html so normally you shouldn't have to care about gunzipping files yourself. 2017/03/13 21:18、Andrea Angeli via 4D_Tech

Re: Host Structure in a component

2017-03-13 Thread Keisuke Miyako via 4D_Tech
the code "seems OK..." doesn't it work inside a different host? what if you rename the arrays to something different? local variables are permitted in that context, but sometimes strange things occur. ** 4D Internet Users

Re: Users & Groups (What is "proper access privileges"?)

2017-03-13 Thread Chip Scheide via 4D_Tech
generically: Administrator Designer can access, BUT especially for creating it is not recommended. When I access (through code) the User/Group system I always change the user privs to Administrator. On Mon, 13 Mar 2017 15:21:01 -0400, Jeremy French via 4D_Tech wrote: > What is meant by "proper

Users & Groups (What is "proper access privileges"?)

2017-03-13 Thread Jeremy French via 4D_Tech
What is meant by "proper access privileges" in Users and Groups? Is there a definiton somewere? 3-commands mention "Designer" and "Administrator", who can execute the command. Those commands are: 1) BLOB TO USERS 2) DELETE Users 3) USERS TO BLOB But many other commands do not

RE: Host Structure in a component

2017-03-13 Thread Timothy Penner via 4D_Tech
Getting an error that the variable does not exist only while in compiled mode? Maybe the issue is the local variable (variable starting with $)? http://doc.4d.com/4Dv15/4D/15.3/Import-and-Export.201-3151369.en.html#1040799 -Tim

Re: Host Structure in a component

2017-03-13 Thread Patrick Emanuel via 4D_Tech
I had no issue with this kind of code from a compiled component. However, you can write: ARRAY LONGINT($tableNums;0) ARRAY TEXT($tableNames;0) Begin SQL SELECT TABLE_ID , TABLE_NAME FROM _USER_TABLES INTO :$tableNums, :$tableNames; End SQL - Patrick EMANUEL

Re: PHP EXECUTE in a loop

2017-03-13 Thread Balinder Walia via 4D_Tech
Call ON ERR CALL and if PHP cgi error just call PHP Exec again...basically wait for a bit until you stop getting error and try again. I miss the Try command in 4D :) On Mon, 13 Mar 2017 at 16:30, Patrick Emanuel via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Before call any 'PHP EXECUTE', I used

Re: [ANN]: v2.0 of 4D v14/v15 Code Analysis Component Released

2017-03-13 Thread Dani Beaubien via 4D_Tech
Yep. This is the last version that will have v14 support. I will be releasing a v16 version soon. Dani > On Mar 11, 2017, at 3:12 AM, Nils Kollandsrud via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Thank you for a fantastic tool! Any plans for a v16 version of the > component? > > On Wed,

Host Structure in a component

2017-03-13 Thread Nigel Greenlee via 4D_Tech
I know this topic has been covered in General before but there are some things I am not sure about and i seem to be having a problem. I want to get the details of a host structure in a COMPILED component. ARRAY LONGINT($tableNums;0) ARRAY TEXT($tableNames;0) Begin SQL SELECT TABLE_ID FROM

RE: Backup files - restoring backup

2017-03-13 Thread Epperlein, Lutz (agendo) via 4D_Tech
> I think the .bk files must be there somewhere - they just can't find them. Maybe. Or they have only a (very large) journal file ... Because the backup isn't configured, but the writing the journal file is active. Regards Lutz

Backup files - restoring backup

2017-03-13 Thread Pat Bensky via 4D_Tech
A client is getting the message: "An error occured during the log file integration, it is recommended to restore the last backup of this database in order to attempt the integration of this log file"" I've told them how to restore the backup file manually but they say they do not have any files

Re: List Box Hidden rows array

2017-03-13 Thread Jim Dorrance via 4D_Tech
arrrg... v13 or v15 Thanks for the help On Mon, Mar 13, 2017 at 2:32 PM, npdennis via 4D_Tech <4d_tech@lists.4d.com> wrote: > > On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech < > 4d_tech@lists.4d.com > wrote: > > > > I would to use a dynamic form array as a

Re: List Box Hidden rows array

2017-03-13 Thread npdennis via 4D_Tech
> On Mar 12, 2017, at 11:14 PM, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com > > wrote: > > I would to use a dynamic form array as a ListBox hidden rows array. Is > there a way I can set this with code. You can with 4D v16 or one of the 4D v15r releases, but not

htaccess and .gz

2017-03-13 Thread Andrea Angeli via 4D_Tech
Hallo, I should try to compress a 3.5Mb .css file on 4D Web Server. Usually with apache you have .gz file and if you use an htaccess file with the specific row the browser load the .gz file instead the normal .min.css file. Is it possible to do the same thing on 4D Web Server? Have anyone never

htaccess and .gz

2017-03-13 Thread Andrea Angeli via 4D_Tech
Hallo, I should try to compress a 3.5Mb .css file on 4D Web Server. Usually with apache you have .gz file and if you use an htaccess file with the specific row the browser load the .gz file instead the normal .min.css file. Is it possible to do the same thing on 4D Web Server? Have anyone never

Re: Anyone successfully running Sierra on their development machine

2017-03-13 Thread Sujit Shah via 4D_Tech
That's why you have sticky keys on Windows. Keeps everyone busy.. On Mon, 13 Mar 2017 at 1:59 pm, Robert ListMail via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Kirk, understood, I decided to put the goggles on and go for Sierra and > will deal with the issues if any. I can still boot from a

Re: osx open url vs osascript FYI

2017-03-13 Thread Keisuke Miyako via 4D_Tech
for opening documents plugin https://github.com/miyako/4d-plugin-shell-execute component (internally LAUNCH EXTERNAL PROCESS) https://github.com/miyako/4d-component-sublaunch in particular, the escaping of paths is quite robust, not just double-quoting the whole string. but going back to the

Re: List Box Hidden rows array

2017-03-13 Thread Jeremy French via 4D_Tech
Hi Jim, Have you looked at LISTBOX SET ARRAY with the "lk control array" constant? For the command: http://doc.4d.com/4Dv16/4D/16/LISTBOX-SET-ARRAY.301-3036404.en.html For the control array, see section titled "Managing row display":

Re: osx open url vs osascript FYI

2017-03-13 Thread Nigel Greenlee via 4D_Tech
David This works for me launching(all sorts of) documents..(OSX there is a another bit bit i have for windows) $_t_DocumentPath:=<—full path to document If (Test path name($_T_DocumentPath)=Is a document) $_t_PosixPath:=Convert path system to POSIX($_t_DocumentPath)

Re: Dynamic PDF Page Extraction...

2017-03-13 Thread Keisuke Miyako via 4D_Tech
1. these are LEP based; probably not performant in a loop... https://github.com/miyako/4d-component-poppler https://github.com/miyako/4d-component-pdftk 2. this one is Mac only https://github.com/miyako/4d-plugin-pdf-kit 3. this one is not very good with Japanese text (returns duplicates)

Re: Dynamic PDF Page Extraction...

2017-03-13 Thread Koen Van Hooreweghe via 4D_Tech
Hi Robert, Is this on macOS? If so, you could use OS built in python. There are a few automator scripts which handle PDF documents (extract odd/even pages,...) Actually inside they are python scripts. Eg: /System/Library/Automator/Extract odd & Even Pages.action/Contents/Resources/extract.py

Re: Anyone successfully running Sierra on their development machine

2017-03-13 Thread Robert ListMail via 4D_Tech
Hi Kirk, understood, I decided to put the goggles on and go for Sierra and will deal with the issues if any. I can still boot from a clone of 10.11.6. Ive not done a clean install in a very long time. It's rather interesting to learn exactly where the data resides and how to migrate that

Dynamic PDF Page Extraction...

2017-03-13 Thread Robert ListMail via 4D_Tech
I have a need to process (extract) groups of pages (bank statements in this case) from a single PDF with more than 2,500 pages. Apparently they were merged and I need to un-merge. I think all of the statements are: 8, 10 or 12 pages in length and they are PDF searchable (some docs apparently

RE: osx open url vs osascript FYI

2017-03-13 Thread David Ringsmuth via 4D_Tech
Bernd, Yes, html was what I first tried. David Ringsmuth From: Bernd Fröhlich via 4D_Tech Sent: Saturday, March 11, 2017 4:57 AM To: 4d_tech@lists.4d.com Cc: Bernd Fröhlich Subject: Re: osx open url vs osascript FYI David Ringsmuth: > I tried many different things to launch a .htm on OSX