Search found 797 matches

by Ron Melby
04 Nov 2021 11:48
Forum: Plugin Discussions
Topic: require in plugins
Replies: 8
Views: 672

Re: require in plugins

for k, v in pairs(_etbl) do print(k, ' ', type(k)) end results in: matADR string ****new record**** index from record: matADR string _etbl[index]: nil from record: matADR *error* --function rtv_info_rcd-- info_rcd what: Lua info_rcd namewhat: global info_rcd name: matADR info_rcd src: @C:\ProgramDat...
by Ron Melby
04 Nov 2021 11:23
Forum: Plugin Discussions
Topic: require in plugins
Replies: 8
Views: 672

Re: require in plugins

it has a great deal to to with the placement of require statements in code I do not write, since this bit of code is seminal to the actual problem of profiling code, and when I should enumerate _G, and what to do if the function is not found in _G, and determining if this is lua internal or fh inter...
by Ron Melby
03 Nov 2021 23:24
Forum: Plugin Discussions
Topic: require in plugins
Replies: 8
Views: 672

Re: require in plugins

the first part relatively painless, I have hit a surprising road block, and it is compounded by the fact that you cant really debug a program that does debug. I hope I have enough here that you can follow what is occuring and see my problem. _etbl entry: _etbl is an enumeration of _G (entry under di...
by Ron Melby
30 Oct 2021 00:30
Forum: Plugin Discussions
Topic: require in plugins
Replies: 8
Views: 672

Re: require in plugins

uff da. ok, thanks, we go the long route.
by Ron Melby
29 Oct 2021 00:49
Forum: Plugin Discussions
Topic: require in plugins
Replies: 8
Views: 672

require in plugins

as you may or may not know, I make extensive use of requires. mine are """"""non-standard"""""" but any program of any usefulness will need some requires, lfs, iup, luacom, something. almost universally, I put them at the top lines of my plugin so the first thing a plugin does is "bind" the required...
by Ron Melby
12 Oct 2021 12:10
Forum: General Usage
Topic: Direct Line Report
Replies: 3
Views: 770

Re: Direct Line Report

will Tools>How Related work for you? it is pretty compact.
by Ron Melby
21 Sep 2021 23:06
Forum: Plugin Discussions
Topic: Issue with Lumped Source Splitter
Replies: 39
Views: 4731

Re: Issue with Lumped Source Splitter

5.3 has a limit in program size as well, in 5.1 it looks to be about 1.24 gig what is it in 5.3? you cannot malloc in 5.3 so you are fixed memory there as well. I have spent months on that tipping point in 5.1, and while it may be upwards to double that its no better, I hear the same problems in gc ...
by Ron Melby
21 Sep 2021 20:29
Forum: Plugin Discussions
Topic: Issue with Lumped Source Splitter
Replies: 39
Views: 4731

Re: Issue with Lumped Source Splitter

__g = collectgarbage('count') if __g >= 622380 then collectgarbage('collect') end I do my table writing and table saving gc like this. the idea is to keep it at around 3/4 to 5/8 of a gig total run space. best time I can get after weeks of test. I can strategically place this, so for general stuff, ...
by Ron Melby
20 Sep 2021 16:58
Forum: Plugin Discussions
Topic: Using a named list to add a fact to each indi in the list
Replies: 15
Views: 1719

Re: Using a named list to add a fact to each indi in the list

yes, clearly it does, but is undefined behavior, and may not always work, and brings no light to people trying to understand code. It works by serendipity, and that is a very hard mathematical function to produce a proof for.
by Ron Melby
20 Sep 2021 14:31
Forum: Plugin Discussions
Topic: Using a named list to add a fact to each indi in the list
Replies: 15
Views: 1719

Re: Using a named list to add a fact to each indi in the list

paul, in CheckDuplicate line 106 you compare eq nill, and that must be a typo. it cant work correctly. either == nil or function CheckDuplicate(table, ptr) local id = fhGetRecordId(ptr) if table[id] return true else table[id] = id return false end end or function CheckDuplicate(table, ptr) local id ...
by Ron Melby
16 Sep 2021 12:07
Forum: Plugin Discussions
Topic: Find Duplicate Individuals; why so long time?
Replies: 6
Views: 879

Re: Find Duplicate Individuals; why so long time?

nearly 3 million comparisons.

thats a little over 53000 comparisons per minute.
by Ron Melby
15 Sep 2021 15:38
Forum: Plugin Discussions
Topic: Calling a plugin from a plugin (again...)
Replies: 12
Views: 1301

Re: Calling a plugin from a plugin (again...)

there is no doubt that fh has a huge problem with versioning as it is. It would certainly exacerbate the issue, until it became bad enough to resolve. fh is small potatoes in the pc world. Even the large potato folks have issues with bugs and versioning, and yet, here we are, us merry band of ruffia...
by Ron Melby
15 Sep 2021 14:21
Forum: Plugin Discussions
Topic: Calling a plugin from a plugin (again...)
Replies: 12
Views: 1301

Re: Calling a plugin from a plugin (again...)

I would hazard a guess that if such a scheme would be adopted, that requires that would be approved at the store level would be reviewed in like fashion, the text file run thru programs to insure their were not any malware embedded, and that even given that extra circumstance of a 'require lib' for ...
by Ron Melby
15 Sep 2021 13:52
Forum: Plugin Discussions
Topic: Calling a plugin from a plugin (again...)
Replies: 12
Views: 1301

Re: Calling a plugin from a plugin (again...)

as I have said, I am well aware of that massive shortcomining. Seems like if you have to run a plugin out of the folder plugins, and to kick it off it must have an fh_lua extension, that a subfolder named require or include would be a mechanism to run down the garden path to reusability. loadrequire...
by Ron Melby
15 Sep 2021 11:09
Forum: Plugin Discussions
Topic: Calling a plugin from a plugin (again...)
Replies: 12
Views: 1301

Re: Calling a plugin from a plugin (again...)

I understand it is not acceptable from the store, but it could be. perhaps loadrequire.... in any case a system could be made to cover such common things in the language. if he calls a program from a program, it would not be available from the store, either, its same-same. And there are a lot of goo...
by Ron Melby
14 Sep 2021 23:59
Forum: Plugin Discussions
Topic: Calling a plugin from a plugin (again...)
Replies: 12
Views: 1301

Re: Calling a plugin from a plugin (again...)

I do my common function modularly by use of require. require '_STD_HDR' require '_STD_SYS' require '_STD_GPS' require '_STD_PRT' require '_STD_TBL' and so on. If you need to have variables from the calling program in the called program, you could always set and get them in _G, as well. They die when...
by Ron Melby
13 Sep 2021 12:18
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

the hidden field would be the full key, so for example: ADDR."St.Margarets...".sub ADDR."St.Margarets....".lng and so on, for each row. it wouldn't be an optional see or not see thing. Just a big shortcut in computing, so when you choose lng I do not have to backtrack to calculate the key. If you re...
by Ron Melby
13 Sep 2021 10:24
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

This is a rudimentary mockup of a screen I am trying to create. mt.png opt, will be the only input/output field on the line, in this screen. I believe I have a plan to work out the indentation. I have looked at iup.matrix and iup.tree. I do not believe iup.tree will work for this. here is the link f...
by Ron Melby
08 Sep 2021 23:40
Forum: Plugin Discussions
Topic: Map Life Facts - filtering?
Replies: 38
Views: 4120

Re: Map Life Facts - filtering?

Mike, not sure how your new one does it. I did not remove the loc file, simply said yes, geocode all for addys-source, and geocode all for place-records. prior to running I had one address that was hand coded. it reports all coded for both. would it be different if I renamed the loc and started from...
by Ron Melby
08 Sep 2021 18:42
Forum: Plugin Discussions
Topic: Map Life Facts - filtering?
Replies: 38
Views: 4120

Re: Map Life Facts - filtering?

3. If a plot is Not Found, the left-most comma-separated Location part is successively removed for each auto-geocode; 1) say my PLAC is GBR, , Bethersden, , Kent, I would suppose you would not tear off GBR, and go down the line, so if it is not found in GBR by reduction you wouldnt code the first Be...
by Ron Melby
08 Sep 2021 16:10
Forum: Plugin Discussions
Topic: Map Life Facts - filtering?
Replies: 38
Views: 4120

