Re: Native 4D code to convert numbers into text?

2020-06-16 Thread David Adams via 4D_Tech
uot; ") > > > = > // METHOD: DtoS_Get3 - return words for a 3 digit section xxx,XXX,xxx > // INPUT1: string - 0..999 > // INPUT2: integer - what 3 digit section are we in ...3,2,1 > > _O_C_STRING(3;$1) > _O_C_STRING(200;$

Native 4D code to convert numbers into text?

2020-06-16 Thread David Adams via 4D_Tech
I'm looking for code that converts something like this: 24120.10 into something like this: twenty-four thousand, one hundred and twenty point one The hope is to emulate Python's num2words. I figure anyone who had to write a check printing feature years ago might have something along these

Re: Defining and documenting Objects

2018-10-12 Thread David Adams via 4D_Tech
Just went back and looked at the thread. And, again, I see that there's huge amount of confusion and murk about what constitutes a "global" variable. Flow of control, type, and scope are all basic language design features. Scope in 4D ispeculiar. Scope is typically tied to a collection of

Re: Defining and documenting Objects

2018-10-11 Thread David Adams via 4D_Tech
83 > > https://bugs.4d.fr/fixedbugslist?branch=17 > > 2018/10/12 13:35、David Adams via 4D_Tech <4d_tech@lists.4d.com 4d_tech@lists.4d.com>>のメール: > I was looking for the an answer to "why don't my object variables on > fields automatically redraw when changed?"

Re: SEND PACKET in a multi-process environment

2018-10-11 Thread David Adams via 4D_Tech
I've written a lot of multi-process log writing code in my career. A lot. Enough to run into edge cases and performance issues of various sorts that are irrelevant to most. The standard way to implement a multi-process log goes like this: * Have one log writer process/thread. * That process is

Re: Defining and documenting Objects

2018-10-11 Thread David Adams via 4D_Tech
I don't follow the list any longer, but I do check in to look for answers. Today I was looking for the an answer to "why don't my object variables on fields automatically redraw when changed?" Didn't find it, does anyone have a workaround? While I was checking on my question, I ran into this

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17

2018-09-19 Thread David Adams via 4D_Tech
Just for the record, my 160x speed improvement came with pretty naive code. I loop to a record, build the text I need for that row, append the block to the BLOB, clear the text and hit the next row. All-in-all, only a couple of lines of extra code. After what everyone has contributed and

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17

2018-09-18 Thread David Adams via 4D_Tech
Thanks to John for adding writing to disk to Dani's test set. You make some good points about documents in the modern world. You can probably append to a document all day long and never see any change in speed. Years ago, the legend was that you didn't have to buffer before calling *SEND PACKET*

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17

2018-09-18 Thread David Adams via 4D_Tech
Dani, Thank you, for a very large value of "thank you." I woke up this morning all excited to write some tests, and you had already done the work. It's really great that you took the time to do the tests, to share your conclusions and your test method. Thank you! In my case, I'm not so kind or

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-17 Thread David Adams via 4D_Tech
Bernd, Thanks for the report, it's interesting and believable. In this case, I have to get the data into memory to send it... I guess I could write to a file, load that and then send it. Interesting concept, thanks! On Mon, Sep 17, 2018 at 4:53 PM Bernd Fröhlich via 4D_Tech <

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-16 Thread David Adams via 4D_Tech
On Sun, Sep 16, 2018 at 9:09 PM Olivier Flury via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Not really an answer to your question but a more general observation: > > Very often, when I have to do an export function towards other systems, I > end up in doing a bulk export. > > Either because I am

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-15 Thread David Adams via 4D_Tech
Hello people, thanks for all of the suggestions and feedback. Several of you pointed out that my thinking was in the fuzzy-to-nonsense range. I hate you all. So much. Not really, the comments were completely on the mark. I'm trying to find a decent default option that will work over a wide range

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-15 Thread David Adams via 4D_Tech
Thanks Keith, that all sounds pretty right to me too. And, yes, I'm chunking the pushes into batches to avoid a truly massive text object, when necessary. I don't know about with SQL Server and don't remember about MySQL, but with Postgres it's important to avoid single row inserts where possible.

Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-15 Thread David Adams via 4D_Tech
Short version: I need to load some fields from records into a big text thingy. The code runs on the server-side only. I'm keen to preserve RAM. What are the trade-offs in V17 between *GOTO SELECTED* record and *SELECTION TO ARRAY*? I've been using *SELECTION TO ARRAY*, but it's hard to read,

