home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / misc / 18624 < prev    next >
Encoding:
Text File  |  1992-12-15  |  3.2 KB  |  69 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: Good news!  Tired of vague filenames? ...
  5. Message-ID: <BzC17K.n1v@usenet.ucs.indiana.edu>
  6. Originator: shulick@navajo
  7. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  8. Nntp-Posting-Host: navajo.ucs.indiana.edu
  9. Reply-To: shulick@navajo.ucs.indiana.edu
  10. Organization: Vallen Software
  11. Date: Wed, 16 Dec 1992 03:18:55 GMT
  12. Lines: 55
  13.  
  14.  
  15. Hello, all.
  16.  
  17. Maybe a few of you remember my old program, "Class."  I think the latest
  18. release was v1.2.  Anyway, it determined what type of a file something
  19. was.  Well, it was crappy.. :)  The source code was very sloppy and
  20. inefficient.  So I'm doing a total rewrite, and this release will be
  21. TClass 3.0.  It recognizes the following types of files:
  22.  
  23.    FORM files (IFF, that is.  'FORM' includes ANY type of IFF: 8SVX,
  24.       ILBM, ANIM, etc.)  Note, the way of determining this sort of
  25. clashes with the program's structure.. I'll worry about that later,
  26. though.
  27.  
  28.   Other things recognized: C source, Assembly source, *.o files, C
  29. includes, info files, executables, zoo archives, lzh archives, DMS
  30. archives, GIFs, fonts, MED songs, compressed files (*.Z), icons, MED
  31. modules, lha archives, MovieSetter anims, JPEGs, and uuencoded files.
  32. (whew) :)  "Well, what about <filetype>!" you ask? :)  TClass has a
  33. learn option, as well. (ALL of these filetypes are stored in
  34. S:TClass.brain)  Anyway, let's say you (for some strange reason) wanted
  35. TClass to recognize MS-DOS executables.  In the learning process, just
  36. as with humans, the more samples you have, the more accurate.  For
  37. instance, if you just give LAMEPROG.EXE to TClass, it wouldn't have any
  38. basis of comparison.  Now if you feed LAMEPROG.EXE, FOOBAR.EXE,
  39. BLECH.EXE, BIFF.EXE all into TClass, what it does is it compares Magic
  40. Numbers (tm) (fancy phrase for initial bytes) of all the files, and
  41. where it finds them common, it records these bytes as well as their
  42. positions, in S:TClass.brain.  So, obviously, the more files of the same
  43. type you feed it, the more accurate future determinations will be.  The
  44. structure of S:TClass.brain will be VERY strange.  It will almost
  45. resemble source code.  Here's a very rough draft, which will probably
  46. change once I get the project going:
  47.   TClass.brain:
  48.  
  49. MED module::0=77,1=77,2=68,3=48::
  50. Icon::0=-29,1=16,2=0,3=1,4=0,5=0,6=0,7=0,8=0::
  51. C source::@isext(.c)::
  52.  
  53. Very simple. :)  (the documentation will explain everything clearly)
  54. But for the most part, you won't have to edit S:TClass.brain, though you
  55. can, and quite easily w/ the help of another program I'll include
  56. (showbytes) and, of course, the docs.
  57.  
  58. This will take quite some time for me to develop.  I'm going on vacation
  59. soon, and when I get back, after I get situated with classes, I should
  60. have quite a bit of time to program this baby.  Watch for it! :)
  61.  
  62. Merry X-mas
  63.  
  64. -- 
  65.     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  66.    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  67. \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  68.  \/                     / taxi."  --George Bernard Shaw
  69.