home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_08 / issue_10 < prev    next >
Text File  |  1995-06-06  |  4KB  |  91 lines

  1. Hints and Tips
  2. 8.10
  3. Debugging via the Serial Port Ö (Unfortunately, we had problems 
  4. importing the text into Impression when we put this hint in last monthæs 
  5. magazine. Sorry for any confusion that we caused Ö it was our fault and 
  6. not John Westæs! The correct version is as follows...)
  7. 8.10
  8. The os_cli line makes use of the system redirection to send the text to 
  9. the serial port, and so it should have read:
  10. 8.10
  11. os_cli(öecho Start of initialise() 
  12. 8.10
  13. {serial: }ò);
  14. 8.10
  15. More details of redirection can be found on page 419 of the RISC OS 3 
  16. User Guide. The new Acorn C/C++ does not support os_cli, so you should 
  17. use _kernel_oscli instead.
  18. 8.10
  19. From Basic, the OSCLI command is the direct equivalent.
  20. 8.10
  21. OSCLI öecho Start of PROC_init
  22. 8.10
  23.  {serial: }ò
  24. 8.10
  25. John West, Surrey
  26. 8.10
  27. Disc protection Ö Of the 100+ readersæ floppy discs Iæve processed over 
  28. the last few months, there was a fair smattering of broken cases, 
  29. mangled sliders and disc errors. In every case, the defective discs had 
  30. been sent in paper envelopes without further protection from the rough 
  31. and tumble of Her Majestyæs mails. This prompts me to repeat Edæs 
  32. recommendation of many moons ago that it is well worthwhile giving your 
  33. discs adequate protection in the post. Jiffy bags or board-backed 
  34. envelopes cost only a few pence from stationers and, provided any 
  35. covering documentation is limited to a couple of pages, you are unlikely 
  36. to exceed the 60g limit for 19p/25p postage.
  37. 8.10
  38. Jim Nottingham, Pocklington
  39. 8.10
  40. Impression borders Ö The built-in borders in Impression provide ╝ point, 
  41. 1 point and 4 point thick black borders (numbers 1, 2 & 3), but how do 
  42. you get a 5 point border? There is no way for the user to specify the 
  43. thickness and, also, the lines donæt join properly at the corners, as 
  44. you can see...
  45. 8.10
  46. Here is a simple way to make your own line borders using Draw:
  47. 8.10
  48. Create a new Draw document and set the zoom to 8:1. Show the grid and 
  49. lock to it. Set the grid spacing to 0.125 inches with 9 subdivisions Ö 
  50. since one point equals 1/72 inch, each subdivision is one point. For a 5 
  51. point line make a rectangle 5 squares wide and about 30 squares deep. To 
  52. make the corners square, you need to make a 5 by 5 square immediately 
  53. above the rectangle.
  54. 8.10
  55. Finally, set the fill colour of both to black and the line colour to 
  56. none and save the file in your border directory.
  57. 8.10
  58. You can also make curved or bevelled joins by changing the corner square 
  59. into a sector or a triangle.
  60. 8.10
  61. To get half point thicknesses, you need to set the number of 
  62. subdivisions to 18.
  63. 8.10
  64. Unfortunately, the 8:1 maximum zoom in Draw is too small to do quarter 
  65. point lines directly, so you need to construct them double size and then 
  66. ömagnifyò them by 0.5, or else use Artworks with a 4000% magnification. 
  67. On the monthly disc is a selection of plain rectangular borders from ╝ 
  68. point to 6 point thickness.
  69. 8.10
  70. The only remaining problem is that Impression puts the borders around 
  71. the outside of the frame so, with thick borders, you canæt use the ösnap 
  72. to framesò feature to get your alignment right when the frames have 
  73. different borders, as you can see from the frame opposite.
  74. 8.10
  75. Cain Hunt, Cambridge
  76. 8.10
  77. Mouseballs Ö Logitech mice sometimes begin to slip when a glassy film of 
  78. material builds up around the periphery of the rollers which contact the 
  79. mouse ball. This can be as little as 0.5mm wide but is very tenacious. 
  80. Using a piece of metal or wood to dislodge the material can easily 
  81. damage the rollers. With a bit of patience it can be softened using 
  82. isopropyl alcohol on a cotton bud. Lint free cloth is even better. This 
  83. takes a few minutes of gentle rubbing to do the trick. One of the 
  84. rollers is spring loaded and is a little more difficult. A clean cotton 
  85. bud holding a little IPA can be used to rub around the mouse ball to 
  86. remove the stickiness. If an Archive type mat is used, a gentle wash 
  87. with warm water and detergent will delay the problem recurring. 
  88. Everything has to be completely dry before reassembly.
  89. 8.10
  90. Les May, Rochdaleáu 
  91.