Re: v17 PDF-Manuals

2018-08-10 Thread David Adams via 4D_Tech
Thanks Wayne! ** 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: v17 PDF-Manuals

2018-08-10 Thread David Adams via 4D_Tech
I was just at the 4D site looking for PDF manualsand didn't find them. So I searched here and found this thread. I'm going to be away from the Internet and want to take documentation with me. I expect that I'll have some down time, and figured it might be a nice time to look at recoding some

Re: Who’s the Gestapo?

2018-07-15 Thread David Adams via 4D_Tech
Robert: * This list is run by 4D. * I've never heard that about the censoring, and it hasn't happened to me. Which it probably would have, if it were happening at all. Are you 100% certain that there's not technical glitch on your people' side? * I'd suggest *not* comparing people to the

Re: Chromium Embedded Framework in built applications question

2018-05-20 Thread David Adams via 4D_Tech
Thanks for the answers, I wondered if it might be to do with Blink...seems pretty heavy if you're not using it. Actually, we might have a couple of Web areas in there. I wonder if 4D detects that and includes/excludes the framework accordingly. Thanks for the R6 suggestion, we can try that out

Chromium Embedded Framework in built applications question

2018-05-19 Thread David Adams via 4D_Tech
A friend recently pointed out that built apps had unexpectedly increased in sizea lot. We used to come in at something like 150MB and are now at over 600MB. macOS, 16.3 R3 Digging into the ressoures in the built app, this package appears: Chromium Embedded Framework.framework ...at about

Re: 7-zip from within 4D

2018-04-29 Thread David Adams via 4D_Tech
On Wed, Jan 9, 2013 at 4:30 AM, Tony Ringsmuth wrote: > Wayne, > > I use 7zip extensively, driving it from 4D. > > What I do is this: After a 4D backup completes, from the On Backup Shutdown > database event, I initiate an encrypted 7-zip of the backup file, and some > info

Re: Bug or feature?

2018-04-05 Thread David Adams via 4D_Tech
Hey, long thread - I was even part of it at some point. I just wanted to send out a big *thank you* to Jeff Kain for starting it. (And to Chip for the awesome feature bug picture.) I'm writing now because I've been banging my head against the desk for a couple of days trying to get past a

Re: [Warning] Settings properties values on object field by object notation

2017-11-01 Thread David Adams via 4D_Tech
Thanks to TIm and Brian for responding here, always appreciated. There is no lack of clarity from 4D that the official channel is to post on the forums. Before that, it was bugs.4d.fr. That's always been clear. Heck, I can't even count the number of times I said that on this list over the years.

Re: [Warning] Settings properties values on object field by object notation

2017-11-01 Thread David Adams via 4D_Tech
> So, if you want to officially request such a change, it needs to go on the forums. Does 4D realize that *officially* ignoring their customers isn't exactly an example of great customer service. I tried the forums for about six months, I don't think I got _any_ information from 4D Engineering,

Re: Working with a 64 bit Integer in an object

2017-11-01 Thread David Adams via 4D_Tech
Yeah, if 4D isn't working, try NTK. In either case, if you can get at the value as raw text then you'll be able to find text --> 64-bit conversion code. The question in 4D at that point is how to store it. I know it's a field type, but can you touch it with anything other than SQL?

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
> it is an interesting point of view, > to frame it as an issue of the assignment operator being different, > as opposed to how objects and their properties are different "because they are references". I think that the real issue for a 4D programmer is that a record is a persistent data store and

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
On Wed, Nov 1, 2017 at 1:05 PM, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I thought it was also quite clear in Tim's reply which was reposted here, > that we failed you on this, and that we are in the process of updating the > documentation. > If changing a field and then

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
>I am going to post here a response I got from Tim Penner in the TAOW a bit earlier today. While it does not change my mind that this issue should be characterized as a bug, it does clarify what the issue really is. It's a bug. If 4D wants to document it as standard behavior, that's their

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
On Wed, Nov 1, 2017 at 10:23 AM, Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I can guess the answer to that. The engineer responsible looked at the > code and said, “yeah I can fix that, but it will be a lot of work”. And > somebody said, "OK then don’t bother. You’ve got more

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
> It looks like this bug ACI0097454 was marked as Standard Behavior on October 24th. Smells like a bug. Looks like a bug. Sounds like a bug. Walks like a bug. I mean, if you have a light switch that gives you a shock every time you touch it, you wouldn't say "Oh, it always does that. It's

