home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1997 / ARCHIVE_97.iso / text / hints / vol_10 / issue_08 < prev    next >
Text File  |  1997-08-11  |  13KB  |  278 lines

  1. Hints and Tips
  2. 10.8
  3. ANT/StrongED Éfeatureæ Ö If you view an email in Marcel by using the
  4. Éload into editoræ icon, and then try to drag and drop some (or all)
  5. of the text from StrongED to another application, it works fine Ö but
  6. only once! If you try it a second time, it fails with öThis item is
  7. locked to stop changes being made to itò from StrongED. Thereafter,
  8. all subsequent attempts drag and drop from StrongED to any other
  9. application will fail with the same error, irrespective of whether
  10. Marcel is involved.
  11. 10.8
  12. I finally discovered the reason for this. When you do a Éload into
  13. editoræ, Marcel creates a Élockedæ file Ö so if you try to edit it,
  14. StrongED tells you öText is write protectedò. (Edit, by the way,
  15. ignores the fact that the file is Élockedæ and lets you edit it
  16. anyway!)
  17. 10.8
  18. Now, if you try to do a drag and drop from a write-protected file,
  19. StrongED lets you do it but it creates a temporary ÉScrapFileæ in the
  20. scrap directory. Then, when it has finished dragging and dropping, it
  21. cannot delete this ScrapFile because it is locked, so it is a
  22. permanent resident in your scrap directory!
  23. 10.8
  24. The only answer seems to be öDonæt use StrongED to drag and drop from
  25. Marcelæs email viewerò. Instead, use the ösave emailò icon, drag the
  26. file to the iconbar, and then drag and drop the bit of text you want
  27. over to the target application. Guttorm Vik has kindly agreed to
  28. change the way StrongED operates in order to avoid this problem.
  29. 10.8
  30. Ed. <paul.NCS@paston.co.uk>
  31. 10.8
  32. (Have you sent Guttorm your ú10 registration yet?!?!?! Thereæs no
  33. excuse Ö here are the details.)
  34. 10.8
  35. ARM multiply Ö In Archive 10.5 p40, Mark Slatter was asking about
  36. information on the multiply instruction on the StrongARM. I have
  37. written an ARM mnemonic database for the Psion/Pocket Book,áwhich may
  38. be of use to him. It can be found onáHensa under the RISCáOS section,
  39. in directory e/e159, or on my home page at www.bleep.demon. co.uk. If
  40. there is interest, I could probably convert it to a common database
  41. format, i.e. CSV or TSV. Iáhope this is useful.
  42. 10.8
  43. Kevin Moore <kevinm@bleep.demon.co.uk>
  44. 10.8
  45. Artworks files in Impression Ö There is a problem with embedding
  46. Artworks files in Impression documents. If the Artworks file contains
  47. rotated Artworks text, Impression doesnæt always display it. After
  48. much head scratching, I tracked this down to a bug in the Impression
  49. Run file: rotated text in Artworks needs the CC FontDraw module which
  50. is supplied with Impression but not loaded until Artworks is loaded.
  51. 10.8
  52. To fix Impression Publisher Plus, load its !Run file into Edit, and
  53. add the line:
  54. 10.8
  55. RMensure FontDraw 1.07 RMLoad <Impress
  56. 10.8
  57.  ionPublisherPlus$Resources>.RMStore .FontDraw
  58. 10.8
  59. (note that this should all be on one line). If you have Publisher or
  60. Style, you will need to change the directory name as appropriate (i.
  61. e. use ImpressionStyle$Resources instead).
  62. 10.8
  63. Paul Skirrow, Octopus Systems <pskirrow@octosys.co.uk>
  64. 10.8
  65. Buffer overflow Ö Iæve got an answer to Alex Cessfordæs Ovation
  66. problem in the Help Column (10.7 p54). The error isnæt caused by
  67. Ovation itself, but by the bit of RISC OS that generates commands
  68. from the !Run Obey file. It happens if it tries to generate a command
  69. line longer than 256 characters.
  70. 10.8
  71. The problem line will contain something like:
  72. 10.8
  73. Run <Obey$Dir>.!RunImage %0
  74. 10.8
  75. where %0 gets expanded into the name of the file to be loaded. If
  76. Ovation Pro has something considerably more complicated than this,
  77. and the file has a long path name (I expect Alexæs file is buried in
  78. a very deep directory structure) this can happen, especially if
  79. Ovation does something like my program, WinEd. It runs one of two
  80. programs depending on whether itæs registered:
  81. 10.8
  82. IfThere <WinEd$Dir>.User Then /<WinEd
  83. 10.8
  84. $Dir>.!RunImage 4096 %0 Else
  85. 10.8
  86. /<WinEd $Dir>.Register.!Run 4096 %0
  87. 10.8
  88. which generates two copies of the file name within the command line.
  89. Incidentally, the / is short for *Run and I provide my own version of
  90. IfThere with WinEd for pre-Risc PCs.
  91. 10.8
  92. If he runs the file from floppy, it has a much shorter path name, and
  93. if Ovation is already loaded, a Wimp message is sent to it, bypassing
  94. the above process. The message still places a limit on the path name
  95. length, because a Wimp message can be no bigger than 256 bytes in
  96. total. Thatæs never been a problem so far, but I wonder if this has
  97. any connection with Acornæs reluctance to remove the 10 character
  98. filename limit?
  99. 10.8
  100. The DDEUtils module provided with Acorn C (and installing a StrongARM
  101. should also automatically put a copy in System) will probably fix the
  102. !Run problem because it contains a patch to allow longer command
  103. lines Ö the C linker often needs very long commands to pass it a list
  104. of files to link.
  105. 10.8
  106. Tony Houghton <tony@tonyh.tcp.co.uk>
  107. 10.8
  108. Creating neat screenshots Ö Your hint on this topic in Archive 10.7
  109. p20 made me wonder if youæve come across !WindowRd. You load it,
  110. position the pointer over the window to be screenshot and press both
  111. shift keys. The result is confined to the window, lifted clear of the
  112. background. It works too with those windows that disappear when the
  113. mouse is moved and clicked away from them.
  114. 10.8
  115. Itæs PD, so itæs freely distributable.
  116. 10.8
  117. Jack Evans <jack@snave.demon.co.uk>
  118. 10.8
  119. Excellent, Jack, thanks for pointing that out. Iæll put a copy on the
  120. monthly program disc. It was actually on the 9.11 program disc, but I
  121. didnæt realise the significance of it then. Thanks too to Jason
  122. Tribbeck for writing it in the first place! If any contributor to
  123. Archive would like a copy, do let me know and Iæll happily send it to
  124. you.
  125. 10.8
  126. Ed. <paul.NCS@paston.co.uk>
  127. 10.8
  128. Credit card numbers Ö If you really want to confuse the öinternet
  129. credit card thiefò, simply place the credit card number in a
  130. drawfile. If you just typed in the number, these figures would be
  131. readable within the ASCII of the resulting file, but if you convert
  132. the text to path (SelectÖ>Convert to path), it is totally unreadable
  133. unless they have an Acorn machine! The resulting file is only about 6
  134. or 8Kb, which is not an unreasonable overhead, and it can be halved
  135. by !Squashæing it.
  136. 10.8
  137. Martijn Claassen, Argos Computers <martijn.argos@pi.net>
  138. 10.8
  139. Hires monitor modefile Ö At a big computer fair, I found an offer I
  140. couldnæt refuse: a three year old Sony VRT16-HA 17 inch monitor,
  141. labelled Digital GDM 1661, guaranteed in working order but without
  142. any documentation. I brought the wonderful beast home but had a hard
  143. time taming it.
  144. 10.8
  145. First problem: this monitor is fed by three coaxial red, green and
  146. blue cables, but where do the sync signals enter? The official
  147. solution is to impose both sync signals on the green video, but this
  148. involves polarity inversion, and similar hanky-panky, that tends to
  149. impair the video quality. However, at the back of the monitor (hidden
  150. behind the hood) I discovered fully prepared entry points for the
  151. separate H-sync and V¡sync signals. No mixing needed Ö just two extra
  152. leads to the RiscPC video connector did the job.
  153. 10.8
  154. Now the second problem arose: what line frequencies did this monitor
  155. expect from my Acorn? Itæs definitely not a standard VGA signal Ö
  156. nothing like it. It took a lot of experimentation to find out that
  157. this beauty takes no less than 67,000 lines per second Ö and thatæs
  158. an awful lot more than regular multisyncs need. However, MakeModes
  159. helped me out and, in due course, I had constructed a complete range
  160. of modes, from 160╫256 right up to 1600╫1200. The lower resolutions
  161. could be accomplished by Éoverscanningæ: each picture line is
  162. followed by one or two empty lines, effectively lowering the scan
  163. frequency from 68 to 34 or 23 kHz. The result is visible of course,
  164. but quite acceptable since the picture is steady, not interleaved.
  165. 10.8
  166. A more serious drawback comes from the continued high scanning speed.
  167. A low resolution picture needs less memory, but this memory is
  168. nevertheless scanned (in bursts) at top speed. With fast video RAM,
  169. the maximum pixel rate for a RiscPC is 115 million per second, and
  170. even StrongARM cannot improve on that. This means that hires 32-bit
  171. colours can only be executed at low resolution modes: 400╫300 or less.
  172. 10.8
  173. Above all, this just shows that the Acorn RiscPC is one of those very
  174. rare machines that can cope with non-standard monitors like this
  175. super-hi-res Sony/Digital beauty.
  176. 10.8
  177. Anybody interested can give it a try Ö I have sent Paul the Modefile
  178. to put on the monthly disc.
  179. 10.8
  180. Paul Porcelijn <Porcel@dds.nl>
  181. 10.8
  182. Magazine storage Ö Several readers have written in to say that Neat
  183. Ideas Office Supplies (0800-500192, faxá0800-600192) do still have
  184. some A5 magazine boxes. This is true as I bought some myself to try
  185. them. If you want to buy some yourself, do, but I donæt think they
  186. are suitable for selling through Archive. First of all, they are
  187. frustratingly too wide to hold twelve magazines without them flopping
  188. about, and too narrow to take twenty-four. Also, Neat Ideas only have
  189. limited stocks left, and the manufacturer is not producing any more
  190. unless he gets a large enough order to make it worthwhile.
  191. 10.8
  192. Another possibility has been suggested by Mr R Drayton of
  193. Loughborough Ö holders öideal for 12 magazinesò from Office World
  194. (code 034-736). However, they cost ú2.99 +VAT each and he also warns
  195. that you should check the quality of them. One had a faulty spring
  196. clip and had to be returned. Office World are on 0800-500024 and
  197. offer free next day nationwide delivery for orders over ú50 +VAT, but
  198. they also have 50 stores around the country.
  199. 10.8
  200. Ed.
  201. 10.8
  202. StrongARM cache Ö The *Cache command has some undocumented options in
  203. StrongARM RISCáOS 3.7 machines. The usual syntax is:
  204. 10.8
  205. *Cache On | Off
  206. 10.8
  207. As StrongARM users will be aware, turning off the cache to load
  208. applications, can be a rather slow affair Ö but there is a compromise
  209. solution! You can use any combination of the following switches after
  210. the *Cache command to enable certain StrongARM features, and disable
  211. all the others:
  212. 10.8
  213. I Ö Enable instruction cache
  214. 10.8
  215. D Ö Enable data cache
  216. 10.8
  217. W Ö Enable write cache
  218. 10.8
  219. For example, *Cache IWD would be identical to *Cache On, and *Cache
  220. IW gives roughly ARM610 performance and allows most applications that
  221. donæt like the StrongARM cache to load successfully.
  222. 10.8
  223. Chris Coe <chris.norsoft@zetnet.co.uk>
  224. 10.8
  225. Zap colour Ö The colouring facility in Zap is one of its most
  226. attractive features, although some people struggle to set the options
  227. for the different modes. To set the options for a particular mode,
  228. you first need to select the mode in the Options->Mode menu, and then
  229. set the options you want to use for that mode, again using the
  230. Options menu.
  231. 10.8
  232. The most useful options are in the Options->Display menu which allows
  233. you to set the colours and width for each mode.
  234. 10.8
  235. When you have finished entering the options, put the mode back to
  236. Text (to make it the default) and use the Options->Save Options menu
  237. to save the new options for future use.
  238. 10.8
  239. I have my Text mode set to give light blue text and my task window
  240. set to give orange text, so I can immediately tell what kind of
  241. window I am looking at. This can be very useful when there are lots
  242. of open windows. You can also enable 74 character word-wrap for
  243. email, and long lines for C code.
  244. 10.8
  245. Paul Skirrow, Octopus Systems <pskirrow@octosys.co.uk>
  246. 10.8
  247. Zip drives and PC cards Ö I have a little warning about Zip drives
  248. and PC cards. Basically, do not attempt to access any Zip disc from
  249. the PC card, then switch back to RISC OS and attempt to access it
  250. from there, as it can cause all sorts of disc errors and data loss. I
  251. had my first 100Mb loss a few weeks ago and it was extremely
  252. frustrating. For absolute safety nowadays, I always obey the
  253. following rules:
  254. 10.8
  255. 1. Dismount any Zip disc before running the !PC application. (This
  256. ensures that any disc write caches are emptied and the data is
  257. committed to the disc.)
  258. 10.8
  259. 2. Do not access the Zip drive from RISC OS while the PC card is
  260. running. (You can still have the software loaded if you wish, but
  261. even just reading from the Zip drive can cause big problems.)
  262. 10.8
  263. 3. Use the manual eject button immediately after exiting from the PC
  264. card to dismount the Zip disc, then reinsert it so that RISC OS
  265. recognizes any new data that you have stored onto it.
  266. 10.8
  267. You could probably get away with less, given some experimentation,
  268. but I will leave that to others, as my data is really too important
  269. to risk on these things.
  270. 10.8
  271. If your Zip disc does go wrong (and we are, of course, talking about
  272. DOS formatted discs here), it is much better, in my experience, to
  273. use Scandisc for DOS to recover the data rather than any other tool
  274. (including Scandisc for Win 95).
  275. 10.8
  276. Chris Coe <chris.norsoft@zetnet.co.uk>
  277. 10.8
  278.