Re: Map Life Facts - filtering?

sounds like its pretty snazzy, I have loaded it, and am thinking about renamin my loc file and running this version from scratch. two questions arise, maybe 2.5. assume that my bias is us 1) then; even though you know I dont say my PLAC is GBR, , Bethersden, , Kent, UK. when you start whittling each...
by Ron Melby
03 Sep 2021 21:51
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

thanks Mike, now it seems logical, at least a little.

I am going to have to come up with something to figure out how to space it, to align the header and fields.
by Ron Melby
03 Sep 2021 17:42
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

function _sfl_CTL(_WS) local hdrcol = iup.label { title = _hdr_col, gaplin = '0', gapcol = '0', expand = 'NO', alignmentcol = 'ALEFT', alignmentlin = 'ATOP', multiline = 'NO', } local hdr_col = iup.hbox{hdrcol} local sfl = iup.vbox{iup.scrollbox{_WS}} local btn_ok = iup.button { name = 'ENTER', titl...
by Ron Melby
03 Sep 2021 16:15
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

as it happens, I don't know better than that, Mike, now I do.
by Ron Melby
03 Sep 2021 15:28
Forum: Plugin Discussions
Topic: iup dialog questions. (I think)
Replies: 21
Views: 1783

Re: iup dialog questions. (I think)

--*add is the problem for now. in vfy_parms, I build the header for columns in my subfile _hdr_col. I then put it in an hbox, because what else would I put it in? I intend to display it. (still dont know why I have to hbox things twice. but not an issue at present) as you can see the space is there ...