Re: [Warning] Settings properties values on object field by object notation

2017-10-31 Thread David Adams via 4D_Tech
On Tue, Oct 31, 2017 at 8:21 AM, Alberto Bachler via 4D_Tech < 4d_tech@lists.4d.com> wrote: Just a quick note of thanks for posting this behavior to the list. On Tue, Oct 31, 2017 at 3:49 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: ...and to you too John for posting that you

Re: [Warning] Settings properties values on object field by object notation

2017-10-30 Thread David Adams via 4D_Tech
On Tue, Oct 31, 2017 at 3:49 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > And, yes, I too was told that the engineers were leaning to declaring this > as standard behavior. Why? I have not a clue. > I'm failing to come up with any good arguments in support of such a posture.

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-29 Thread David Adams via 4D_Tech
Jeff, Now that's a smart idea. I'm interested. ** 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:

Re: info.plist

2017-10-29 Thread David Adams via 4D_Tech
I've been working with BUILD APPLICATION a lot lately, so a couple of notes: * 4D _will_ record an error in the log if the path to the license files is wrong or, for a built single-user app, the path to the engine is wrong. * 4D will _not_ record an error if the path to your custom icons is

Re: [Snippet] Process_IsPreemptive

2017-10-29 Thread David Adams via 4D_Tech
Hello! The 1980s called, they want their naming conventions back! ;-) ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options:

PROCESS PROPERTIES origin = -29

2017-10-28 Thread David Adams via 4D_Tech
I've just discovered an unexpected process origin value of -29. It's not any any version of the docs that I can find. Although hunting for a -term is a challenge. Anyway, it's coming up for the Compiler window process. Has anyone else seen any other use of this origin code? Thanks

Re: [Snippet] Process_IsPreemptive

2017-10-28 Thread David Adams via 4D_Tech
Yeah, well, the code above doesn't work because of what the kids call a "bug". PROCESS PROPERTIES(Current process;$name;$state;$time;$mode) Should (obviously) be PROCESS PROPERTIES($process_id;$name;$state;$time;$mode) And that's what I get for *not* writing unit tests for this "simple"

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

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: Tab bar in methods

2017-10-26 Thread David Adams via 4D_Tech
Nice! Thanks John. Thanks Tim. Much appreciated. ** 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:

Tab bar in methods

2017-10-26 Thread David Adams via 4D_Tech
I've been noticing a "bug" for months in the Method Editor. This might just be an R-track feature, not sure. Anyway, if you open a method named "My_Method", you see the name twice. It's up in the window title and then again inside the window. It looks weird and I assumed it to be a cosmetic bug

Re: Server Process "Frozen"-ish

2017-10-25 Thread David Adams via 4D_Tech
On Thu, Oct 26, 2017 at 7:45 AM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: Thanks for chiming in. Given the number and nature of the people reporting this bug, it's clearly a real bug. Can you give us some insight into what efforts 4D is making internally to track this down and

Re: Tip: Exporting to a target folder in a package

2017-10-24 Thread David Adams via 4D_Tech
Have you tried Select document? It lets you navigate inside of packages. As far as code goes, you can do whatever you like with a package. I've just been doing that week, doing post-build cleanup. If I remember correctly, the path is something like: ...your long

Re: QUERY into variable vs. Records in Table

2017-10-19 Thread David Adams via 4D_Tech
> And all it's doing is waiting for a relatively rare condition to happen (and a record to appear in this table). It might > happen at most once or twice per day, maybe only once every few days, but when it happens it has to be dealt with > immediately. It's such a waste to be constantly

Re: PDF in Web Area not displaying on a Mac

2017-10-19 Thread David Adams via 4D_Tech
John, This all sounds very familiar & is why I went with Rob's viewer plug-in. http://www.pluggers.nl/product/pdf-viewer/ This plug-in isn't crazy expensive like some of the PDF generating tools. (I think Rob faces high licensing costs of his own on those.)

Re: PDF in Web Area not displaying on a Mac

