home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Science⁄Math / VideoToolbox / Advice next >
Encoding:
Text File  |  1994-01-12  |  15.4 KB  |  252 lines  |  [TEXT/ttxt]

  1. VideoToolbox: Advice
  2. January 12, 1994
  3.  
  4. Advice to beginners,
  5.  
  6. If you want to do vision experiments on your Macintosh computer, and haven’t programmed a Mac before, there are various things you should get for yourself. I’ve listed what I consider essential. The stuff I use. There are lots of baby books that hold your hand while you learn, but the ones that I’ve looked at weren’t helpful for setting up vision experiments. They’re oriented towards producing Mac-like applications with the right look and feel, which is unimportant when the experimenter is the only person that will ever run the program. Be warned that the bible, Inside Macintosh, is intimidating at first. The classic comment about Inside Mac is that you have to have read the rest to understand any part. Fortunately, the new edition, called the New Inside Macintosh--of which only part has been published--is much more readily assimilable. Mac programming is tough going at first, but I’ve come to like it, as the Apple routines are generally intelligent solutions to complicated problems. Anyway, by looking at the sources for the various demos in the VideoToolbox you should be able to get going much more quickly than I did. Good luck. -Denis Pelli
  7.  
  8. If you like this file, you may also want to read Mike Kelly’s help file “csmp-faq-1.txt”, which answers some frequently asked questions for the Mac programming section of UseNet. It’s in the Info-Mac archives in /tech.
  9.  
  10. ESSENTIAL BOOKS AND SOFTWARE:
  11.  
  12. The C Programming Language, Second Edition
  13. Kernighan and Ritchie
  14. Prentice Hall, 1988
  15. This book describes the new Standard C. Most new C compilers are 99% compliant.
  16.  
  17. THINK C 6.01
  18. A C compiler and programming environment (combined editor, linker, librarian, loader). It’s the best that I’ve ever used on any computer. For a little more money you can get Symantec C++, which includes THINK C 6 as part of the package, but the VideoToolbox makes no use of C++.
  19. Symantec Corporation
  20. 10201 Torre Ave
  21. Cupertino, CA 95014
  22. (800) 800-1438 fax
  23. (800) 441-7234
  24.  
  25. Metrowerks CodeWarrior C Compiler on a CD
  26. Until now the main alternative to THINK C has been Apple’s MPW C, which is slow, and clumsy, at least in comparison to THINK C. The only thing I use MPW for is CompareFiles. However, MetroWerks is supposed to release their brand new "Code Warrior" C compiler in January, 1994. Apparently they have copied everything that Symantec did right, and then added their own improvements. There are three versions: Bronze $199 generates 680x0 code; Silver $299 generates PowerPC code; Gold $399 generates both.)
  27. Order from:
  28. APDA
  29. (Note: APDA is offering a special bundle including Code Warrior and Apple's CD-ROM for PowerPC developers.)
  30. Questions:
  31. Metrowerks Inc.
  32. The Trimex Building
  33. Route 11
  34. Mooers, NY 12958
  35. (514)-747-5999
  36. (514)-747-2822 fax
  37. metro@info.uqam.ca
  38.  
  39. THINK Reference 2
  40. Also from Symantec. This program acts as an online reference manual to the information in the Inside Mac books, volumes I-VI. Highly recommended. $129
  41.  
  42. Numerical Recipes C Set for Macintosh, 2nd ed. 
  43. (textbook, example book, and disk) $90
  44. Useful book and mathematical library in source form. You can read the code, understand what’s going on, and modify it if necessary. From:
  45. Cambridge University Press
  46. 40 West 20th Street
  47. New York, NY 10010-4211
  48. (800)-431-1580
  49. 914-937-9600
  50.  
  51. Inside Macintosh: Volumes I to VI, and X-Reference (i.e. index)
  52. New Inside Macintosh: Files, Memory, Processes, Imaging, ...
  53. Designing Cards and Drivers, 3rd edition
  54. from:
  55. Addison-Wesley
  56. (800)-447-2226
  57. You’ll need these books. Apple is in the process of issuing the new edition of Inside Mac. So far they’ve only issued a few volumes. The old edition had numbered volumes--I to VI--the new edition has named volumes, e.g. Files. The new edition is significantly easier to use than the original and includes examples in C, not just Pascal.
  58.  
  59. MAGAZINES AND CATALOGS:
  60.  
  61. MacWEEK
  62. Customer Service Department
  63. P.O. Box 5821
  64. Cherry Hill, NJ 08034
  65. (609)-428-5000
  66. Try to get a free subscription.
  67.  
  68. TidBITS
  69. A free weekly email newsletter about Macintosh software and hardware published by Adam and Tonya Engst. To subscribe send email to info@tidbits.com
  70.  
  71. APDA
  72. Apple Programmers and Developers Association
  73. Apple Computer, Inc.
  74. 20525 Mariani Avenue, M/S 33G
  75. Cupertino, CA 95014-6299
  76. 1-800-282-2732
  77. (408)-562-3971 fax
  78. APDA@applelink.apple.com
  79. Get an APDA catalog, since some Apple software and documentation is ONLY available from them.
  80.  
  81. develop: The Apple Technical Journal (with the Developer Essentials CD-ROM),
  82. about $30/year.
  83. Apple Computer, Inc.
  84. PO Box 531
  85. Mt. Morris, IL  61054
  86. U.S.A.
  87. 800-545-9364 (U.S.A. only)
  88. 815-734-6309 (anywhere)
  89. 815-734-4205 fax
  90. DEV.SUBS@applelink.apple.com
  91. The develop magazine has four issues per year. It has lots of examples and helpful in-depth explanations. Each issue includes the latest Developer Essentials CD-ROM disk. Useful.
  92.  
  93. Essential Tools and Objects CD-ROM (also called “ETO”)
  94. $1,300 for first year, $300/year thereafter.
  95. APDA
  96. I don’t subscribe to this--it’s too expensive--but you may want to. It’s updated several times a year and has the latest versions of Apple’s development tools, MPW, C, etc.
  97.  
  98. Subscription to the Developer Mailing. Each month you receive a newsletter and a CD.
  99. For $250/year plus shipping from APDA.
  100.  
  101. ONLINE SERVICES:
  102.  
  103. UseNet
  104. The comp.sys.mac.programming UseNet news group has knowledgeable active discussion. Experts at Apple often jump in with helpful answers to thorny questions. You can participate in UseNet from your your Mac using telnet (NCSA Telnet and MacIP are both free) to log into a local unix system. Or you might use Nuntius (available by ftp from the Info-Mac archive) if you can get tcp/ip access to a net news server.
  105.  
  106. CompuServe Information Service
  107. P.O. Box 20212
  108. Columbus, OH 43220
  109. (800)-848-8199
  110. If you can’t join UseNet, then you may want to join CompuServe, to follow the discussions and post your seemingly insoluble Macintosh problems on the bulletin boards, MacPro, MacDev, or Symantec:THINK C, to get free advice from experts. Buy the program Navigator from CompuServe, as it makes CompuServe much easier to use. You’ll need a modem.
  111.  
  112. AppleLink
  113. (408) 974-3309
  114. ALINK.MGMT@applelink.apple.com
  115. AppleLink is Apple’s bulletin board and email system. It provides some system software updates and technical information. Most companies that make Macintosh products have AppleLink accounts, and you can use the online directory to get their email addresses. You’ll need a modem.
  116.  
  117. Anyone can submit a bug report to APPLE.BUGS@Applelink.Apple.com. They prefer, but don’t require, a certain format that is produced automatically by a hypercard stack called Apple Bug Reporter, which can be downloaded from ftp.apple.com in /dts/mac/bugs.
  118.  
  119. SOFTWARE ARCHIVES ACCESSIBLE THROUGH THE INTERNET:
  120.  
  121. The following book is pretty good and includes a free disk that has MacTCP (a $50 value) and lots of other important utilities for accessing the Internet.
  122.  
  123. The Internet Starter Kit for Macintosh, by Adam C. Engst.
  124. Published by Hayden Books. ISBN 1-56830-064-6.
  125. $29.95 USA $37.95 Canada. (Mention the magic code "310D" for a 20% discount.)
  126.  
  127. Hayden Books
  128. 201 West 103rd Street
  129. Indianapolis, IN 46290 USA
  130. 800/428-5331 orders
  131. 317/581-3500 orders
  132. 800/448-3804 fax
  133. 317-581-3550 fax
  134. orders@hayden.com
  135.  
  136.  
  137. FTP is a file transfer protocol used to transfer files across the Internet. FTP programs typically have very rudimentary user interfaces. Some of the bigger ftp servers are now also Gopher servers. Gopher (developed at University of Minnesota, originally for a campus-wide information server)  is sort of a superset of ftp that provides a quite good user interface and allows access to a wide variety of Internet resources. Public ftp servers require that you log in as “anonymous and will accept any password, but it is considered a courtesy to supply your electronic address as the password. If for some reason you can’t use ftp or gopher, some of the sites will help you out by allowing you to request transmission of files to you by email.
  138.  
  139. There are two ways to use ftp from your Mac. The traditional, indirect, approach is to remotely log into a mainframe (preferably one running unix), use its ftp facilities to move the file to it, and then download the file from it. The modern, direct, approach requires that your AppleTalk network have a gateway to the Internet, so that you can run an ftp program on your Mac (provided you have Apple’s MacTCP init, available from APDA for $100; many universities have site licenses). I recommend TurboGopher for anonymous ftp downloading and Fetch 2.1 for general ftp uploading and downloading. Both are free from the Info-Mac archive.
  140.  
  141. Info-Mac archives  (VideoToolbox is in info-mac/Development/SourceCode/)
  142. ftp: sumex-aim.stanford.edu [36.44.0.6]
  143. gopher: Info-Mac Archives
  144. email: send a query to Info-Mac-Request@sumex-aim.stanford.edu
  145. This is the largest collection of public domain Mac software. 
  146.  
  147. Info-Mac CD-ROM II (May '93) $49.95 plus shipping.
  148. You can buy this May ‘93 snapshot of the info-mac archive in a CD-ROM from:
  149. Pacific HiTech, Inc.
  150. 4760 Highland Drive, Suite 204
  151. Salt Lake City, Utah 84124
  152. 800-765-8369 (orders only)
  153. 801-278-2042
  154. 801-278-2666 (fax)
  155. 71175.3152@compuserve.com
  156. (It's got the Feb 25 1993 edition of the VideoToolbox, and 600 MB of other
  157. stuff.)
  158.  
  159. MacPsych archives
  160. ftp: ftp.stolaf.edu [130.71.128.9] (look in /pub/macpsych/). 
  161. gopher: St. Olaf University/Network Resources/St. Olaf Mailing Lists/MacPsych/
  162. email: send a query to macpsych-request@stolaf.edu
  163.  
  164. Apple archives
  165. ftp: ftp.apple.com [130.43.2.3] (look in /dts/mac/).
  166. (ftp.apple.com is an alias for bric-a-brac.apple.com.)
  167.  
  168. EMAIL:
  169.  
  170. Your email service ought to have a gateway to Internet; complain if it doesn’t. Here’s how to send Internet mail to various commercial services when you only know the person’s service-specific address:
  171. America Online: “Adam Engst” becomes “adamengst@aol.com”.  
  172. AppleLink: “DENIS” becomes “DENIS@applelink.apple.com”. 
  173. BIX: “user” becomes “user@dcibix.das.net”.
  174. CompuServe: “1234,567” becomes “1234.567@compuserve.com”. Note: “,” becomes “.”.
  175. GEnie: “username” becomes “username@genie.geis.com”.
  176. MCI: Joe Doe 123-4567 becomes “Joe_Doe@mcimail.com” or “1234567@mcimail.com”.
  177. Prodigy: user ID “abcd12a” becomes “abcd12a@prodigy.com”
  178.  
  179. HARDWARE:
  180.  
  181. In my experience a plain old (now obsolete) Mac II is fast enough for most things, but faster Macs can show bigger movies. If you’re going to synthesize images then make sure your computer has a floating point chip. So far we’ve never needed more than 8-bit color, making the obsolete Apple Toby and TFB video cards our favorites, because they work perfectly (unlike Apple’s new video cards--see Video synch), and they’re available for $90 from Shreve Systems (800-227-3971), but, of course, they don’t support the latest large monitors. We also like the built-in video on all of Apple’s newer computers because you can load images into them at extremely high speeds (try the demo TimeVideo), since they bypass the NuBus bottleneck. We use the mouse or keyboard to collect observer responses. We’ve bought a few Data Translation A/D boards to automate our photometry, moving the cards from machine to machine as needed, but they are probably not the best brand.
  182.  
  183. We’ve done nearly all our research using Apple’s High Resolution Monochrome monitors, which are inexpensive and adequate, though one could wish for higher luminance (100 cd/m^2 peak when new), better high voltage regulation, and dc coupling instead of dc restoration. I suspect that a color monitor might be better regulated and might be excellent used as a monochrome monitor. Use with the ISR Video Attenuator would require that you: 1. use only the green channel, or 2. build a video amplifier to drive all three channels from the single output of the video attenuator, or 3. snip two of the 75 ohm termination resistors inside the monitor and tie all three channels together.
  184.  
  185. You’ll want a fast CD-ROM drive, mainly to read Apple’s Developer Essentials CD-ROM disk.
  186.  
  187. You’ll need a modem to call CompuServe or AppleLink, and to dial in from home and elsewhere using AppleTalk Remote Access. You can now buy v32bis (i.e. 14,400 baud) modems for several hundred dollars. Phone lines are still expensive though, so you may want to cost-share by using a shared modem and a single phone line, in which case you'll want to devote an old Mac or buy an AppleTalk Remote Access server to connect the modem to your AppleTalk network.
  188.  
  189. APS Turbo DAT $1,399
  190. APS Technologies
  191. 6131 Deramus
  192. PO Box 4987
  193. Kansas City, MO 642120=0087
  194. (800)-354-1213
  195. 816-483-6100
  196. 816-483-3077 fax
  197. My department uses a single DAT tape drive (with compression, from APS) and the Retrospect program to backup dozens of Macs every night automatically. We’re very happy with it. Retrospect maintains a historical backup so you can go back to older versions of your data, many backups ago. Get a sufficiently large-capacity tape drive so that you can do unattended incremental backups without having to change the tape.
  198.  
  199. Moustrak Pad (large 9”x11”, blue or gray). One for each Mac. You really need this. $9
  200.  
  201. Chip Merchant
  202. 9285 Chesapeake Drive
  203. San Diego, CA 92123
  204. (619)-268-4774
  205. (619)-268-0874 fax
  206. At $30 per megabyte it’s worth buying enough memory to take your computer up to at least 8 MB. This outfit has good prices.
  207.  
  208. RECOMMENDED:
  209. (The free stuff is available from Info-Mac or CompuServe or both. You can use TurboGopher to do an “Archie” search of most ftp sites in the world for a file name. To search Compuserve use their “GO MACFF” command.)
  210.  
  211. After Dark - cute screen saver.
  212. ApplWindows - INIT helps you go quickly go to any window of any application. Free.
  213. ATM 3.6 - Adobe Type Manager, $7.50 from Adobe at 800-521-1976 x4400. 
  214. Canvas - drawing figures that aren’t graphs. (Ted Adelson convinced me.)
  215. Disinfectant - remove viruses. This is the best. Free.
  216. DocuComp II - compare versions of a manuscript.
  217. DOS Mounter Plus - read DOS floppies with the same convenience as Mac floppies.
  218. EndNote Plus & EndLink - download references from DIALOG & stick ‘em in papers
  219. Excel - massage data before plotting it.
  220. Fetch 2.1.1 - ftp uploading and downloading. Free from Info-Mac archive.
  221. Kaleidagraph 3.0 - plot data. Can be remotely controled via AppleEvents.
  222. Klutz - view the contents of the clut (Color Lookup Table). Free.
  223. MacsBug - low-level debugger from Apple. Free.
  224. MacTCP - required by most ftp programs. $100 from APDA.
  225. Mathematica - modeling.
  226. MathType - create equations for use in any word processor, especially Word.
  227. MATLAB - analyze data (crude but fast).
  228. Now Up To Date - first appointment calendar (and to-do list) that I like.
  229. Now Utilities - includes Super Boomerang and Startup Manager. Helpful.
  230. On Location - lightning-fast searches by content. Helpful.
  231. PopChar - shows all the characters in the current font. Free.
  232. Programmer’s Key - use your keyboard’s power key to invoke the debugger. Free.
  233. QuickDEX II - like a RoloDEX, keeps addresses and phone numbers. Lightning fast.
  234. QuickMail - email. Connects to Internet, AppleLink, and uucp via optional gateways.
  235. ResEdit CODE editor - free from ftp.apple.com:/dts/mac/tools/resedit/
  236. Retrospect & Retrospect Remote 10-pack - best backup program. $139 & $139
  237. SCSIProbe - mount and unmount SCSI disks. Free.
  238. SuperClock! - time of day. Free.
  239. Synchronize! - merge updates of folders on different computers. $70?
  240. System Errors 7.01- explains all the Systems errors. Free. 
  241. TurboGopher - gopher and anonymous ftp downloading. Free from Info-Mac archive. 
  242. Vantage - word (un)wrapping and quote (un)curling. $90 Preferred Publishers.
  243. Word - only word processor fully compatible with MathType and DocuComp.
  244.  
  245. ADDRESSES:
  246.  
  247. Preferred Publishers, Inc.
  248. 5100 Poplar Ave., Suite 617
  249. Memphis, TN 38137
  250. (800) 446-6393.
  251. (901) 683-3383
  252.