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

  1. Hints and Tips
  2. 10.10
  3. ANT Suite Fresco tip Ö If you put a text file called Runables inside
  4. !Fresco, containing a list of filetypes as hexadecimal digits (upper
  5. or lower case), then when a link to a file having one of these types
  6. is clicked on, the file will be fetched and filer_run. Here is my
  7. Runables file:
  8. 10.10
  9. # See (a homebaked hypertext system)
  10. 10.10
  11.  0a4
  12. 10.10
  13. # MS Word 6 or 7
  14. 10.10
  15.  ae6
  16. 10.10
  17. # drawfile
  18. 10.10
  19.  aff
  20. 10.10
  21. # DVI file
  22. 10.10
  23.  ce4
  24. 10.10
  25. # Techwriter
  26. 10.10
  27.  d01
  28. 10.10
  29. Fresco appears not to mind initial spaces or comment lines. In this
  30. way, Fresco could be used for hypertext Ö say within teaching (öif
  31. you want to see the proof click hereò). Also, we can use web pages
  32. with links to DVI files. This provides a mechanism which is platform
  33. independent as far as the student or the person creating the material
  34. is concerned.
  35. 10.10
  36. Gavin Wraith, gavin@wraith.u-net.com
  37. 10.10
  38. Magazine storage öGreen Styleò Ö Two similarly praiseworthy tips this
  39. month in the magazine storage saga...
  40. 10.10
  41. (1) Steve Drain (Archive 10.9) recommends IKEAæs PENG A4 racks cut
  42. down @ ú3 for 8. Thanks for the suggestion, but I think these, and
  43. all previous suggestions, are money down the Drain (oops!). In
  44. classic Blue Peter style, here are some Iámade earlier...
  45. 10.10
  46. For breakfast we eat Kelloggæs Bran Flakes, 750 gram size packet.
  47. Once all the flakes are eaten, we recycle the empty boxes for
  48. magazine storage, by cutting them down to about 20cm and then making
  49. a neat V¡cut in one of the short sides for ease of access. These
  50. recycled boxes will easily hold a yearæs supply of Archive at no cost
  51. whatever. You can either leave them plain or, as an added luxury,
  52. paint them with poster paints or cover them with old wallpaper
  53. samples.
  54. 10.10
  55. Derek Banks, d.e.banks@argonet.co.uk
  56. 10.10
  57. (2) Further to the saga of A5 magazine storage Ö try Tesco! Go to the
  58. check out counters near the wine department. There you will find
  59. small empty boxes which once contained six bottles of wine. There are
  60. many different sizes, and with careful measurement itáis possible to
  61. find an exact fit for A5 magazines. Thenáuse a sharp knife to trim
  62. the top. At the moment, I am using Tesco Bordeaux Blanc Semillon.
  63. Risc User is somewhat harder to accommodate. Tesco Napoleon Brandy is
  64. just too large for a snug fit, so I must take a copy with me on my
  65. next visit to town. Hope this may be of interest to readers.
  66. 10.10
  67. Philip Prior <philipprior@argonet.co.uk>
  68. 10.10
  69. RND, ÖTIME and TIME$ Ö The usual way to make Basic produce a
  70. reasonably random number is to seed the random number generator with
  71. the value of TIME using lines like:
  72. 10.10
  73. R%=RND(ÖTIME)
  74. 10.10
  75. var%=RND(whatever%)
  76. 10.10
  77. This assumes that TIME has been ticking for a reasonably random
  78. number of centiseconds since you switched on. However, I am not sure
  79. if it works in a program called from the boot sequence, as the number
  80. of centiseconds from start-up at that point could always be the same.
  81. This may seem unlikely, but it might explain something that produced
  82. a certain amount of head-scratching for me. I wanted to choose at
  83. random between two screen savers at start-up, and wrote a small Basic
  84. program using lines like those above, but this always seemed to get
  85. the same saver, so perhaps I was always getting the same seed for the
  86. random number generator.
  87. 10.10
  88. Another way of doing it more randomly is to extract one of the
  89. components of TIME$. This reads the real-time clock, and returns a
  90. string along the lines of öSat,17 May 1997.15:05:14ò. You can then
  91. extract, say, the seconds component of this using M%=VAL(MID$(T$,23,
  92. 2)), and then go on to R%=RND(ÖM%). This does give me a randomly
  93. chosen screen saver!
  94. 10.10
  95. Peter Young <pnyoung@argonet.co.uk>
  96. 10.10
  97. StrongED abbreviations Ö Iæve been getting frustrated because of the
  98. difference between the abbreviation systems of StrongED and
  99. Impression. On the latter, for example, I type ösw ò and up pops the
  100. word ösoftware ò. On StrongED, Iáhave to type ö`swò Ö well, I used
  101. to, but Iæve discovered a better way.
  102. 10.10
  103. The trouble was, Iæd be using StrongED and type öswáò, realise that
  104. Iæd got the wrong abbreviation system and have to delete it all and
  105. start again. Not any more! I suddenly realised that StrongED can cope
  106. with any key combination for an abbreviation. All youæve got to do is
  107. make sure you donæt use a combination that might appear in the middle
  108. of a word somewhere else. So all my abbreviations now take the form
  109. of ösw#ò and so, if I mistakenly type ösw ò, all I do is delete the
  110. space and type a ö#ò, which is much less frustrating.
  111. 10.10
  112. Ed. <paul.NCS@paston.co.uk>
  113. 10.10
  114. Zap and Basic Ö With reference to the comments in Archive 10.7 p23,
  115. there is an easy way to avoid the space and token troubles: use the
  116. colours!
  117. 10.10
  118. Set Background1 on Display> Colours> to colour 4 (default 7) and you
  119. can see every space. Typing a space elsewhere on a line with trailing
  120. spaces removes them all.
  121. 10.10
  122. Secondly, set Tokenised on Display> Colours> to colour 2 (default 0)
  123. and you can see if a keyword is tokenised or plain ASCII. This is
  124. especially important when a trailing space is needed, as for RETURN.
  125. Omitting a space converts the token immediately back to text Ö very
  126. WYSIWYG!
  127. 10.10
  128. Donæt forget to untick the All Modes in the Colours submenu before
  129. any change is made, and also when saving these options. You only have
  130. to count the number yourself in the 0-15 colour-palette. The Colour
  131. Picker also allows you to use a colour ╜ (3átimes 93.7%), a warm
  132. white or soft grey, which Iáuse as background in text windows,
  133. together with foreground 8. It also exists in a 16 colour screen mode.
  134. 10.10
  135. Another easy way to convert Basic to plain text is <shift-copy> (now
  136. <shift-end>) or from the menu ÉFile> Print> Dumpæ. Next, you only
  137. need to select the whole text and Indent Ö11 to remove the line
  138. numbers. It is also useful to make a separate and independent copy of
  139. a text window without saving.
  140. 10.10
  141. To avoid problems in copying or moving blocks, click <select> after
  142. the text on the preceding line and click <adjust> after the text on
  143. the last line. You can now place the cursor elsewhere, after some
  144. text on a line, even on the last numbered line, and execute the
  145. operation. Renumber to avoid backwards-errors. It is now ready to
  146. save without any complaints.
  147. 10.10
  148. Ed van der Meulen, Nuenen, Netherlands.
  149. 10.10
  150. Ed has also sent us some other useful bits and pieces which are on
  151. the monthly program disc.
  152. 10.10
  153. !Scrn is perhaps a somewhat unusual way of programming, but it is an
  154. easy way for all sorts of toggles.
  155. 10.10
  156. !caSA (Cache on/off) has a slightly modified construction to avoid a
  157. little odd behaviour.
  158. 10.10
  159. !Tumble (on SA CD-ROM) has the same bugs relating to its use on
  160. machines with 1 Mb VRAM. Itáis cured by a preceding ÉXæ in all the
  161. SYS commands. All the changes are given in the !Changes-file inside
  162. for DIY. It now tumbles on a clear screen with 1 Mb VRAM and 1500Kb
  163. slotsize.
  164. 10.10
  165. Iiyama17T is a MDF-file for the 8617T-monitor, suitable for 1 Mb
  166. VRAM. I have cured nearly all modes, so all old modes, except 16, 17,
  167. 23 and 24, can now be called by number. And the circles are once
  168. again, as in the early days, round!
  169. 10.10
  170. Thanks, Ed. Ed(!)
  171.