Re: Regex
I’m not sure exactly what you are trying to find. \b[Oo][0-9]\w* will, I think, match all words beginning with the letter o followed by a digit. Jeremy Jeremy Roussak j...@mac.com > On 22 Mar 2017, at 17:33, Nigel Greenlee via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi. > > I am not very good with regex and looking for some ideas. > > The following regex says if matches > > $_RegexString:=\\b(?i)On* > > $_t_text=(LONG TEXT CONTAINING) somewhere the word O2FX2I > > $_bo_IsFound:=Match regex($_RegexString;$_t_Text;1;$_l_Start;$_l_End) > > My regex should be only finding if the word(In this case ‘on’) if the > beginning of a word in the text(so should find if my regex word was ‘o2' but > not ‘on’) > > Can anyone guide me what my regex string should have been-my head is hurting:) > > Nigel Greenlee > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Entry Field questions
On Wed, Mar 22, 2017 at 1:26 PM, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > >> 2. What is the best way to prevent users to copy / paste values with > crlf in it? > Assign an entry filter to field, variable in question using object set filter which excludes CR, LF or any other character You might use something like this $EntryFilter_txt:="&"+*Char*(Double quote)+"a-z;A-Z;0-9; ;,;.;-;%"+*Char*(Double quote) or $EntryFilter_txt:="&"+*Char*(Double quote)+"A-Z;a-z;0-9; ;.;,;(;);*;%;$;#;@;!;?;<;>;:;';-;+;_;=;^;[;];/;\\;|;{;};~;`"+*Char*(Double quote) and then on load object set entry filter(self->;$EntryFilter_txt) Hope this helps Regards Chuck -- - 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 Sever 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) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Regex
Hi. I am not very good with regex and looking for some ideas. The following regex says if matches $_RegexString:=\\b(?i)On* $_t_text=(LONG TEXT CONTAINING) somewhere the word O2FX2I $_bo_IsFound:=Match regex($_RegexString;$_t_Text;1;$_l_Start;$_l_End) My regex should be only finding if the word(In this case ‘on’) if the beginning of a word in the text(so should find if my regex word was ‘o2' but not ‘on’) Can anyone guide me what my regex string should have been-my head is hurting:) Nigel Greenlee ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Entry Field questions
> Le 21 mars 2017 à 20:13, Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > >> 2. What is the best way to prevent users to copy / paste values with crlf >> in it? > > [...] I lean more towards the a cleans method that I can call everywhere. My choice, too. -- Arnaud de Montard ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Server Mirroring
Hi Jeff, Thanks for the advice. I appreciate it! -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Mar 22, 2017, at 8:31 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We run a mirror here -- soon to be several mirrors. Overall it works great. > There's practically zero overhead in the "New Log File" command > (milliseconds). My only advice would be to make the transfer of the logs > happen outside of 4D. Write a script in Python or PowerShell to handle the > moving of the journal files from the production server to the mirror, and > maintain an archive of all your journal files in case you need to restore a > backup and integrate them all again. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Server Mirroring
We run a mirror here -- soon to be several mirrors. Overall it works great. There's practically zero overhead in the "New Log File" command (milliseconds). My only advice would be to make the transfer of the logs happen outside of 4D. Write a script in Python or PowerShell to handle the moving of the journal files from the production server to the mirror, and maintain an archive of all your journal files in case you need to restore a backup and integrate them all again. -- Jeffrey Kain jeffrey.k...@gmail.com > On Mar 21, 2017, at 4:44 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi Paul, > > I’m just working out how to do this theoretically at the moment. But, no, > they won’t be on the same local network. I want them geographically diverse. > And I think I want an additional place (FTP site) that is away from both of > them to keep a copy of each log file in case the mirror can’t be reached for > awhile. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Insert a picture in Write Pro
OK, I understood what happens : WP create a copy of the picture in a folder with same name as HTML document. This is not what I need, because I may have to insert images used elsewhere and duplication does not interest me. I organize my pictures in folders and then create my pages. I will ask the feature "drag and drop without duplication". Anyone using WP here ? For which use ? > Le 22 mars 2017 à 14:14, bern...@escaich.com a écrit : > > Hi all, > > I use Write Pro to generate HTML pages and it does the job pretty well. > > But I have a difficulty : I use drag and drop to place pictures in the text ; > the picture is displayed, but when I export WP area in HTML code, path is not > the one expected. > > I have a relative path, i.e. MyFolder/MyPicture, where MyFolder is last level > of folder got by SELECT FOLDER. > If MyPicture is in MySubFolder, I would like to get MySubFolder/MyPicture. > > Any idea ? > > Cordialement, > > Bernard Escaich > > ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Insert a picture in Write Pro
Hi all, I use Write Pro to generate HTML pages and it does the job pretty well. But I have a difficulty : I use drag and drop to place pictures in the text ; the picture is displayed, but when I export WP area in HTML code, path is not the one expected. I have a relative path, i.e. MyFolder/MyPicture, where MyFolder is last level of folder got by SELECT FOLDER. If MyPicture is in MySubFolder, I would like to get MySubFolder/MyPicture. Any idea ? Cordialement, Bernard Escaich ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Server Mirroring
I was thinking of doing using aws and S3 storage. I currently do this with my backups and it would work just as well for the log files. AWS has a sync client you can call this to synchronise the directory from 4D ie upload the log. The on mirror server in reverse sync back to local then integrate the log file. Paul -- View this message in context: http://4d.1045681.n5.nabble.com/Re-Server-Mirroring-tp5750849p5750870.html Sent from the 4D Tech mailing list archive at Nabble.com. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **