THE WELCH COMPANY
440 Davis Court #1602
San Francisco, CA 94111-2496
415 781 5700
rodwelch@pacbell.net
S U M M A R Y
DIARY: June 22, 2003 12:57 PM Sunday;
Rod Welch
SDS record save op change to automatically correct anchor duplicates.
1...Summary/Objective
2...0702051 Verify and Fix Duplicate Anchors Automatically
3...Confidential SDS Records Publish to Local WL But Not to WT Directory
4...0608 SDS Records Modify to Publish Confidential to WL Directory
5...070405 Publish Confidential SDS Records to WL Directory
..............
Click here to comment!
CONTACTS
SUBJECTS
Anchors Add to All Para in SDS record During Save, F2 macro 42, 0702
Verify Anchors are Unique F2 Save
987 Macro Creates Anchors Using Alpha Nums
0605 -
0605 - ..
0606 - Summary/Objective
0607 -
060701 - Follow up ref SDS 3 0000, ref SDS 2 M15O.
060702 -
060703 - On 030616 developed code in 0122 to automatically fix duplicate
060704 - anchors discovered during the verify operation. Today, applied this
060705 - code to F2 for saving SDS records.
060706 -
060707 -
060708 -
060709 -
060711 - ..
0608 -
0609 -
0610 - Progress
0611 -
061101 - 0702051 Verify and Fix Duplicate Anchors Automatically
061102 -
061103 - On 020320 code was developed for saving SDS records that verify
061104 - anchors are unique. ref SDS 2 M15O That code, like the process in
061105 - macro file 0122 for converting documents into HTML, requires the user
061106 - to manually modify the anchor when a duplicate is encountered. Today,
061107 - developed code in 0122 that automatically changes an anchor that is
061108 - reported to be a duplicate. ref SDS 3 KO4J
061110 - ..
061111 - If we had a better routine than -entry 987 in 000006 for generating a
061112 - unique string using numbers and letters, we would not need this verify
061113 - op. For example, using numbers and upper case letters in a four place
061114 - string, I think the number of combinations is...
061115 -
061116 - 36 * 36 * 36 * 36 = 1,679,616
061117 -
061118 - ...so in each file, that is 1 chance in 1.7M of a duplicate in a
061119 - particular file. Only very large files where anchors are added all at
061120 - once would the chances of duplicates rise to a noticable level.
061122 - ..
061123 - I sent Morris an email saying....
061124 -
061125 - 1. Can you create a command that produces a four place string of
061126 - numbers and upper case letters where all will be unique in a
061127 - file with say 1000 such strings. In other words if we created
061128 - a loop that entered 1000 of these strings, the chances of a
061129 - duplicate would be very rare, say 1 in 1000.
061131 - ..
061132 - 2. I have some code that sort of works, but produces duplicates
061133 - say 1 in 200. So this requires a verify op, and that then
061134 - creates other issues.
061136 - ..
061137 - 3. If there is a standard routine for generating unique strings,
061138 - along the lines discussed above, ref SDS 0 CZ7L, that would be
061139 - helpful.
061141 - ..
061142 - 4. We can call the command something like "ancr". Actually, if it
061143 - could have a param, like ancr 6, which would produce a unique
061144 - string of 6 char, that might have more utility, although at
061145 - this moment I am thinking of just the 4 char version.
061147 - ..
061148 - 5. Let me know if you need the Medit code.
061150 - ..
061151 - 6. Thanks.
061152 -
061154 - ..
061155 - In the meantime, today will conform 0702051 so that the save op for
061156 - SDS records, also automatically fixes duplicate strings.
061158 - ..
061159 - Line 1220, ref OF 3 OX5K, -label ancRe in 0702051
061160 -
061161 - This begins op to verify anchors are unique.
061162 -
061164 - ..
061165 - Line 1280, ref OF 3 A98J, -label lpaTAn in 0702051
061166 -
061167 - Did not need this part of the code in 0122, ref OF 1 EG9H,
061168 - developed on 030616 to conform process for saving an SDS record
061169 - with adding HTML to documents that also adds and verifies
061170 - uniqueness of anchors. ref SDS 3 8C3M
061171 -
061173 - ..
061174 - Line 1360, ref OF 3 T59F, -label ovr23 in 0702051
061175 -
061176 - Added code from 0122, ref OF 1 T59F, developed on 030616 to
061177 - automatically enter a new anchor to overwrite a duplicate anchor,
061178 - and then start the process over again from the top to verify
061179 - anchors are unique. ref SDS 3 KO4J Actually, this code is simpler,
061180 - because we do not have a symbol switch to manage that is used in
061181 - 0122 to keep the speed up.
061182 -
061183 -
061184 -
061185 -
061186 -
061187 -
0612 -
SUBJECTS
HTML Suppress from Web Page Publication
Concept Design Objectives
Functions, entering HTML
Suppress Private Records from Diary Report by Another User
Suppress Confidential Records from Others, 940423
Publication of SDS Records on Internet Supressed by Flag on 01 Record
0608 Calls 070405 to Save Record to Transfer Directory, Maintain Tran
Confidentiality Suppress Private Information
1310 -
131101 - ..
131102 - Confidential SDS Records Publish to Local WL But Not to WT Directory
131103 - 0608 SDS Records Modify to Publish Confidential to WL Directory
131104 - 070405 Publish Confidential SDS Records to WL Directory
131105 -
131106 - Follow up ref SDS 1 2480.
131107 -
131108 - Made change to 0608 and to 070405 that is similar to changes made for
131109 - publishing confidential documents to web local (wl) directory, but not
131110 - to the web transfer (wt) directory, reported on 030616. ref SDS 3 M24J
131112 - ..
131113 - Line 110, ref OF 2 5585, -label chstd in 0608 about 40 lines below.
131114 -
131115 - loc_cur 5 3
131116 - chrcnt 1 0
131117 - -if @1 > 32 setcnt 157 9999
131118 -
131119 - This is existing code for processing an SDS record that is not
131120 - marked confidential for publication on the Internet.
131121 -
131123 - ..
131124 - Line 190, ref OF 2 8148, -label rodcp in 0608 about 50 lines below
131125 -
131126 - After start processes 070405, we are not getting a beep and a
131127 - message that the record is posted to the web.
131129 - ..
131130 - Line 310, ref OF 2 HN6J, -label samNm in 0608
131131 -
131132 - Gary called the next day and advised that the standard messages are
131133 - not posting when WT transfer directory is empty, when a record has
131134 - been set up for transfer, and when the user name in the record does
131135 - not match the letterhead. Investigation showed a common problem
131136 - illustrated by following....
131137 -
131138 - -label samNm
131139 - purge c:\sd\03\04501
131140 - -if @67 = 0 errormsg SDS record ready to publish on Internet
131141 - -goto nsbrtn
131142 - -goto stopY
131143 -
131144 - Changed goto command to a lower destination, because messages
131145 - for some reason get lost if there are several conditionals
131146 - between the initial command and when processing stops to
131147 - display messages. Since we added code on 030616 to process
131148 - confidential status of documents in 0608, rather than
131149 - previously in 0122, ref SDS 3 M49K, this additional level,
131150 - and/or related arrangements that are not otherwise clear, are
131151 - preventing the prior messages from displaying.
131152 -
131153 -
131155 - ..
131156 - Line 120, ref OF 4 1889, -label svRcd in 070405 about 30 lines below
131157 -
131158 - loc_cur 5 3
131159 - chrcnt 1 0
131160 - -if @1 > 32 quit
131161 - setgbl 241 @1
131162 - ic 32
131163 -
131164 - Adopted change to code developed on 030616 for handling
131165 - confidential documents. ref SDS 3 M49K Unplug quit command for
131166 - confidential records, and instead set a flag that can be passed
131167 - into 070405 for disconnecting the command that saves the record
131168 - to the web transfer directory (wt), per next step. After
131169 - capturing status, ic 32 removes the flag, so that subsequent
131170 - processing does not delete the the 1st word of the record
131171 - description.
131172 -
131173 - [On 040509 added ic 32 command to fix problem of 1st word in
131174 - record description being suppressed. ref SDS 4 JW7L
131176 - ..
131177 - Line 250, ref OF 4 QM6K, -label susfn in 070405 about 60 lines below
131178 -
131179 - getgbl 8 241
131180 - -if @8 = 32 ic 115
131181 - -if @8 != 32 ic 42
131182 -
131183 - Get the flag set to identify confidential; if flag is on,
131184 - unplug the savc command to avoid publishing SDS records to
131185 - Internet. If the flag is off, then enter "s" to call the savc
131186 - command for saving the record to the web transfer directory
131187 - (wt) for publishing on the Internet.
131188 -
131189 -
131190 -
131191 -
131192 -
131193 -
131194 -
131195 -
131196 -
1312 -