home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / apps / database / zap / zap_card.doc < prev    next >
Text File  |  1998-02-12  |  21KB  |  529 lines

  1.  
  2.         Zap_Card v.2T                                        June 18, 1988
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.                        ZAP_CARD - AN ELEMENTARY CARD FILER
  12.  
  13.                               by J.Andrzej Wrotniak
  14.  
  15.  
  16.  
  17.         INTRODUCTION
  18.  
  19.              This  program will allow you to create and manipulate  simple
  20.         card  files,  to  store,  retrieve  and update  various  kinds  of
  21.         information.  Zap_Card is not a full-featured database,  but it is
  22.         adequate  for  many simple tasks,  as e.g.  cataloguing  books  or
  23.         records, or collecting references to literature.
  24.  
  25.              On the other hand, Zap_Card is, I believe, much easier in use
  26.         than  a regular,  even simple,  database program.  My 11-year  old
  27.         friend is using it (after 15 minutes of explanation) to maintain a
  28.         catalog of his father's compact disk collection. This is a utility
  29.         program, not a way of life.
  30.  
  31.              Reading  this documentation before using the program  is  not
  32.         really necessary. You may decide to quit reading, run Zap_Card and
  33.         learn it on the go:  the help screens and occasional referring  to
  34.         the documentation should suffice.
  35.  
  36.  
  37.  
  38.         SYSTEM REQUIREMENTS
  39.  
  40.              Zap_Card will run on any Atari ST computer,  in monochrome or
  41.         color  (medium resolution).  It was not tested on a Mega  ST,  but
  42.         there is no reason it should not run on one.
  43.  
  44.  
  45.  
  46.         CONTENTS OF THIS PACKAGE
  47.  
  48.         The following files are included in the set:
  49.  
  50.         - ZAP_CARD.PRG - the executable program;
  51.  
  52.         - ZAP_CARD.RSC - the resource file;
  53.  
  54.         - ZAP_CARD.DOC - the documentation you are reading now;
  55.  
  56.         - CLASS_CD.CFI - a small example data file (not encrypted).
  57.  
  58.         The  resource and data files (not the program itself!)  should  be
  59.         placed  in  the folder \ZAP_CARD\ created in  the  same  directory
  60.         (root or folder) as ZAP_CARD.PRG, e.g.
  61.  
  62.  
  63.  
  64.  
  65.                                       - 1 -
  66.  
  67.  
  68.         Zap_Card v.2T                                        June 18, 1988
  69.  
  70.  
  71.         B:\ZAP_CARD.PRG
  72.         B:\ZAP_CARD\ZAP_CARD.RSC
  73.         B:\ZAP_CARD\*.CFI
  74.  
  75.         or, if you are using a hard drive:
  76.  
  77.         E:\MISCPROG\ZAP_CARD.PRG
  78.         E:\MISCPROG\ZAP_CARD\ZAP_CARD.RSC
  79.         E:\MISCPROG\ZAP_CARD\*.CFI
  80.  
  81.  
  82.  
  83.         LEGAL NOTICES
  84.  
  85.              Zap_Card is a copyrighted program.  However,  the  executable
  86.         files of Zap_Card (versions up to and including 2Z) may be  freely
  87.         used  and distributed for non-commercial purposes - as long as  at
  88.         most a reasonable medium/copying/mailing fee is involved.  If  you
  89.         distribute the program, please pass along also this documentation.
  90.  
  91.              The above permission includes the rights to post Zap_Card  on
  92.         electronic bulletin board systems or networks and to distribute it
  93.         via  user groups.  This does not,  however,  include  the  vendors
  94.         selling "public domain" disks for $10 and more (which is more than
  95.         the wholesale price of many Atari ST programs).
  96.  
  97.              The  program  was coded in the OSS Personal  Pascal  v.1  and
  98.         later recompiled using Version 2 of this compiler.  The executable
  99.         code contains library routines copyrighted by OSS and CCD and used
  100.         with their permission. The resource file was produced with the RCS
  101.         from Atari. Guinness supplied the beer.
  102.  
  103.         Disclaimer:  After using Zap_Card  for more than a year I have all
  104.              reasons  to  believe  that the program is free  of  bugs  and
  105.              glitches. Still, in this age of everybody suing everybody for
  106.              everything,  I  have to state that using  Zap_Card,  you  are
  107.              doing it at your own risk.  I am giving you the rights to use
  108.              this  program,  but  I am not responsible for  any  harm  and
  109.              losses the use (or misuse) of Zap_Card may cause.
  110.  
  111.  
  112.  
  113.         GETTING STARTED: FILES AND PASSWORDS
  114.  
  115.              You  run  Zap_Card by double-clicking on its  icon  from  the
  116.         desktop  (sorry,   no  "Install  Application"  option  here).  The
  117.         Password  Panel  will show up.
  118.  
  119.              Pressing  Return  (or clicking on [Done]) will  continue  the
  120.         program  without  a  password.  If  you  choose  a  password  (any
  121.         combination  of  characters,  with  case  significant),  the  file
  122.         created  by  the program will be accessible only  after  the  same
  123.         password is used.
  124.  
  125.              When you enter a password, it remains fixed for the length of
  126.         the program run;  during that run you will be able only to  create
  127.         new  password-protected files,  access old files created with  the
  128.         same password, and access files created with no password.
  129.  
  130.  
  131.                                       - 2 -
  132.  
  133.  
  134.         Zap_Card v.2T                                        June 18, 1988
  135.  
  136.  
  137.           
  138.              After the Password Panel, a file selector will appear, so you
  139.         may  choose an existing card file from the \ZAP_CARD\  folder,  or
  140.         create  a  new one by typing its name in.  Files  created  with  a
  141.         password are denoted with extension CFC,  those without password -
  142.         by CFI.
  143.  
  144.              And  finally you will find yourself in the Main Panel  (if  a
  145.         new  file is being created - the Header Panel,  but just click  on
  146.         [Continue] to exit it). Here is where the fun begins.
  147.  
  148.  
  149.  
  150.         THE MAIN PANEL
  151.  
  152.              This is where you will spend most of your time with Zap_Card.
  153.         All basic functions of the program are accessible from  here,  and
  154.         the [Help] button will bring up a screen with a brief  description
  155.         of available options.
  156.  
  157.              Most  of  the  panel  is  occupied  by  the  card   template,
  158.         consisting of three header lines (smaller box at the top), 10 text
  159.         lines  (larger  box below) and six keyword indicators  (below  the
  160.         text  box).  The  discussion of keywords will be  postponed  until
  161.         later.  The  card template also contains the card number  and  the
  162.         date  of  its creation (or the current date,  if the  template  is
  163.         empty).  Total number of cards in the file is displayed at the top
  164.         left of the panel.
  165.  
  166.              The  three  header lines may contain  any  information  which
  167.         will be used for sorting and searching of cards,  as e.g.  author,
  168.         title and publisher in case of a book catalog.  The 10 text  lines
  169.         may  contain any other information supplementing the  header,  but
  170.         the  program  does  not make any use of it.  (In case  of  a  book
  171.         catalog you may write there,  for example, a short summary of each
  172.         book).
  173.  
  174.              The  three  short lines just to the left of  the  header  box
  175.         should contain the header descriptors,  as e.g.  "Author", "Title"
  176.         and "Publisher". To enter the header descriptors, you click on the
  177.         [Headers]  button,  which  will bring you into the  Header  Panel.
  178.         When you have your header descriptors typed in, return to the Main
  179.         Panel  (by clicking on [Continue]) - your card file is  ready  for
  180.         use.
  181.  
  182.  
  183.  
  184.         TYPING IN CARDS; SORTING ORDER
  185.  
  186.              When you create a new file,  an empty blank will be displayed
  187.         first. You may fill it with the information as you like. To recall
  188.         a  blank  card  when a filled card is  displayed,  just  click  on
  189.         [Blank].
  190.  
  191.              Filling  cards  with  text  is  pretty  straightforward.  The
  192.         information  is  just typed in,  moving between lines is  done  by
  193.         using the keyboard arrows,  and some degree of editing is possible
  194.         by use of Backspace and Delete keys.
  195.  
  196.  
  197.                                       - 3 -
  198.  
  199.  
  200.         Zap_Card v.2T                                        June 18, 1988
  201.  
  202.  
  203.  
  204.              In addition to the normal ASCII characters,  a Control-C  key
  205.         combination  may  be used in the header  lines  (a  right-pointing
  206.         arrow  will  show on screen).  When the program  sorts  the  cards
  207.         alphabetically,  each header line is treated as if it started from
  208.         this arrow, so that Isaac =>Asimov will precede Arthur =>Clarke in
  209.         your  book catalog.  Without the arrows whole lines are  compared.
  210.         Only the first arrow in each header line is significant.
  211.  
  212.              The  cards in your file will be always alphabetically  sorted
  213.         by their header lines. Sorting is done by comparing the top header
  214.         lines  for all cards;  when those are equal - the middle ones  are
  215.         compared,  and  finally - the bottom ones.  The text lines  (large
  216.         box) are not used for sorting.
  217.  
  218.         Example:
  219.  
  220.              Arthur C. Clarke
  221.              The Songs of Distant Earth
  222.  
  223.              Isaac =>Asimov
  224.              Foundation
  225.  
  226.              Arthur =>C.Clarke
  227.              Rendez-Vous with Rama
  228.  
  229.         Yes, this is right. "Arthur" precedes "Asimov" in the alphabetical
  230.         order; we've forgotten the arrow before the first "Clarke"!
  231.  
  232.  
  233.  
  234.         ADDING, REPLACING AND DELETING CARDS
  235.  
  236.              When  your  card is ready,  it can be added to  the  file  by
  237.         clicking on the [Add] button.  The card will be inserted into  the
  238.         proper  place,  according to the alphabetical order  as  described
  239.         above.
  240.  
  241.              When  you  are modifying an existing card,  a  choice  exists
  242.         between [Add] and [Replace].  The latter will just modify the card
  243.         in  the file,  while the former will add the modified  one,  still
  244.         retaining the original.
  245.  
  246.              Clicking  on the [Delete] button will discard  the  currently
  247.         displayed card from the file (a confirmation will be requested).
  248.  
  249.              Actually,  all these operations are performed on the copy  of
  250.         your card file kept in the computer memory.  They will not  affect
  251.         your  file  on  disk  until it is  overwritten  on  your  explicit
  252.         request.  Thus,  if you make a series of mistakes,  you may always
  253.         exit the program (or re-read the file from the disk using  [Open])
  254.         without  saving the modified file,  and the original  will  remain
  255.         unchanged.
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.                                       - 4 -
  264.  
  265.  
  266.         Zap_Card v.2T                                        June 18, 1988
  267.  
  268.  
  269.         ADDING KEYWORDS TO CARDS
  270.  
  271.              Quite often you may want to assign one or more keywords to  a
  272.         card.  For  example,  possible keywords in your book  catalog  may
  273.         include MATH,  SCIENCE,  HISTORY,  REFERENCE,  SCI-FI, HORROR etc.
  274.         (type of book),  XVIII,  XIX,  XX (century),  ENGLAND, US, FRANCE,
  275.         GERMANY,  POLAND (country of origin) and other possible attributes
  276.         in  one or more possible categories.
  277.  
  278.              The keywords could be,  in principle,  just typed in into one
  279.         of the header lines (as only the header lines are used for  search
  280.         operations).  This is not the best solution,  as it would  require
  281.         remembering the exact spelling of each keyword;  the program would
  282.         not know that SCIFI, SCI-FI and SF mean the same thing.
  283.  
  284.              This  is why in Zap_Card you chose the keywords from  a  pre-
  285.         defined menu.  To get there, click on the [Keywords] button on the
  286.         Main Panel - enter the Keyword Panel.
  287.  
  288.              The Keyword Panel displays a series of 40 keyword buttons. At
  289.         the  beginning  they are empty.  You may define  new  keywords  by
  290.         clicking  on [Add],  remove existing ones by [Delete]  and  modify
  291.         them  by [Replace].  In each case another dialog box will  appear,
  292.         and  you  have  to  type the keywords  in  there.  To  exit  these
  293.         secondary  (or  tertiary) dialogs,  just click on  [OK]  (or  type
  294.         Return) with nothing typed in.
  295.  
  296.              The keywords,  as you will notice, are limited to 6 character
  297.         each  because  of  screen  space  limitations.   This  should  be,
  298.         nevertheless,  sufficient for meaningful mnemonics.
  299.  
  300.              The  keyword  buttons  can  be  selected  or  deselected   by
  301.         clicking.  The  selected  ones become a part of the  current  card
  302.         itself and will appear in the card template of Main Panel.
  303.  
  304.  
  305.  
  306.         BROWSING AND SEARCHING
  307.  
  308.              The  single  up- and down-arrow buttons will move  us  to  the
  309.         previous or to the next card in our file,  while the double  arrow
  310.         buttons  will  cause  a jump to the first or  to  the  last  card,
  311.         respectively.
  312.  
  313.              Zap_Card  will  also perform a search for a card  (or  cards)
  314.         selected by given  text strings in the header lines  and/or  given
  315.         combination  of  keywords.  Clicking on [Find] will bring  up  the
  316.         Search Panel with a search card template.
  317.  
  318.              The  search  template consists of only the header  lines  and
  319.         keywords  - the large text box is irrelevant here,  as the  search
  320.         operation does not make any use of it.
  321.  
  322.              If  you  type  anything  into a header  line  of  the  search
  323.         template,  then  only  the  cards  with  a  matching  text  (case-
  324.         insensitive)  in  this  line will be selected.
  325.  
  326.  
  327.  
  328.  
  329.                                       - 5 -
  330.  
  331.  
  332.         Zap_Card v.2T                                        June 18, 1988
  333.  
  334.  
  335.              In  our example book catalog,  a template with "mov"  in  the
  336.         first header line will select all books by Asimov (but also all by
  337.         Moviansky,  if you have any there),  and one with "mov" in Line  1
  338.         and  "Found"  in Line 2 - all of Asimov's Foundation  series  (but
  339.         also Moviansky's Lost and Found).
  340.  
  341.              There is a [Keywords] button here as well, used to set up the
  342.         keywords for search (the Keyword Panel again).  Buttons [AND]  and
  343.         [OR] allow to choose between the two possible ways of looking  for
  344.         the keywords:
  345.  
  346.         [AND]  - select only the cards containing all the shown keywords;
  347.  
  348.         [OR]   - select the cards containing any of the shown keywords.
  349.  
  350.         (This, of course, in addition to the header lines, if any.)
  351.  
  352.              Clicking on [OK] will return you to the Main Panel and  start
  353.         the  search (always from the beginning of the file) for the  first
  354.         selected card. When already there, [Next] will search for the next
  355.         one from the current position on.
  356.  
  357.  
  358.  
  359.         OPENING AND SAVING FILES
  360.  
  361.              This is done with the [Open] and [Save] buttons,  as you have
  362.         already  guessed.  An alert box will remind you about saving  your
  363.         file, if necessary.
  364.  
  365.              Files created without a password (*.CFI) will be always saved
  366.         without  it  and  vice versa.  There is no way  of  protecting  an
  367.         unprotected file or un-protecting a protected one.
  368.  
  369.              Back-up  files  are  not created  by  the  program;  I  would
  370.         recommend you to perform a manual back-up after each session.
  371.  
  372.  
  373.  
  374.         PRINTING
  375.  
  376.              Clicking on the [Print] button will bring up the Print Panel.
  377.         From here you may choose the way the printout will be done.
  378.  
  379.              [This],  [All]  and [Selected] buttons  define,  whether  the
  380.         program will print just the current card,  or all cards,  or cards
  381.         corresponding to the last search ([Find]) template, respectively.
  382.  
  383.              [Card(s)]  and  [Header(s)]  will  give  you  the  choice  of
  384.         printing  whole cards or just their 3-line headers.  You may  also
  385.         squeeze the printout by setting the "Print Empty Lines" option  to
  386.         [No].
  387.  
  388.              The last thing to be set here is the printout page length  in
  389.         lines.  For a normal printer setup this is equal to 66 (with a  6-
  390.         line skip-over-perforation region). I found, however, that smaller
  391.         settings,  as  33  or  22  lines,  with 2  or  3  "logical"  pages
  392.         (respectively) fitting into a standard sheet of paper, may be more
  393.  
  394.  
  395.                                       - 6 -
  396.  
  397.  
  398.         Zap_Card v.2T                                        June 18, 1988
  399.  
  400.  
  401.         satisfactory   -  especially  when  combined   with   horizontally
  402.         condensed printout.
  403.  
  404.              Your  printer should be,  of course,  set to the  same  value
  405.         (with  the skip-over-perforation equal to not more than  one-tenth
  406.         of  the  page length).  This can be done with  many  of  available
  407.         public domain printer setting programs,  of which my own  AW_PRINT
  408.         is just one.
  409.  
  410.              I found that the 33-line setting produces nice booklets which
  411.         can be later bound,  while the 22-line setting will print one card
  412.         per  mini-page.  This is suitable for cutting and storing  printed
  413.         cards  in  boxes - and after updating your file you need  only  to
  414.         print out the new cards.
  415.  
  416.  
  417.  
  418.         ACCESS TO THE MENU BAR
  419.  
  420.              Let  me admit:  I was too lazy to watch for GEM messages  and
  421.         redraw  the Zap_Card screen every time a desktop accessory  messes
  422.         it up.  On the other hand,  sometimes you have to access the  Desk
  423.         menu without leaving the program.
  424.  
  425.              Thus,  Zap_Card offers a compromise here.  After clicking  on
  426.         the [Menu] button on the Main Panel,  the panel disappears and the
  427.         Desk  menu with accessories becomes available.  When you are  done
  428.         with the accessories of your choice,  click on the entry [Back  to
  429.         Zap_Card...] - and re-enter the program. A primitive - but working
  430.         - solution.
  431.  
  432.  
  433.  
  434.         PROGRAM LIMITATIONS
  435.  
  436.              Zap_Card will allow files of up to 1024 cards - less on a 520
  437.         ST,  especially with accessories installed. In any case, a warning
  438.         will  appear on the screen and you will not be able to exceed  the
  439.         limit.
  440.  
  441.              Some  handy  features  are  missing  from  this  program.   A
  442.         possibility to merge data files (or to split a data file into  two
  443.         or more) would be very useful and I am considering including these
  444.         into future releases. Some rudimentary editing of the 10-line text
  445.         area would be nice, too. Maybe some day.
  446.  
  447.  
  448.  
  449.         APPENDIX FOR INQUIRING MINDS: ENCRYPTION SAFETY
  450.  
  451.              The   encryption  scheme  used  in  Zap_Card   for   password
  452.         protection  is  based on asynchronous combination  of  two  linear
  453.         congruential  pseudorandom  generators  with  initial   parameters
  454.         modified  by the password and file name (therefore do  NOT  rename
  455.         your password-protected files!).
  456.  
  457.              While  this is a quite primitive and not very elegant  method
  458.         (as compared to Rivest-Shamir-Adleman,  my personal favorite),  it
  459.  
  460.  
  461.                                       - 7 -
  462.  
  463.  
  464.         Zap_Card v.2T                                        June 18, 1988
  465.  
  466.  
  467.         is  much  simpler  and still quite costly to break  -  even  after
  468.         disassembling the program to get the details and with an access to
  469.         both  encrypted  and un-encrypted text.  Without  the  latter  the
  470.         system  is  safe  from any  practical  attack,  at  least  without
  471.         supercomputers getting much faster than they are now.
  472.  
  473.              On  the  other hand,  some of the  commercial  programs  (and
  474.         expensive ones,  too) are using some much more vulnerable methods,
  475.         so what the heck.
  476.  
  477.  
  478.  
  479.         PERSONAL NOTE FROM THE AUTHOR
  480.  
  481.              I  hope you will like this program and find some use for  it.
  482.         If this is the case, let me know. All it will cost you is the mail
  483.         stamp and a few minutes to write a short note.
  484.  
  485.              I  will  also  be  glad to  hear  suggestions  for  (simple!)
  486.         enhancements,  and reports of possible bugs and misbehaviours. One
  487.         day  I  may  decide to rewrite Zap_Card  (using  a  more  powerful
  488.         compiler), so your remarks may come handy. Thanks.
  489.  
  490.         My (office) address is:
  491.  
  492.              Dr. J.Andrzej Wrotniak
  493.              S.T.X.
  494.              4400 Forbes Blvd.
  495.              Lanham, MD 20706
  496.  
  497.         I can be also reached on the CompuServe (70611,2552) and on GEnie.
  498.         Don't be shy, let me know you're out there.
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.                                       - 8 -
  528.  
  529.