Search found 314 matches

by Ron Melby
15 Jun 2019 13:19
Forum: Plugin Discussions
Topic: table lookups (when we was fab) or memoization (gangnam style)
Replies: 0
Views: 37

table lookups (when we was fab) or memoization (gangnam style)

you have all been hammered to death by my matRLT (materialize relation) function matRLT(iptr, ix) local ix = ix or 1 tblRLT = tblRLT or {} cwrlt = cwrlt or 0 --[[ relationship ]] local rlt = '' --[[ pre = pre replacement ]] local pre = '' --[[ pst = post replacement ]] local pst = '' --[[ rpl = repl...
by Ron Melby
15 Jun 2019 12:48
Forum: Plugin Discussions
Topic: any unintended consequences?
Replies: 4
Views: 192

Re: any unintended consequences?

ok, I have cleaned up my standard functions to dispense with thisPTR

no noticable difference yet.

there will be a new post in this continuing saga, in search of speed.
by Ron Melby
14 Jun 2019 06:00
Forum: Plugin Discussions
Topic: any unintended consequences?
Replies: 4
Views: 192

Re: any unintended consequences?

So if I dispense with thisPTR I would not need a
local iptr = iptr (as a speedup measure?)
by Ron Melby
13 Jun 2019 12:19
Forum: Plugin Discussions
Topic: any unintended consequences?
Replies: 4
Views: 192

any unintended consequences?

2 situations, sometimes I want to know values, and sometimes I want to write them out. I have chosen a trivial example it is offset by ****. rtvSEX = retrieve sex matSEX = materilize sex (write it out) so, given each circumstance, I can either inspect it, or write it out (when called 'directly') any...
by Ron Melby
05 Jun 2019 00:56
Forum: Plugin Discussions
Topic: Documentation
Replies: 3
Views: 187

Documentation

I see some smail bits of documentation of code here and there. and understanding I have spent my life in bigger iron and all this evironment is new to me... What is the frontrunner or THEESTANDARD documentation tool in LUA, is it LDOC (I see a lot of @s) or some of the other many tools? I see ColeVa...
by Ron Melby
05 Jun 2019 00:10
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

I have been giving this a bit of a think. The way you have described the situation, as linked list now makes sense to me. How long that will stay in my head is anyones guess.

Thanks for the explanation. Having gotten a so so base of function, the next phase is on. I will make a separate thread.
by Ron Melby
02 Jun 2019 22:00
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

but a date is a date, it has properties a famc or fams ultimately points to a FAM, its simply a matter of what side of the sheets you are on. a famc is a fam a fams is a fam there are no famc record types there are no fams record types so ultimately i think of it (incorrectly) because there is a dis...
by Ron Melby
02 Jun 2019 15:48
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

I should but I don't. I have some serious confusion over when is a "not pointer" not a pointer. they don't act like pointers in some cases, in some cases they do. and I think of the different tags etc as objects. In my mind I was comparing the FAM object to the FAM object. Sometimes I reco...
by Ron Melby
02 Jun 2019 12:33
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

I do think they are pointing to the link to family record of gordy and neva I read all the FAMCs. I then look for those that are prefaced by adoptions 1 ADOP 2 NOTE by the Nelson C. Pike family of MN (likely after her parents divorce, as Edna had no money to raise her) 2 FAMC @F1796@ 3 ADOP BOTH 1 A...
by Ron Melby
01 Jun 2019 12:58
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

my understanding is that if I set the value to nil, it no longer exists, if I set it to null, it is rather like a '' (empty). its the reason I use pairs instead of ipairs. for k, v in pairs. k,v is: 1, ptr 2, ptr 3, ptr so: if I do the following: setnull I have 1, ptr 2, null 3, null if I do the fol...
by Ron Melby
31 May 2019 22:49
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

I see equivalent pointers that are not set to nil.

they walk right right around the if, how can that possibly be true?
by Ron Melby
30 May 2019 02:33
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

not yet handy with the idiom. function rtvFAMPtr(iptr) local thisPTR = iptr:Clone() local fptr = fhNewItemPtr() -- ALL FAMC local cptr = fhNewItemPtr() -- space pointer local aptr = fhNewItemPtr() -- ADOP local pptr = fhNewItemPtr() -- PEDI fptr = fhGetItemPtr(thisPTR,'~.FAMC') if fptr:IsNull() then...
by Ron Melby
29 May 2019 00:32
Forum: Plugin Discussions
Topic: and I own this computer.
Replies: 6
Views: 522

Re: and I own this computer.

There it is: ptrRCD = fhNewItemPtr() ptrNCHI = fhNewItemPtr() for _, VAL in ipairs ( { 'INDI'; 'FAM'; } ) do ptrRCD:MoveToFirstRecord(VAL) while ptrRCD:IsNotNull() do ptrNCHI:MoveTo(ptrRCD,'~.NCHI') if ptrNCHI:IsNull() then ptrNCHI =fhCreateItem('NCHI', ptrRCD) end fhSetValueAsText(ptrNCHI, fhCallBu...
by Ron Melby
28 May 2019 17:01
Forum: Plugin Discussions
Topic: and I own this computer.
Replies: 6
Views: 522

Re: and I own this computer.

Thanks Dave,

good starting point for me, I will give it a shot.
by Ron Melby
28 May 2019 15:04
Forum: Plugin Discussions
Topic: and I own this computer.
Replies: 6
Views: 522

Re: and I own this computer.

it sort of seems simple enough, but truthfully all the monkeying around I been doing I have never wrote or updated a tag, not sure how to do that, I have only read them. the program its pretty easy, codewise (except for exceptions) INDI, count children for ALL FAMS (I have that routine) if tag is th...
by Ron Melby
28 May 2019 14:37
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

Re: All in the Family

I knew I was logically asking for:
(iptr,'~.ADOP[?].FAMC[?]')

but the plan was to do just as you describe, I just thought you might have a slick all in one way to do it.
LOL.
by Ron Melby
27 May 2019 23:39
Forum: Plugin Discussions
Topic: All in the Family
Replies: 14
Views: 725

All in the Family

I have set up a test. I expect the number 3 1 ADOP 2 NOTE by the Nelson C. Pike family of MN (likely after her parents divorce, as Edna had no money to raise her) 2 FAMC @F1796@ 3 ADOP BOTH 1 ADOP 2 FAMC @F229@ 3 ADOP BOTH 1 FAMC @F229@ 1 FAMC @F37@ 1 ADOP 2 FAMC @F347@ 3 ADOP HUSB 1 FAMC @F347@ 1 F...
by Ron Melby
27 May 2019 02:43
Forum: Plugin Discussions
Topic: require issue.
Replies: 10
Views: 406

Re: require issue.

I used to write software, testing was another group. I beat it as best I could, thought of all the cases I could, and found from my end was to write chunks that were doing one job, one in one out, in the rather narrow domains, like this one, and the telephone system in America, dont know how the las...
by Ron Melby
26 May 2019 11:02
Forum: Plugin Discussions
Topic: require issue.
Replies: 10
Views: 406

Re: require issue.

C:\ProgramData\Calico Pie\Family Historian\Plugins\_hrelations.fh_lua:260: first use of unknown global function 'fhOutputResultSetTitles'
C:\ProgramData\Calico Pie\Family Historian\Plugins\_hrelations.fh_lua:261: first use of unknown global function 'fhOutputResultSetColumn'

ie.
by Ron Melby
25 May 2019 19:29
Forum: Plugin Discussions
Topic: require issue.
Replies: 10
Views: 406

Re: require issue.

fully tested, yaaaaaaaaaaaaaaaas. I 'fully test' my modules, I have them in about 20 scripts and run them constantly. I have run them hundreds if not thousands of times. microsoft, ubuntu, you name it fully test gabillions of times, over much more massive environments, and still have bugs. fully tes...
by Ron Melby
25 May 2019 19:20
Forum: Plugin Discussions
Topic: and I own this computer.
Replies: 6
Views: 522

and I own this computer.

I have: local chil = 0 ptrCHIL = fhGetItemPtr(thisPTR, '~.~CHIL>') if ptrCHIL:IsNotNull() then chil = rtvElemCount(ptrCHIL) end return chil Mike Has: for intChild = 1, 99 do -- Loop through each Child instance local ptrChild = fhGetItemPtr(ptrIndi,"~.~CHIL["..intChild.."]>") slig...
by Ron Melby
25 May 2019 13:46
Forum: Plugin Discussions
Topic: require issue.
Replies: 10
Views: 406

Re: require issue.

well my worst of all worlds method now is: since LUA is nice enough to tell you the line I go thru the error in FH. Stop. Goto ZeroBrane copy the 'module' out of the _STDfn.lua and put it inline in the program. Switch to FH. stick a debug on the copied in module (since no overloading in LUA) it will...
by Ron Melby
25 May 2019 00:18
Forum: Plugin Discussions
Topic: require issue.
Replies: 10
Views: 406

require issue.

I have rounded up many of my routines and put them in a single fh_lua source. then in writing the script at the top, before anything else, I have: local fh = {} -- Local environment table package.seeall(fh) -- Enable all globals -- module(..., package.seeall) -- Create matching module name setfenv(1...
by Ron Melby
24 May 2019 23:58
Forum: Plugin Discussions
Topic: i need inspiration as well, and some clever coding
Replies: 41
Views: 1526

Re: i need inspiration as well, and some clever coding

I gotta say, Mike.... that fellow right there is pretty fast.

I have two issues left yet, and one is worth---- no, I will make two separate threads.

Thanks Mike.
by Ron Melby
24 May 2019 17:42
Forum: Plugin Discussions
Topic: i need inspiration as well, and some clever coding
Replies: 41
Views: 1526

Re: i need inspiration as well, and some clever coding

nothing really, I am trying to get the running time down, is all.

Go to advanced search