Re: POP3 Email Processing (and ramblings by Tim Nevels on 4D)

2017-10-27 Thread David Adams via 4D_Tech
On Sat, Oct 28, 2017 at 3:21 PM, Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > On Oct 27, 2017, at 8:11 PM, David Adams wrote: > > Tim, I wasn't really making a broad comment of any kind about 4D or criticizing - just citing a bit of the history I was there for. The original programmer

Re: POP3 Email Processing (and ramblings by Tim Nevels on 4D)

2017-10-27 Thread Tim Nevels via 4D_Tech
On Oct 27, 2017, at 8:11 PM, David Adams wrote: > Plug-ins can yield time (in two flavors) to the scheduler, so they don't > *have* to be completely blocking. The original PDM code was not re-entrant > and that's legacy seems to have been haunting us for the 25 years since 4D > took it on. Rumor

Re: ListBox locked record vs automatic one to many

2017-10-27 Thread John Baughman via 4D_Tech
***I go to a different form with a previous*** Should have read… ***I go to a different record with a previous*** > On Oct 27, 2017, at 3:11 PM, John Baughman via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > This is v16 R4 with Foundation Shell 5. Using a selection or named selection > based

Re: find only partial strings

2017-10-27 Thread Peter Mew via 4D_Tech
Lots of things to try, thank you all -pm On Fri, Oct 27, 2017 at 8:23 PM, Randy Jaynes via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Match RegEx should be able to do that for you. > > Provided you get the pattern matching string correct. > > That’s always a fun task. :-) > > Randy > >

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
Thanks, Jeff. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236 > On Oct 27, 2017, at 1:02 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Ours are normal, non-built servers.

Re: POP3 Email Processing

2017-10-27 Thread David Adams via 4D_Tech
> It blocks the whole application while waiting for and downloading messages from the server. This is because the plugin interface of 4D is designed > to be in cooperative mode. Even switching to v16 and using preemptive threads will not help, the plugin interface isn't thread-safe. Plug-ins can

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Perkins, Bradley D via 4D_Tech
I have grep'd everything in /var/log --- the files the the console displays -- and haven't found anything that is running at 3am. That is assuming of course that any system level activity would be logged. The closest entry is at 3:01 and that is when my monitoring script emails me the first of

Re: find only partial strings

2017-10-27 Thread John Baughman via 4D_Tech
If Seg falls after a Segment the $location will be incorrect. I think should be something like… $New_Text:=replace string($Source;"Segment";”S$gment") $Location:=Position("Seg";$New_Text) > On Oct 27, 2017, at 9:27 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >

Re: find only partial strings

2017-10-27 Thread Kirk Brooks via 4D_Tech
Peter, Try this pattern: "\bseg\b" When you paste it into 4d the string will change to "\\bseg\\b". The '\b' is 'word boundary' so this looks for the letters 'seg' between word boundaries. On Fri, Oct 27, 2017 at 12:07 PM, Peter Mew via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi > If I have

Re: find only partial strings

2017-10-27 Thread Chip Scheide via 4D_Tech
my first response was a bit terse... If you need to retain source text length (and relative position of the shorter 'seg' texts) $Replacement:=char(256)*7 $New_Text:=Replace string($source;"Segment";$Replacement) $Loc:=0 Repeat $Loc:=position("Seg";$New_Text;$Loc+1) if ($Loc>0) do

Re: find only partial strings

2017-10-27 Thread Chip Scheide via 4D_Tech
$New_Text:=replace string($Source;"Segment";"") $Location:=Position("Seg";$New_Text) On Fri, 27 Oct 2017 20:07:18 +0100, Peter Mew via 4D_Tech wrote: > Hi > If I have a document, that has both the word "seg" and the word "segment", > is there a way I can find the positions of just the word "seg"

Re: find only partial strings

2017-10-27 Thread Randy Jaynes via 4D_Tech
Match RegEx should be able to do that for you. Provided you get the pattern matching string correct. That’s always a fun task. :-) Randy -- Randy Jaynes Senior Programmer and Customer Support http://printpoint.com

find only partial strings

2017-10-27 Thread Peter Mew via 4D_Tech
Hi If I have a document, that has both the word "seg" and the word "segment", is there a way I can find the positions of just the word "seg" I can look at the character following "seg" to see if its an "m", but I wondered if there was a more direct route. thanks -pm

Re: Server Process "Frozen"-ish

2017-10-27 Thread Jeffrey Kain via 4D_Tech
Ours are normal, non-built servers. -- Jeffrey Kain jeffrey.k...@gmail.com > On Oct 27, 2017, at 2:02 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > For those that have experiences this issue, has anyone experienced it on a > server that wasn’t a “built” server? All mine are

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Perkins, Bradley D via 4D_Tech
Chip, /var/log/daily.out exists Since the OS is newly updated no weekly or monthlies have run yet. I can see that the daily OS X cleanup scripts are running at ~22:15 local time. That rules these out. Thanks, Brad Perkins On 10/27/17, 12:25 PM, "Chip Scheide" <4d_o...@pghrepository.org>

Image Grid Widget

2017-10-27 Thread truegold via 4D_Tech
Hi Miyako (or anyone please), I am looking at the cool Image Grid Widget you created years back. It was setup to handle and display png images. I have upgraded it to 4D v15 and I am trying to use it to display a list of svg images. The code to read a PNG and display in a web page is: PICTURE

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Chip Scheide via 4D_Tech
here is a link about the cron jobs/scripts http://thexlab.com/faqs/maintscripts.html I do not really know what they do, only that they exist, I only quickly scanned the article. the article at the above link says they (may) run at 3:15am of course, the underlying OS changed (Sierra to High

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread JBellos via 4D_Tech
Try turning on the debug/request log in 4D to see what's firing in your application at that time, if anything.. Also, look at the Mac Console log to see what's happening at 3 AM, if there's anything unique running there that's not happening earlier. -- Sent from:

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
For those that have experiences this issue, has anyone experienced it on a server that wasn’t a “built” server? All mine are built servers. -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Placing cursor in text field in included form