2017-10-18 Thread David Adams via 4D_Tech
On Thu, Oct 19, 2017 at 10:51 AM, Wayne Stewart via 4D_Tech < 4d_tech@lists.4d.com> wrote: > John, > > I use Rob Laveaux's pdf viewer plugin rather than the web area.I use Rob > Laveaux's pdf viewer plugin rather than the web area. +1

Re: v13+ unti testing UI

2017-10-18 Thread David Adams via 4D_Tech
Chip, Your idea is vastly simpler to implement in versions of 4D with CALL FORM and CALL WORKER. That's somewhere from the late 15 R series onwards and V16.0+. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Server Process "Frozen"-ish

2017-10-18 Thread David Adams via 4D_Tech
Cannon, Thanks for being so systematic about tracking down this problem and keeping the list informed. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html

Re: 4D v16.2 false record locks

2017-10-15 Thread David Adams via 4D_Tech
ila the bug has been fixed. > >>> > >>> Now in the context of this thread, this appears to be an anomaly? It > does > >>> say to me that 4D does heavily prioritize the bugs in their bug list. > For > >>> example, you might have noticed that in 16.2 the is

Re: v13 - odd compiler error

2017-10-12 Thread David Adams via 4D_Tech
Check if there is a typo and you've declared $43 instead of $3. The errors you describe are almost exactly what I would expect in this case. Not that I've ever done anything like that...but it happened to a friend once or twice.

Re: NB: Pre-emptive mode hassle

2017-10-12 Thread David Adams via 4D_Tech
Right, about the custom code scanner/pre-processor/compiler macro idea, I forgot to mention that you could use such a tool to remedy problems in 4D. For background, some of this takes a syntax in your code that enables you to identify the following: -- Required parameters -- Optional parameters --

Re: NB: Pre-emptive mode hassle

2017-10-12 Thread David Adams via 4D_Tech
> Also trying to justify reducing the size of the process variable table. > Supposedly having 1 - 10 object variables was far superior to 100 process > variables. Who the hell cares if your process variable table is 1MB in size > when everyone has over 4,000MB to work with? And don’t try to say

Re: Min/Max for Date Fields in 4D

2017-10-12 Thread David Adams via 4D_Tech
On Thu, Oct 12, 2017 at 6:57 AM, Arnaud de Montard via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > It's a solution if the selection is huge (is it?). But sort selection > (I've always found 4d sort is slow), then 2 selection to array, that's 3 > server calls, at end. I'd prefer selection to array

Re: Min/Max for Date Fields in 4D

2017-10-12 Thread David Adams via 4D_Tech
Alan, I haven't followed this thread closely, so apologies if I say something silly. * Is it important to optimize this operation past the sensible solution you've already tried? * Since you already have a sorted selection, why no use that and SELECTION RANGE TO ARRAY? So, use SELECTION RANGE

Re: Making LOG EVENT thread-safe

2017-10-11 Thread David Adams via 4D_Tech
Hey John, we ended up testing different things, I didn't ever get too far into the memory side. (Thanks for that, good to know.) I retested again last night and I can kill 4D from entirely legal code. I'll show you at dinner, if you like. There is a *concurrency bug*. I'm not convinced that

Re: NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
> This would be super useful!. Great feature that would make it much easier to adapt methods so that they would run in > preemptive mode. The 4D engineers probably never even thought about doing something like this. If you don't mind and are on the forums, would you mind putting in a feature

Re: NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
Thanks Tim! More findings: * I don't get it. I really am unclear how exactly things are supposed to be set up. It's confusing, at least to me. I've tried diagrams and writing it out...but I'm still not clear. * I want to use the 'indifferent' execution mode everywhere I can, but that's not

Re: NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
Right, I just scanned a big code base for methods passed to CALL WORKER (some my code, some not) and found that 5 out of 7 won't run in preemptive mode. Oh crap. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread David Adams via 4D_Tech
Hey John, Yeah, I pretty well guessed something like that was going on in your case...I mostly answered for the sake of the archives. I often ask questions and am offered well-meaning and sensible answers...but there's almost as often a good reason why I'm bearing down on the particular point

Re: NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
Typical, my "summary" is longer than the original. ** 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:

Re: NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
To summarize the bit above: -- If you pass non-preemptive code to a pre-emptive worker, it won't work. -- That's not a bug, that's a limitation. -- 4D doesn't automatically handle this situation well, but they've said that they'll make ON ERR CALL work, which seems like a reasonable response.

