Re: All folders hidden in Apppackage/AppFolder...
Jörg, Mac or Windows? Jeremy > On 17 Dec 2019, at 12:18, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > G’day All, > > Out of curiosity, what effect would it have if I decide to hide all folders > in the application package/folder and even the data-file programmatically > from within 4D. > > I mean hiding the PlugIn-, ComponentS-, etc. folders. > > I know everything can still be accessed from the 4D-structure but I’ve no > idea of any ripple effect(s) it might has. > > Any ideas, experiences, voodoo ... are appreciated. > > 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: lags
Hi Chip, Thanks for suggestions. /Ferdinando/ Il 16/12/19 23:17, Chip Scheide ha scritto: Fernando, get v13.6 here (windows) : https://download.4d.com/Products/Archives/Line_v13/4D_v13_6/Win/ here (Mac) : https://download.4d.com/Products/Archives/Line_v13/4D_v13_6/Mac/ no promise that it will solve the problem - but it can't hurt Other issues that could cause server slowdowns - too many users vs available RAM - too many processes (on the server) vs available RAM - memory leaks - (from memory) selections, sets, named selections, menus, (hierarchical) lists that are not released before a process exits. - thrashing of the cache -- not a big enough cache requiring a lot of loading/unloading- changing the cache setting may help. - thrashing of the drive (related to the above) - changing the cache setting may help. - a mechanical hard drive vs SSD. - (heavy) fragmentation on a mechanical hard drive - Other activities on the server? What windows version? 32 bit? 64 bit? 32bit OS accesses a max of ~3.5 gig RAM, regardless of installed RAM. On Mon, 16 Dec 2019 22:42:29 +0100, stardata.info via 4D_Tech wrote: We have done so much, with so little, for so long; We are now qualified to anything with nothing - unknown ** 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: All folders hidden in Apppackage/AppFolder...
Jorg, if by 'hide', you mean make them invisible (as in adding a '.' to the file & folder names) well... then you are changing the names of the various files and folders that 4D is expecting to be in place... so that will not work. If you mean using 4D, or other means, to set the invisible bit without changing the name(s) that should not create any problem for your database. NOTE: I have never done this with 4D required files and folders, however I do create and maintain invisible files and folders for internal use - and there is no problem. Can I ask..? Why? Chip On Tue, 17 Dec 2019 23:18:21 +1100, Jörg Knebel via 4D_Tech wrote: > G’day All, > > Out of curiosity, what effect would it have if I decide to hide all > folders in the application package/folder and even the data-file > programmatically from within 4D. > > I mean hiding the PlugIn-, ComponentS-, etc. folders. > > I know everything can still be accessed from the 4D-structure but > I’ve no idea of any ripple effect(s) it might has. > > Any ideas, experiences, voodoo ... are appreciated. > > 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 > ** We have done so much, with so little, for so long; We are now qualified to anything with nothing - unknown ** 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: XML Null reference with DOM Find XML element
Hi Koen, Thanks for he snippet >> Hi Piotr, >> I have a small method DOM_validRef which basically uses this test: >> if(Replace string($ref;"0";"")="") >> $valid:=false >> end if >> 64bit indeed uses 32 zero chars instad of 16, but this code handles both >> situations (and future ones, if we live long enough to make the transiton to >> 128bit systems...). >> My method also checks if all chars in the XML ref are valid hex chars (0-9 >> A-F), but that might be overkill. >> Kind regards, >> Koen ** 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: XML Null reference with DOM Find XML element
Hi Piotr, I have a small method DOM_validRef which basically uses this test: if(Replace string($ref;"0";"")="") $valid:=false end if 64bit indeed uses 32 zero chars instad of 16, but this code handles both situations (and future ones, if we live long enough to make the transiton to 128bit systems...). My method also checks if all chars in the XML ref are valid hex chars (0-9 A-F), but that might be overkill. Kind regards, Koen > Op 17 dec. 2019, om 10:08 heeft Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > 4Dv17R6, Windows 64-bit > What is the best way to test if a XML DOM element is a Null reference? > Especially when using DOM Find XML element? 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: XML Null reference with DOM Find XML element
Piotr, Hi. That seems like the expected behaviour according to the docs: https://doc.4d.com/4Dv17/4D/17.3/Overview-of-XML-DOM-Commands.300-4620648.en.html "Error Handling Many functions in this theme return an XML element reference. If an error occurs during function execution (for example, if the root element reference is not valid), the OK variable is set to 0 and an error is generated. In addition, the reference returned in this case is a sequence of zero "0" characters (16 characters in 32 bits, and 32 characters in 64 bits)." Does that help? Are you testing for OK = 0 in your code? Regards, Narinder Chandi, ToolBox Systems Ltd. https://toolbox.systems I am available for new consulting opportunities… http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Tuesday, 17 December 2019 at 09:08 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: Piotr Chabot Stadhouders Subject: XML Null reference with DOM Find XML element Hi, 4Dv17R6, Windows 64-bit What is the best way to test if a XML DOM element is a Null reference? Especially when using DOM Find XML element? The docs say “If the command has been executed correctly, the system variable OK is set to 1” Does it mean “if the command finds an element”? Finding nothing is also “executed correctly” In our app we tested on “”, but now it seems (64-bit?) that a null reference consists of 32 zeroes instead of 16 I only see 1 mention about null reference in XML but it tals about 16 zeroes Does anybody know more about this? Gr, Piotr ** 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 **
XML Null reference with DOM Find XML element
Hi, 4Dv17R6, Windows 64-bit What is the best way to test if a XML DOM element is a Null reference? Especially when using DOM Find XML element? The docs say “If the command has been executed correctly, the system variable OK is set to 1” Does it mean “if the command finds an element”? Finding nothing is also “executed correctly” In our app we tested on “”, but now it seems (64-bit?) that a null reference consists of 32 zeroes instead of 16 I only see 1 mention about null reference in XML but it tals about 16 zeroes Does anybody know more about this? Gr, Piotr ** 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 **