home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / text / hints / volume_04 / issue_10 < prev    next >
Text File  |  1995-02-16  |  19KB  |  486 lines

  1. Hints and Tips
  2. 4.10
  3. Å   *Count command Ö In Archive 4.6 p8 the hint about *Count, is only
  4. partly right. The *Count command only counts data. This means that
  5. directories indeed donæt contribute, but also that only the amount of
  6. data in a file is counted. However, all files must be an integer
  7. multiple of the block-size (1k for D and E format), and for short files
  8. this makes a huge difference. My 46Mb hard disc has about 8Mb difference
  9. between space used from *Free and from *Count for these reasons!
  10. 4.10
  11. One implication of this is that when you archive a large number of small
  12. files with !Spark you can save much more disc space than you might
  13. expect. One thing I would suggest for hard disc users is to copy the
  14. directory tree using *Copy :4.$ :0 T R, and then archive it, which will
  15. compress it down to almost nothing. Think of all the time you spend
  16. setting up the directory structure; this may be more important than
  17. losing files, most of which you will (should?), after all, have on
  18. floppies. As an added bonus this also gives you the location of all
  19. applications, as these are just directories. If (perish the thought) you
  20. have a disc crash, you can just drag the tree out of the archive and
  21. onto a new hard disc.  Stephen Burke, Liverpool.
  22. 4.10
  23. Å   DataLoad problems? Ö The PRM says that if a DataLoad message isnæt
  24. acknowledged, the sending task should delete <Wimp$Scrap> and give an
  25. error. However, I think this is wrong. You arenæt guaranteed that the
  26. scrap file used is, in fact, <Wimp$Scrap>. One case where this must
  27. happen is with an application which can both load and save files of the
  28. same type at the same time; it must not use <Wimp$Scrap> for both, or it
  29. might get very confused! However, there might be other reasons. I
  30. therefore think you should remember the name of the file you saved, and
  31. delete that Ö you get told that it wasnæt a secure file, so this should
  32. be safe.  Stephen Burke, Liverpool.
  33. 4.10
  34. Å   Hard Drive problems Ö BEWARE!!! If you have a fairly old computer Ö a
  35. 310 or a 440 or even a vintage 410/1 or if you are working in a dusty
  36. environment and you are putting in a new hard drive, check/replace the
  37. fan filter. Why? Well, drive suppliers tell us that on more than one
  38. occasion they have had a computer where the fan filter was blocked up
  39. with dust, the customer has installed a new drive and not changed the
  40. filter and, as a result of the lack of airflow, the drive has suffered a
  41. fatal head crash. So, you have been warned. (Fan filters should be
  42. available öfrom your local Acorn dealerò or they can be bought from
  43. N.C.S. as part of an öAnnual Service Kitò Ö including a new pair of
  44. batteries Ö priced ú3.)
  45. 4.10
  46. Å   How long is a line? Ö While editing an old program which I was
  47. converting from the BBC Master to run on the Archimedes, I came across
  48. some features of Basic line lengths which may be of interest. The
  49. program was originally written for the BBC-B with the longest possible
  50. lines to save space.
  51. 4.10
  52. On Page 16 of the ÉBasic User Guideæ issue 1 dated 1988, it says ÉA line
  53. of Basic can contain up to 238 characters...æ but on page 386 it says
  54. that ÉAs in a Basic program, the length of a line is limited (by the
  55. Basic Editor) to 251 characters..æ. This implies that the system has two
  56. different ideas of what the maximum line length should be, instead of
  57. one. Unfortunately, the one it uses seems to depend on what you are
  58. doing.
  59. 4.10
  60. My module ARMBasicEdit (version 1 21 August 87) allows the insertion of
  61. many more than 238 characters in a line. I can get up to 369 before
  62. there is a warning bell, but then neither <Escape> nor <Return> nor SAVE
  63. work until there are only the 251 characters left. Programs containing
  64. lines of length between 239 and 251 apparently run without problems.
  65. However, if you try editing the lines with Basic loaded, just using the
  66. Copy key, you find that there is a warning bell after 239 characters,
  67. (excluding the line number), not after 251.
  68. 4.10
  69. Programs with lines longer than 239 characters can be converted to ASCII
  70. using *SPOOL. However, when you attempt to read them back into a Basic
  71. program using *EXEC, the lines are truncated to 239, so that the program
  72. no longer runs. There is a warning bell but the *EXEC process does not
  73. stop, so not allowing me to find which lines are at fault. I find this
  74. very frustrating. The file Btest, on the monthly disc, is an example of
  75. such a program. The file ÉCHECK240æ is a small program which reads a
  76. file made using *SPOOL which cannot be successfully read back using
  77. *EXEC. It lists the line numbers which are too long, allowing me to edit
  78. them with the Basic Editor.
  79. 4.10
  80. CHAINöBtestò to see that it runs. Then try
  81. 4.10
  82. *SPOOL TEMP
  83. 4.10
  84. LIST
  85. 4.10
  86. *SPOOL
  87. 4.10
  88. *EXEC TEMP
  89. 4.10
  90. CHAIN öCHECK240ò
  91. 4.10
  92. and reply öTEMPò at the prompt. Kate Crennell, Didcot.
  93. 4.10
  94. Å   Printer drivers Ö Further to recent tips about altering the PrData
  95. file within the printer driver, you can also alter the title of your
  96. preferred driver and make it the default driver on loading. For example,
  97. the amendments to !PrinterDM in Archive 4.8 could be made to read öStar
  98. LC24-10ò by altering the line before the line öprinter number:2ò. The
  99. default loading is achieved by amending the line öprinter:01ò to
  100. öprinter:02ò. This line is found towards the end of the data file
  101. immediately before the line ölocation:1ò. Note that the printer number
  102. must be padded out with a zero (0). Pressing <select> after loading the
  103. driver will confirm if your amendments have been correctly made.  Ted
  104. Lacey, Southampton.
  105. 4.10
  106. Å   Printing A5 on an A4 printer Ö If you ask the manufacturers, they say
  107. it is not possible to put A5 paper through either the Qume (300 d.p.i.)
  108. or the Canon (600 d.p.i.) Laser Directs Ö or the LBP4æs for that matter
  109. Ö but it is possible. All you need is a pile of A5 sheets of scrap paper
  110. sellotaped up into a solid block about ╜ö thick (or ╛ò thick for the
  111. Canons). You put them at the back of the A4 paper tray and put the A5
  112. paper, sideways, of course, at the front. The paper usually goes through
  113. OK but does occasionally stick. All you have to be careful of, presum
  114. ably, is that you donæt print on the lower half of the (A4) paper that
  115. is not actually there. Having said that, I have been using A5 paper on
  116. Qumeæs, Canons and Mac Laserwriters for years and have occasionally left
  117. the öA5ò tray in when printing A4 without any obvious damage to the
  118. printers.
  119. 4.10
  120. We can now get hold of spare paper trays for Qume (ú66) and Canon LBP4
  121. (ú57) and Canon LBP8 (ú54)
  122. 4.10
  123. (A possible alternative to the paper is a block of wood the same size
  124. and thickness but I havenæt actually tried it.)
  125. 4.10
  126. Å   Psychedelic sound-to-light Ö Whilst playing a Tracker module, it is
  127. possible to obtain some interesting effects on your monitor by typing
  128. the following Basic command:
  129. 4.10
  130. SYS öOS_UpdateMEMCò,768,1792
  131. 4.10
  132. The screen can be returned to normal with either a MODE command or with:
  133. 4.10
  134. SYS öOS_UpdateMEMCò,1536,1792
  135. 4.10
  136. Rob Swain, Kent
  137. 4.10
  138. Å   Render Bender on SCSI hard disc drives revisited Ö In Archive 3.11 p6,
  139. Neil Berry explains how to use Render Bender on SCSI hard disc drives
  140. but leaves us with the problem of how to use *KILLADFS. This can be
  141. achieved by changing all references made to SWI ADFS_Drives (&40242) to
  142. SWI SCSI_Drives (&403C6). i.e.
  143. 4.10
  144. In the ÉRenderæ Basic listing: change the SWI &40242 to &403C6 in line
  145. 15810
  146. 4.10
  147. In ÉAnirouteæ Basic listing: change the SWI &40242 to &403C6 in line
  148. 6670
  149. 4.10
  150. Atle Mjelde Bσrdholt, Norway
  151. 4.10
  152. Å   Running one application inside another Ö The comment in Archive 4.9
  153. page 6 seems to need some amplification. As explained on page 11 of the
  154. May/June 1991 issue of öThe Archimedeanò from Computer Concepts, if you
  155. want to run one application from inside the !Run file of another, you
  156. should first enter the command
  157. 4.10
  158. *Desktop Run <sibling task name>
  159. 4.10
  160. and then repeat the *Wimpslot command from earlier in the !Run file to
  161. ensure that there is enough memory available for the main application
  162. before you run it.
  163. 4.10
  164. Thus, for example, to make Impression automatically load a printer
  165. driver whenever it is run you should edit the !Impress.!Run file by
  166. inserting two extra lines immediately before the last so that the last
  167. three lines read:
  168. 4.10
  169. Desktop Run [...path...].!PrinterXX
  170. 4.10
  171. Wimpslot Ömin xxxK Ömax xxxK
  172. 4.10
  173. Run ö<Impression$Dir>.!RunImageò %*0
  174. 4.10
  175. The xxxK in the Wimpslot command should be exactly the same as used
  176. earlier in the !Run file Ö the precise amount of memory needed will vary
  177. from one version of Impression to another. Hugh Eagle, Horsham.
  178. 4.10
  179. Å   Sound improvements Ö A much improved sound, which is also more
  180. controllable, can be obtained using the standard colour monitor supplied
  181. with the Archimedes. A 3.5mm jack (Archimedes) to phono (monitor) cable
  182. is required, and the speaker on the Archimedes should be turned off
  183. using *SPEAKER OFF.  Sean Kelly, London
  184. 4.10
  185. Å   Sound voice changes Ö Among the (many) things that annoy me are those
  186. professional programmers who alter your Sound Voice for their games
  187. which otherwise claim to be öRISC-OS Compatibleò. They return you to the
  188. desktop with their Sound Modules set up as ChannelVoice 1. Not everyone
  189. likes the WaveSynth-Beep as default voice, and as for some of the sound
  190. modules or digitised Voice Modules which are then sounded when an error
  191. occurs, YUK!
  192. 4.10
  193. It is quite a simple matter to find out what ChannelVoice the user has
  194. set up and the program could very easily, before exiting to the desktop,
  195. restore it using the following code which is available for all program
  196. mers to use, professional or amateur (please!).
  197. 4.10
  198. REM Find the Useræs ChannelVoice 1
  199. 4.10
  200. SYS öSound_AttachVoiceò,1,0 to ,user_voice%
  201. 4.10
  202.  
  203. 4.10
  204. REM Because ChannelVoice 1 now equal to 0, reset
  205. 4.10
  206. SYS öSound_AttachVoiceò,1,user_voice%
  207. 4.10
  208. REM Rest of program, Wimp Interface, whatever
  209. 4.10
  210. *ChannelVoice 1 Totally Fantastic Voice
  211. 4.10
  212.  
  213. 4.10
  214. REM Program at end, restore user voice
  215. 4.10
  216. SYSöSound_AttachVoiceò,1,user_voice%
  217. 4.10
  218. David Shepherdson
  219. 4.10
  220. Å   Toolkit Plus update Ö Claresæ Toolkit Plus usually produces a ÉBad
  221. disc addressæ error when you try to edit E format floppy discs. This can
  222. be rectified by performing the following:
  223. 4.10
  224. 1   RMLoad the Toolkit Plus module.
  225. 4.10
  226. 2   Type: *Modules <return> and take note of the Épositionæ address of the
  227. Toolkit Plus module.
  228. 4.10
  229. 3   Use *WFIND &EF060240 <return> and ignore the first occurrence (i.e.
  230. press <ctrl-tab> to go on to the next occurrence).
  231. 4.10
  232. 4   Locate the instruction seventeen lines down which reads BCC xxxxx.
  233. 4.10
  234. 5   Select Éword modeæ and zero this instruction.
  235. 4.10
  236. You should now be able to edit E format discs.
  237. 4.10
  238. S Edwards, Wordsley
  239. 4.10
  240. Å   Toolkit Plus with SCSI Ö Claresæ Toolkit Plus provides a disc sector
  241. editor, which refused to work on my SCSI hard disc. A modified Toolkit
  242. Plus may be produced by using !Edit on the Toolkit Plus module to
  243. replace all occurrences of ÉADFSæ with ÉSCSIæ before saving the module
  244. with a new name e.g. SCSITools.
  245. 4.10
  246. A drawback is that the modified version will not cope with ADFS
  247. floppies. Changing the module name (e.g. from ÉToolkit+æ to ÉSCSIToolsæ)
  248. using !Edit allows the modified and original modules to be present at
  249. the same time, and changing the disc edit command names allows both ADFS
  250. and SCSI discs to be edited Ö for instance, !Edit could be used to
  251. replace ÉAEDITæ in Toolkit+ with ÉWEDITæ in SCSITools.
  252. 4.10
  253. Sean Kelly, London
  254. 4.10
  255. Impression HintsáandáTips
  256. 4.10
  257. Å   Abbreviations Ö I use abbreviations quite a lot such as öimpò for
  258. Impression and just örò for Archimedes but I often want to say, for
  259. example öá...using DrawPlus (Careware 13)...ò and although öcaò and öCaò
  260. are both set up to expand to öCarewareò, using ö(caò doesnæt work. There
  261. is no easy way round it as far as I know Ö you just have to put ö(caò
  262. into the abbreviations dictionary to expand to ö(Carewareò.
  263. 4.10
  264. Å   Bullets Ö Weæve mentioned that <ctrl-shift-H> produces a bullet but
  265. since <backspace> (immediately below <F12> and above <\>) produces the
  266. same ASCII code as <ctrl-H>, you will find that <shift-backspace>
  267. produces a bullet. Touch typists may well find it somewhat more natural
  268. than <ctrl-shift-H>.
  269. 4.10
  270. Å   Creating tables Ö The release notes issued with Impression II describe
  271. the new features of version 2.12 but they do less than justice to one of
  272. those features, namely the capacity to create tables. It is possible to
  273. vary the width of individual columns and individual rows in a table as
  274. well as the thickness of the vertical and horizontal lines which form
  275. the table.
  276. 4.10
  277. In addition, the many editing facilities of Impression can be used to
  278. modify text which has been entered into the table so that the style and
  279. size of the characters in any öcellò of the table can be varied as
  280. desired.
  281. 4.10
  282. Moreover, in the manner usual with Impression II, another frame can be
  283. superimposed on any selected part of the table with the effect that
  284. lines of the table can be covered and will ödisappearò permitting text
  285. of any size and nature to be introduced and adjusted to appear to be a
  286. part of the structure of the table.
  287. 4.10
  288. In addition to text, any of the superimposed frames can be made graphics
  289. frames permitting illustrations to be introduced. You can use left hand
  290. tabulation in the some columns, right hand tabulation in others and
  291. decimal point tabulation in others.
  292. 4.10
  293. Practical matters: First construct the empty table. Then determine which
  294. cells will be visible in the completed table and enter text into those
  295. cells, Finally, superimpose other frames as required. Proceeding in this
  296. order prevents interference with tabulation.
  297. 4.10
  298. The usual procedure will be to construct a table of this kind within a
  299. frame of its own so that it can be moved as a whole to any desired
  300. position within the document of which it will form a part. Therefore, on
  301. completion of the table, the various frames of which it is composed
  302. should be Grouped so that the table occupies a single frame. George
  303. Foot, Oxted.ááA
  304. 4.10
  305.  
  306. 4.10
  307.  
  308. 4.10
  309.  
  310. 4.10
  311. Oak
  312. 4.10
  313. From 4.9 page 12
  314. 4.10
  315.  
  316. 4.10
  317. Lindis International
  318. 4.10
  319. From 4.8 page 16
  320. 4.10
  321.  
  322. 4.10
  323. Computer Concepts
  324. 4.10
  325. New artwork
  326. 4.10
  327. Coming direct to you, hopefully!
  328. 4.10
  329. If not, use old one.
  330. 4.10
  331.  
  332. 4.10
  333. Computer Concepts
  334. 4.10
  335. New artwork
  336. 4.10
  337. Coming direct to you, hopefully!
  338. 4.10
  339. If not, use old one.
  340. 4.10
  341.  
  342. 4.10
  343. Graphics Galore on the Cheap!
  344. 4.10
  345. Tord Eriksson
  346. 4.10
  347. Reading with amazement about the latest version of Ventura Publisher Mac
  348. that costs a cool ú695 (exclusive VAT!) and so-called Ébudgetæ DTP
  349. programs for IBMs weighing in at ú70 to ú160, I wonder if we Archimedes
  350. users really know how fortunate we are when it comes to good, cheap
  351. software.
  352. 4.10
  353. The öbudgetò DTP programs for IBMs canæt even word-process Ö you have to
  354. use a separate editor, just as you have to do if you do some DTP with
  355. !Draw....
  356. 4.10
  357. Of course, the latest version of Ventura Publisher Mac can print fonts
  358. in 23╜ size instead of just 23 or 24 point size Ö a revolution no doubt
  359. but one that almost all DTP and word-processors for our Archimedes
  360. machines manage easily!
  361. 4.10
  362. Archimedes Ö no master of colours!
  363. 4.10
  364. There is a difference between modern IBMs and Mac IIæs that puts all
  365. Acorn computers at a disadvantage, even if it was once hailed as an
  366. advance over said computers: Colours!
  367. 4.10
  368. In terms of colour, both Mac II computers and IBMs with VGA are better
  369. than Archimedes and the sky is the limit as there are hundreds of
  370. graphics cards that can be bought that improve things further Ö 24-bit
  371. colours are available.
  372. 4.10
  373. RISC-OS has an upper limit of 8 bits per pixel, 256 colours Ö 24 bits
  374. per pixel gives 16,777,216 different colours, quite a lot more!.
  375. 4.10
  376. For the Archimedes range, the limitations are built-in, through RISC-OS
  377. and the fixed hardware. (There are some improvements possible with
  378. hardware add-ons, but nothing major).
  379. 4.10
  380. Serious DTP is black & white!
  381. 4.10
  382. Fortunately, colour printers are very rare in everyday printing, mainly
  383. due to the fact that such printers are very costly and/or requires
  384. skilled staff to attend to them.
  385. 4.10
  386. So, for practical purposes, DTP will continue to be a mainly black &
  387. white affair, maybe with some colour thrown in for good measure on
  388. covers etc.
  389. 4.10
  390. The woes of illustrating....
  391. 4.10
  392. Being a former technical illustrator, I am painfully aware of the amount
  393. of work needed to set text in a circular fashion as on a coin or an
  394. official seal or make the logo on a fluttering flag look like the real
  395. thing. Hours and hours of work, or in the case of the flag, take a photo
  396. of the real thing and trace that with tracing paper....
  397. 4.10
  398. If the logo is new, you canæt print it first on a flag, so you try to
  399. make do with crinkling a piece of paper upon which you put your text or
  400. logo and take a photo of that....
  401. 4.10
  402. All this is now of the past, as long as your logo or text can be
  403. transformed into a !Draw file.
  404. 4.10
  405. First Ö !FontFX
  406. 4.10
  407. Let us try an example: There used to be an oil company around this part
  408. of the world called Caltex. Let us say we are going to do a drawing with
  409. a flag fluttering with that name on it.
  410. 4.10
  411. First we have the text, set in Pembroke:
  412. 4.10
  413. To make it more interesting letæs add a shadow, with the shadow in the
  414. north-east, and make the text itself a black outline filled with a light
  415. grey and behind it, the dark grey shadow:
  416. 4.10
  417.  
  418. 4.10
  419.  
  420. 4.10
  421.  
  422. 4.10
  423. Both these operations are very easy to do with !FontFX as you just click
  424. on the buttons needed, no previous know-how needed!
  425. 4.10
  426. To make this flutter we have to use a couple of other utilities:
  427. !DrawPlus (or !Draw) and DrawBender.
  428. 4.10
  429. Warped universe
  430. 4.10
  431. A normal picture is plotted in our brain according to the angle we watch
  432. the picture from: If we fly above a square field the corners are right
  433. angle corners (a so-called birdæs-eye view) and if we stand just outside
  434. the field the angles get very odd indeed Ö their sum is still 360,
  435. though!
  436. 4.10
  437. If a square is wrapped around a cylinder things get much more compli
  438. cated, especially when seen at an angle Ö an illustratoræs nightmare!
  439. Not even all CAD programs seems to be able to solve it correctly....
  440. 4.10
  441. Secondly Ö make a mould!
  442. 4.10
  443. DrawBender manipulates !Draw files by plotting them inside each other:
  444. Any text that is going to be manipulated has to be in !Draw format. The
  445. coordinate system öinsideò a square is still square but inside a circle
  446. it takes on the characteristics of a text printed on a balloon like
  447. this:
  448. 4.10
  449.  
  450. 4.10
  451.  
  452. 4.10
  453.  
  454. 4.10
  455.  
  456. 4.10
  457. The first (the circle) is called the mould and the second (the square
  458. inside a frame) is called the object.
  459. 4.10
  460. Due to the way DrawBender works, a real circle couldnæt be used Ö it had
  461. to be substituted it with a 32-sided polygon and it had to be flipped
  462. over because paths have to be clockwise to work as moulds in DrawBender
  463. whereas !Draw and !DrawPlus draw counter-clockwise Ö itæs all very well
  464. explained in the DrawBender manual!
  465. 4.10
  466. Wonderful results!
  467. 4.10
  468. Taking the text, we put it on rectangular background, to make the
  469. outline of the flag as the outline of the mould doesnæt show up on the
  470. finished result:
  471. 4.10
  472. This is now our object! A öflapping flagò is our mould:
  473. 4.10
  474. Conclusion
  475. 4.10
  476. As the end result shows the effect is quite stunning. This amount of
  477. manipulation is available to IBM users of course Ö I could recommend
  478. Express Publisher (ú159.95) as the ölow-costò alternative!
  479. 4.10
  480. For Archimedes users the cost is just ú21, including two manuals and
  481. lots of sample files (available from Ian Copestake Software).ááA
  482. 4.10
  483.  
  484.  
  485.  
  486.