NB: Pre-emptive mode hassle

2017-10-10 Thread David Adams via 4D_Tech
I've finally tracked down a weird problem. I have some code that I'm (still) trying to run in a worker. I've got the system set up so that I can launch in cooperative or preemptive mode based on a setting. This way, if there's a problem with preemptive mode, we can tweak a config setting and try

Re: Post Key command not working in converted 4Dv16 database

2017-10-10 Thread David Adams via 4D_Tech
Hey John, if you still need to fix what you described, CALL FORM ought to work. Just past what method you want to run and the target window's form will run it through EXECUTE for you. doesn't mean that POST KEY shouldn't be fixed if it's broken, of course.

Re: Query By Attribute vs Map NULL values to blank values

2017-10-10 Thread David Adams via 4D_Tech
> I still do not get why the R4 documentation for Query by attribute discusses how a # query will function if the "Map null > to blank” checkbox is or is not checked it the checkbox does not exist for an object field. John, random thought: Object fields aren't supported in 4D's SQL. So any

Re: Making LOG EVENT thread-safe

2017-10-09 Thread David Adams via 4D_Tech
> As a side note, I am sure you are aware of this, but by killing the worker every 100,000 calls, out of the 2 million calls > nearly all of the log entries are missed as they are in the queue when the worker is killed. I am getting at most 24,000 > log entries in the text file. I've lost track,

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
Add, On the entirely likely chance that my first answer sounded insufferably arrogant - just wanted to addWell, I'm sleep deprived like I can't remember, and massively jet lagged. I was trying to say that this whole area is one of my *few* areas of genuine expertise. I don't have many. Just

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
elf. On Mon, Oct 9, 2017 at 3:33 AM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > > On Oct 8, 2017, at 4:42 PM, David Adams via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > What I'm concerned about is that CLOSE DOCUMENT may be > &

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
Hey John, thanks for the great post and all the work. There's no reason for other people to know this, but John and I have *totally* different coding styles. So I was really pleased he went through my example and reworked it in his own way. That he turned up some problems is instructive because

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
Add, Thanks a lot for chiming in! It's always good to hear from you guys in the US office. I'm not sure what problem your solution is solving. I'm not trying to be flip, I just want to make sure to focus on the meat of the issue. A really common approach to log writing is as follows: Have one

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
I was never focused on LOG EVENT (?) I've never used the command and would prefer not to in this case. I only brought it up because it would potentially well with Loggly. (I'm not committed to Loggy and may not stick with that platform, for what that's worth. But it's worth trying for now.) I

Re: Making LOG EVENT thread-safe

2017-10-08 Thread David Adams via 4D_Tech
I've posted about my various worker log problems here and on some other threads and even posted my sample database for review. Lately, John Baughman has really been sinking his teeth into this issue and has spent a *ton* of time working on it. Thank you John! The news is bad, but I figured I'd

Re: 4D v16.2 false record locks

2017-10-06 Thread David Adams via 4D_Tech
Hey John, Thanks again for trying. I kill the worker from *within* the worker *after* closing the file. It *usually* works. But "usually" is worthless when the consequences of it not working are a dead server. 4D has accepted it as a bug in, I think 16.0. they just haven't fixed it. For now,

Re: How do workers die?

2017-10-06 Thread David Adams via 4D_Tech
> > Perhaps I am misunderstanding your question. Do you mean after a worker > has been killed with KILL WORKER? > Clearly, I asked my question poorly as you and Julio both found my question unclear in the same way. (Or perhaps it's just that it's unclear to people who can speak Portuguese?) In

Re: How do workers die?

2017-10-06 Thread David Adams via 4D_Tech
Julio, Thanks for taking a stab at it. I should have been more clear, I mean when workers are killed. I do this from within the worker to try and have an orderly shutdown. Your reading of the docs is correct though. Workers are a thread of execution, like any other process, but 4D has its own

Re: 4D v16.2 false record locks

2017-10-06 Thread David Adams via 4D_Tech
Again: Start worker Open file. Use file Close file. Kill worker Start worker again *** FIle lock conflict *** 4D's accepted it as a bug as of some months back. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: 4D v16.2 false record locks

2017-10-06 Thread David Adams via 4D_Tech
Hey Chip, thanks or chiming in. I've always been disciplined about opening and closing files on my own, I have no idea what 4D's defaults are on this...or if there is even a documented (promised) behavior. The traces of old, dead workers I was referring to *might* not actually exist and that