2017-10-27 Thread Kirk Brooks via 4D_Tech
Lee, First, write a method to take an object name as $1 and uses HIGHLIGHT TEXT to place the cursor wherever you want it. Second, call this method using EXECUTE IN SUBFORM("subform name"; "MyMethod";*;"subform object name") On Fri, Oct 27, 2017 at 10:10 AM, Lee Hinde via 4D_Tech <

Placing cursor in text field in included form

2017-10-27 Thread Lee Hinde via 4D_Tech
in v15... Input form with an included layout that is just a text field. User clicks a "new" button which adds a related record, date/timestamps it as the first part of the field. User would like the cursor to be placed to the right of the time stamp. Based on the commented out code, the

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Perkins, Bradley D via 4D_Tech
Chip, Except for the OS Upgrade nothing changed. This problem didn't exist under Sierra. The machine has AV installed (IT policy mandates that too) but it has never been a problem in the past. I'm the only end user of the machine. As noted I do have a 3am job, but that has run fine in the

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Chip Scheide via 4D_Tech
since it is at the same time - There are a couple of possibilities: - anti virus software (either update, or scan) - cron job - specifically the daily 'cleanup' routines run by OS X - some other specific timed action setup by(?) IT, the end user(s)? Chip On Fri, 27 Oct 2017 16:22:36 +,

4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-27 Thread Perkins, Bradley D via 4D_Tech
We had to update a machine to Mac OS X Hi Sierra this week (cybersecurity mandate) on Tuesday of this week. This machine runs as a web 'client' on 4D 15.4. I have long standing controls in place to monitor the 4D application and keep it running. Since the OS update, 4D is hanging at 3am every

Re: POP3 Email Processing

2017-10-27 Thread Kirk Brooks via 4D_Tech
On Fri, Oct 27, 2017 at 7:05 AM, Epperlein, Lutz (agendo) via 4D_Tech < 4d_tech@lists.4d.com> wrote: > The main problem with 4D Internet Commands is: > It blocks the whole application while waiting for and downloading messages > from the server. ​I moved downloading emails into a separate 4D

Re: Database Settings Publishing Info IP Address - Tip

2017-10-27 Thread Timothy Penner via 4D_Tech
Do you have user settings enabled or are you using the settings embedded into the structure? If you are using the settings embedded in the structure then you are probably overwriting them each time you deploy a new structure. If you are using user settings then maybe try resetting/resaving

RE: POP3 Email Processing

2017-10-27 Thread Epperlein, Lutz (agendo) via 4D_Tech
The main problem with 4D Internet Commands is: It blocks the whole application while waiting for and downloading messages from the server. This is because the plugin interface of 4D is designed to be in cooperative mode. Even switching to v16 and using preemptive threads will not help, the

Re: POP3 Email Processing

2017-10-27 Thread Herr Alexander Heintz via 4D_Tech
Yep, parsing complex mails is a pain in the you know where… Keisuke helped somewhat with his GMime plugin: https://github.com/miyako/4d-plugin-gmime I intended to write a component making it easier to use, but did not get around to it yet. Either

AW: POP3 Email Processing

2017-10-27 Thread Flury Olivier via 4D_Tech
I agree that the 4D Internet Commands require some serious renovations... [Earth (4D Developers) @ 4D: can you hear us?] You may also have a look at the following technote: http://kb.4d.com/assetid=75713 -Ursprüngliche Nachricht- Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im

Re: Server Process "Frozen"-ish

2017-10-27 Thread Cannon Smith via 4D_Tech
We had another server do this this morning. It had stopped on DELAY PROCESS again, so I tried the RESUME PROCESS idea. It did get the process going again. However, some of the Administration Window UI was not updating properly. After the process resumed, the UI still didn’t update properly so

POP3 Email Processing

2017-10-27 Thread Douglas Cryer via 4D_Tech
Hi folks, After many years using OTRS for our help ticketing and change control we have recently decided to roll our own 4D based solution. This is partly a cost thing; partly a support/functionality thing and partly to get our teeth into a project where we can get used to the latest version

Re: Database Settings Publishing Info IP Address - Tip

2017-10-27 Thread Doug Hall via 4D_Tech
I just upgraded from 15.4 to 15.5 and now all of a sudden my Web Client doesn't keep any of the web settings (at least) set on the server machine. Any time I upgrade the server structure, it resets my web settings on my web client back to their default values. HELP! Am I doing something wrong?

Re: Server Process "Frozen"-ish

2017-10-27 Thread Jeffrey Kain via 4D_Tech
Yes. On Oct 27, 2017, at 3:23 AM, Epperlein, Lutz (agendo) via 4D_Tech <4d_tech@lists.4d.com> wrote: >> I am confident that 4D will find this bug and get it fixed. If it takes 6 >> months, then my >> upgrade plans will be on hold for 6 months. I’m in no hurry to upgrade right >> now. > > Is

RE: Server Process "Frozen"-ish

2017-10-27 Thread Epperlein, Lutz (agendo) via 4D_Tech
> I am confident that 4D will find this bug and get it fixed. If it takes 6 > months, then my > upgrade plans will be on hold for 6 months. I’m in no hurry to upgrade right > now. Is there a case (TAOW or anywhere) in progress? I'm afraid that this discussion on the list doesn't lead to a