How do workers die?

2017-10-06 Thread David Adams via 4D_Tech
Does anyone know or can they find out the following? What happens when workers die? 4D has at least two different approaches to this: * HTTP processes wait before dying, but then die if there are no new requests after some time. (Or at least they used to.) Meaning, an HTTP process may or may not

Re: 4D v16.2 false record locks

2017-10-06 Thread David Adams via 4D_Tech
> Not an anomaly. John & Neil, thanks for the reports, I find them encouraging. We're dealing with somewhat different situations. You're going through US Tech Support, which I have no contact with and you're using the TAOW, which we don't currently have access to in AU/NZ. The business case for

Re: What to do about users who won't follow instructions?

2017-10-04 Thread David Adams via 4D_Tech
Steve, That looks great! Thanks for the screen shots, they really show what you were talking about. Curious: Do the pictures show up on the NUG? If we can post pictures there...I'd like to know. ** 4D Internet Users Group (4D

Re: What to do about users who won't follow instructions?

2017-10-04 Thread David Adams via 4D_Tech
On Wed, Oct 4, 2017 at 5 :06 PM, Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Pat, > > Completely agree on your comment about video! > > > > Let me know if you would like to see a screen shot or anything... > That sounds *awesome*. Any chance that you would do a 4DMETHOD or 4D

Re: 4D v16.2 false record locks

2017-10-04 Thread David Adams via 4D_Tech
> If you have a bug that you really want fixes: you need to work with Tech Support. If you don’t: then it’s just wishful thinking. I have done this. It's a bug that 4D should care about *way* more than me. It crashes the server. Easily Submitted to tech support with a demo database, etc. It is

Re: 4D v16.2 false record locks

2017-10-04 Thread David Adams via 4D_Tech
> It is what it is. What’s more important, getting the bug fixed or bitching about customer service? > I always vote for doing whatever it takes to get bugs fixed. Agreed! But I've found _nothing_ that works. Ever. I've jumped through all of the hoops down the year, it hasn't worked. My crashing

Re: 4D v16.2 false record locks

2017-10-04 Thread David Adams via 4D_Tech
Dennis, That's great to hear. This is definitely not my experience...perhaps they don't want to hear from me. I'm glad that you're getting good support, that's encouraging. ** 4D Internet Users Group (4D iNUG) FAQ:

Re: 4D v16.2 false record locks

2017-10-03 Thread David Adams via 4D_Tech
Tim, I'm with John on this one. The payoff for sending in bug reports and feature requests is incredibly low. Zero feedback and results are rare. *No matter what hoops are jumped.* 4D the company gives the _very_ clear impression that they just don't want to know. If they do want to know,

Re: 4D v16.2 false record locks

2017-10-03 Thread David Adams via 4D_Tech
> That’s not his job. It is the job of every 4D developer to report bugs to 4D by opening a tech support case. > And to refuse to close that tech support case, or allow it to auto close, until the bug is fixed. Sigh. Brining a fresh new flavor to the concept of "world class" customer service...

[Snippet] Process_IsPreemptive

2017-09-30 Thread David Adams via 4D_Tech
I realized that I wanted to know for some error logs if the current process is preemptive (thread-safe) or not. So I checked PROCESS PROPERTIES and, yes, it will tell you. But it uses bit math. Oh no! I always run away from bit math...and I decided that I was being silly to do so today. The "math"

Re: Love 4D's math interpretation...

2017-09-29 Thread David Adams via 4D_Tech
Crap, it's documented. And, as we all know, 4D doesn't document or discuss things that might change in future versions for fear of frightening the children. But this is documented, so I guess we're safe relying on it as is ;-) **

Re: Making LOG EVENT thread-safe

2017-09-27 Thread David Adams via 4D_Tech
Related wrinkleI'm now wondering about something else: Does KILL WORKER completely kill a worker, or does it sometimes just hurt it really, really badly? I have been working under the assumption that when KILL WORKER completes, that the worker is *totally* gone. Meaning, no process-level

Re: Making LOG EVENT thread-safe

2017-09-27 Thread David Adams via 4D_Tech
Hey, David Porter spotted a bug in my code and I wanted to push this part of the thread up to the list for the archives, etc.: On Tue, Sep 26, 2017 at 5:05 PM, David Porter wrote: > Thanks for posting the LogWorker code, it has been fun experimenting with it. > > I have

Re: Making LOG EVENT thread-safe

2017-09-27 Thread David Adams via 4D_Tech
Hey Tim, > Consider the situation where you have a mission critical system that is up 24/7 and you need logging to always work every second of the day. > How do you handle the situation where the stand-alone log writer app crashes, is not running due to a machine restart, or for whatever reason

Re: Making LOG EVENT thread-safe

2017-09-27 Thread David Adams via 4D_Tech
d "task id" is used to link such lines. > > it's in the documentation. > > http://doc.4d.com/4Dv16/4D/16.1/Appendix-E-Description-of- > log-files.300-3373556.en.html > > > 2017/09/26 23:07、David Adams via 4D_Tech <4d_tech@lists.4d.com> のメール: > > Not sure wh

Re: Making LOG EVENT thread-safe

2017-09-26 Thread David Adams via 4D_Tech
Chip's right about server-side code not needing network bandwidth. I was jumbling a few of my stories unclearly. Yes, we're starting with server-side only process getting logged, but that will change. Once you want to keep error, access, and event logs and tie them together, it's nice to be able

Re: Making LOG EVENT thread-safe

2017-09-26 Thread David Adams via 4D_Tech
On Tue, Sep 26, 2017 at 10:38 AM, Jeremy Roussak via 4D_Tech < 4d_tech@lists.4d.com> wrote: > David, > > Thanks for the explanation. Your second point (no reason to have the data > in 4D) strikes me as more theological than practical, Depends on your situation. I nearly killed a system once

Re: Making LOG EVENT thread-safe

2017-09-26 Thread David Adams via 4D_Tech
> As stupid as it sounds, another option is to push the log entries to something else locally - even a stand-alone built 4D app - and let it write the disk files. > Then you could use a service with a custom agent, like SumoLogic or Splunk. Actually, that's not a terrible idea at all...who cares

Re: Making LOG EVENT thread-safe

2017-09-26 Thread David Adams via 4D_Tech
> At least until a better solution comes along. I have zero reason to assume that this bug will ever be fixed. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html

Re: Making LOG EVENT thread-safe

2017-09-26 Thread David Adams via 4D_Tech
> Not having my server crash sounds like a very good reason to use records. > At least until a better solution comes along. Plan B in this case is to push the data to Loggly via HTTP. As stupid as it sounds, another option is to push the log entries to something else locally - even a stand-alone

Re: Making LOG EVENT thread-safe

2017-09-25 Thread David Adams via 4D_Tech
On Mon, Sep 25, 2017 at 6:06 PM, Jeremy Roussak via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Please forgive me if I’m being dim, but isn’t a solution (maybe not the > best, but a solution) to maintain the log as records in a table, which is > periodically emptied into a file by a process which

Re: Making LOG EVENT thread-safe

2017-09-25 Thread David Adams via 4D_Tech
On Mon, Sep 25, 2017 at 12:04 PM, Epperlein, Lutz (agendo) via 4D_Tech < 4d_tech@lists.4d.com> wrote: I asked because we use a little own implementation of writing log files. This is all before V16. We use semaphores to avoid race conditions while writing to the file. And one of our first projects

Re: Making LOG EVENT thread-safe

2017-09-25 Thread David Adams via 4D_Tech
On Mon, Sep 25, 2017 at 10:43 AM, Epperlein, Lutz (agendo) < lutz.epperl...@agendo.de> wrote: > A question: > What other approaches did you try to implement a logging feature using > preemptive threads. I'm pretty sure there is something buried in the > threads of this mailinglist but I'm not

Making LOG EVENT thread-safe

2017-09-25 Thread David Adams via 4D_Tech
I finally got around to checking, and LOG EVENT is not a thread-safe command. Pity! It would be very handy if this command were usable from a preemptive process as it would give us a great way to stream log data out to the system for collection by an "agentless" (cough-cough) tool like Loggly.

Re: SVG Scale

2017-09-20 Thread David Adams via 4D_Tech
> Regarding SVG scaling, I haven’t specifically used D3, but I’m sure it makes scaling issues easier. However, scaling in SVG is still something > that requires you to think through the relationships of your objects. It isn’t magic, and it can’t guess what you have in mind. Well said. Also, I

  1   2   3   4   >