Debian Codegraph @

winfo/Newsletters/Year2001/September.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE>ACEDB User Group Newsletter - September 2001</TITLE>
5
6 <!-- you won't pick up the style sheet if you view this template file, it works OK
7 for the newsletters which are in the directory above. -->
8
9 <LINK rel=stylesheet type="text/css"
10 href="../newsletter.css"
11 title="Style sheet for Acedb newsletters">
12
13 </HEAD>
14
15
16 <BODY>
17
18 <HR>
19 <HR>
20
21 <!-- Don't change this name unless you change mkindex.pl. -->
22 <a name="Top"></a>
23
24 <H1>ACEDB User Group Newsletter - September 2001</H1>
25
26
27 <!-- ******************************************************************** -->
28 <P>If you want to have this newsletter mailed to you <B>or</B> you want to
29 make comments/suggestions about the format/content then
30 send an email to <A HREF="mailto:[email protected]">[email protected]</A>.
31
32
33 <!-- ******************************************************************** -->
34 <a name="General_News"></a><H2>General News</H2>
35
36 <a name="IBM_acedb"></a><H3>First HP, now IBM</H3>
37
38 <P>Recently <b>Hewlett-Packard</b> lent us a whizzo test machine to try out
39 acedb on and now IBM are "beating" a path to our door (well almost). Two people
40 from IBM in the US visited us last month to discuss porting acedb to IBMs latest
41 RISC machines and making a more long term commitment of supplying acedb binaries for
42 IBM machines for download in addition to those we already supply.
43
44 <p>Courtesy of Bradley Elkin of IBM (US) we now have a makefile for building
45 acedb on AIX 4.3, the current release of IBMs version of the Unix operating sytem.
46
47
48 <a name="telnet_changes"></a><H3>No more telnet access to Sanger</H3>
49
50 <P>I received the below note from System Support at the Sanger Centre
51 about a further tightening up of access from outside users. If this will
52 affect you adversely please contact system support direct
53 (<A HREF="mailto:[email protected]">[email protected]</A>).
54
55 <pre><code>&gt; Subject: Telnet Access to Sanger Systems.
56 &gt;
57 &gt;
58 &gt; ** External Telnet access will be closed on Friday 12th October at 9am **
59 &gt;
60 &gt; As part of the on going program to increase the security of the Sanger
61 &gt; network we intend to close all remote access to Sanger systems via
62 &gt; "Telnet"
63 &gt;
64 &gt; Telnet access will not be closed internally although its use is
65 &gt; discouraged.
66 &gt;
67 &gt; Telnet does not use encryption and because of this it is possible for
68 &gt; any data sent over the session, including user names and passwords to be
69 &gt; captured.
70 &gt;
71 &gt; We have installed, and been actively promoting the use of, SSH (Secure
72 &gt; Shell) over the last 18 months. This provides a secure replacement for
73 &gt; telnet with added functionality.
74 &gt;
75 &gt; We have compiled a CD with SSH for all popular operating systems and these
76 &gt; can be obtained from the System Support Group. If you require one please
77 &gt; send a message to '[email protected]'
78 &gt;
79 &gt; If you would like more information or have any questions please contact a
80 &gt; member of the systems team.
81 </code></pre>
82
83
84 <!-- ******************************************************************** -->
85 <a name="New_Features"></a><H2>New Features</H2>
86
87
88 <a name="process_limits"></a><H3>Once more unto the process limits</H3>
89
90 <P>Whenever you run a program on a Unix machine, the resources (memory, files open
91 etc.) available to the program are controlled by a set of limits. You can
92 view these using the built-in "limit" command with the csh shell:
93
94 <P><pre><b><code>&gt; limit
95 cputime unlimited
96 filesize unlimited
97 datasize 262144 kbytes
98 stacksize 2048 kbytes
99 coredumpsize unlimited
100 memoryuse 505664 kbytes
101 vmemoryuse 1048576 kbytes
102 descriptors 4096
103 &gt;</code></b></pre>
104
105 <P>This can be a problem when running acedb if, by default, your process limits happen
106 to be set low. In particular acedb requires reasonable datasize and stacksize limits,
107 while the precise limits required depend on how big the database is and what sort of
108 operations are being done, its likely that you will need at least 50MB datasize and
109 4MB stacksize. The simplest way to increase these limits is use the built-in "unlimit"
110 command:
111
112 <P><pre><b><code>&gt; unlimit data
113 &gt; unlimit stack
114 &gt;</code></b></pre>
115
116 <P>It's hard to remember to do this however and accordingly,
117 from this release, all acedb executables will automatically attempt to increase the limits
118 for datasize and stacksize to the maximum permitted. If this is still very low (less than 50MB
119 datasize and
120 4MB stacksize) you will be given a warning and asked whether you wish to continue.
121 Server programs do not issue the warning but instead log the problem into database/serverlog.wrm
122 within the database.
123
124
125
126 <a name="dump_reading"></a><H3>Reading in a set of dumpfiles</H3>
127
128 <P>A long time ago, in a galaxy far, far away....Roger Horton said rather wistfully
129 "Wouldn't it
130 be nice if you could just click on something and read in a set of acedb dump files in
131 one go.". Well, now you can.
132
133 <P>There are two interfaces:
134
135 <dl>
136 <dt><b>xace</b>
137 <dd>From the "Admin.." menu on the main window, select "Read Dump Files".
138 The file chooser window will be displayed and will by default show the
139 directory you were in when you started xace so if this is where the dump
140 files are, you will be able to select one immediately.
141
142 <P>To load a set of dumpfiles, just choose the first file in the set which
143 will have a name something like "dump_2001-09-05_A.<b>1</b>.ace", you will
144 then be shown a message window which will identify the dump set to be
145 read in and ask you if you want to procede. If you say "Yes", the dumpset will
146 be read in and a list of files read in/parse results for the files will
147 be displayed.
148
149 <P>If errors are encountered in a dump file then processing of the dump set will stop
150 at that file. If you decide at that point you want to just abort the whole dump
151 reading then you should quit acedb without saving and start again.
152 <dt><b>tace</b>
153 <dd>Use the new "dumpread" command to read in a dumpset: "dumpread &lt:dump_file_name&gt;".
154 As with <b>xace</b>, you will be asked to confirm that you want to read in the dumpset,
155 and once finished the list of files read/parse results will be displayed.
156 </dl>
157
158
159
160
161 <a name="cds_dumping"></a><H3>Dumping CDS's from a keyset</H3>
162
163 <P>The "Export.." menu in the keyset window now contains two extra options to dump
164 just the CDS in FASTA format as either DNA or protein for the keyset objects.
165
166 <P>Objects that do not contain the "CDS" tag and associated data will not be dumped.
167
168
169 <a name="userid_saceclient"></a><H3>saceclient, scripts, userids and passwords</H3>
170
171 <P>Following a discussion on the
172 <A href="http://www.bio.net/hypermail/acedb/">acedb newsgroup</A> about running
173 saceclient from a script the following changes have been made to saceclient:
174
175 <ul>
176 <li>A bug has been fixed which prevented saceclient being run from a pipe
177 (thanks to Tim Cutts for that).
178 <li>New commandline arguments have been added to allow the userid and
179 password to be specified on the commandline:
180
181 <P>tace -userid &lt;userid&gt; -passwd &lt;password&gt;
182 </ul>
183
184 <P>Fixing of the bug means that it's now possible to run saceclient via a pipe
185 from a script, pushing through the pipe the userid and password when required.
186 This method is slightly more complex to program but is more secure than using the
187 command line arguments (see below).
188
189 <P>The command line arguments are easier to use in that saceclient can be started
190 and the connection made to the database in a single line. You should be aware
191 however that this option causes a <b>security hole</b>, the problem is that its
192 possible for anyone to log on to the machine where saceclient is running and via the
193 ps command find out your password:
194
195
196 <P><pre><b><code>&gt; ps -f -u edgrif
197 UID PID PPID C STIME TTY TIME CMD
198 edgrif 405 1 0.0 09:10:56 ?? 0:04.88 /usr/bin/X11/xclock -geometry 195x28-0-0 -digital -bg white -fg black -font *h
199 .
200 .
201 .
202 .
203 edgrif 7113 7038 0.0 13:50:29 ttypb 0:00.41 saceclient -userid edgrif -passwd wallychops -port 20001 griffin
204 &gt;</code></b></pre>
205
206 <P>Oops, damn, now I've given my favourite password away...sigh.
207
208 <P>This may not matter to you if are running on a machine that is not accessible
209 to others but you should be aware of this potential problem.
210
211
212 <a name="server_readonly"></a><H3>Read only databases and saceserver</H3>
213
214 <P>A common requirement for giving general, wide spread access to databases
215 is to be able to make the database "<b>read only</b>" so that it cannot be
216 either accidentally or maliciously damaged. On a Unix system this means making
217 the database directory and all its files/subdirectories readonly to the server and
218 perhaps not accessible to other users at all.
219
220 <P>Assuming that you will run the saceserver as userid johnboy and you want only
221 johnboy to have access to the database, and that johnboy
222 is the owner of all files/directories in the database.
223
224 <P>Prevent other users from having any access to the database:
225
226 <P><pre><b><code>&gt; chmod -R go-rwx &lt;your_database&gt;
227 </code></b></pre>
228
229 <P>Prevent johnboy from having write access to the database in any way:
230
231 <P><pre><b><code>&gt; chmod -R u-w &lt;your_database&gt;
232 </code></b></pre>
233
234 <P>You must then uncomment the <b>READONLY_DATABASE</b> option in the wspec/serverconfig.wrm
235 file for the database to tell the server that the database is intended to be
236 <b>read only</b>. If you don't do this the server will detect that it cannot write to its
237 log file, issue an error message and exit.
238
239
240 <P>Although this arrangement is very secure it does mean that none of the normal logging
241 will take place. Its possible to continue logging but keep the rest of the database
242 <b>read only</b> as well. Follow the above steps but with two important differences:
243
244 <P>Make sure that the server can write to the server log file:
245
246 <P><pre><b><code>&gt; chmod u+w &lt;your_database/database/serverlog.wrm&gt;
247 </code></b></pre>
248
249 <P>Make sure that the <b>READONLY_DATABASE</b> option in the wspec/serverconfig.wrm
250 for the database is commented out, this will tell the server that it should try to
251 write to its logfile.
252
253 <P>This will enable the server to log connections etc. with reasonable security.
254
255
256 <!-- ******************************************************************** -->
257 <a name="Bugs_Fixed"></a><H2>Bugs Fixed</H2>
258
259 <a name="file_chooser"></a><H3>File chooser bug</H3>
260
261 <P>The file chooser sometimes displayed the parent directory of the one
262 actually required (usually the PWD), this is now fixed, the file chooser
263 should always now show the requested directory.
264
265 <a name="fmap_horizontal"></a><H3>Fmap scrolling bugs</H3>
266
267 <P>Two bugs from when horizontal scrolling was introduced into fmap
268 have been fixed:
269
270 <ul>
271 <li>The current horizontal scroll position is maintained when fmap
272 if redrawn for any reason.
273 <li>The horizontal cursor line when clicking with the mouse button
274 now extends completely to the right of the screen when fmap is
275 scrolled horizontally.
276 </ul>
277
278
279 <a name="blixem_reverse"></a><H3>Reverse strand display in Blixem</H3>
280
281 <P>A small buglet in blixem broke reverse-strand display, this is now fixed.
282
283
284 <!-- ******************************************************************** -->
285 <a name="Developers_Corner"></a><H2>Developers Corner</H2>
286
287 <P>If you wish to make comments/suggestions about any of the below, please mail them
288 to <A HREF="mailto:[email protected]">[email protected]</A>
289
290
291 <a name="fil_subs"></a><H3>Small additions to filsubs</H3>
292
293 <P>The new <b><code>filGetDirname()</code></b> function will return just
294 the directory portion of
295 a path, this complements existing functions to return filename and extension.
296 <b><code>filCheck()</code></b> now includes a test for the existence of a file,
297 n.b. you may still not be able to read the file but you can see if it is there !
298
299
300 <a name="getopt"></a><H3>GNU getopt code added</H3>
301
302 <P>The GNU getopt code has been added, this gives us support for
303 single letter and long form command line arguments, the calls in
304 this small package are summarised in wdoc/getopt.html. This is
305 the first part of a two stage plan to standardise our handling of
306 command line options. The aim being a) to bring our handling of
307 command line arguments into line with standard Unix practice, and b)
308 to enable us as developers
309 to add new command line options simply by updating a table of such
310 options and then making a single call later in the code to find out
311 whether an option/value has been specified.
312
313
314 <a name="aceio_bug"></a><H3>aceOutPrint() bug again</H3>
315
316 <P>When the aceio package was written the interface for aceOut was
317 incomplete in that it included an <b><code>aceOutPrint()</code></b> call which should
318 have been named <b><code>aceOutPrintf()</code></b>. This has led to the below usage
319 of <b><code>aceOutPrint()</code></b>:
320
321 <pre><b> char *some_string ;
322
323 aceOutPrint(some string) ;
324 </b></pre>
325
326 <P>Of course there is a problem if <b><code>some_string</code></b> contains the printf
327 formatting character "<b>%</b>", this has tended to lead to incorrect output rather than
328 crashes. Some time in the next month or so documentation will be added and a new
329 "plain string" call added to the aceout package to make the distinction between formatted
330 and plain text output.
331
332
333
334 <!-- ******************************************************************** -->
335 <H2>September monthly build now available.</H2>
336
337 <P>You can pick up the monthly builds from:
338 <dl>
339 <dt><b>Sanger users</b>
340 <dd>~acedb/RELEASE.DEVELOPMENT
341 <dt><b>External users</b>
342 <dd><A href="http://www.acedb.org/Software/Downloads/monthly.shtml">
343 http://www.acedb.org/Software/Downloads/monthly.shtml</A>
344 </dl>
345
346 <!-- ******************************************************************** -->
347 <H2>Next User Group Meeting - D319, 2.30pm, Thursday, 18th September 2001</H2>
348
349 <!-- ******************************************************************** -->
350 <HR>
351 <HR>
352
353 <ADDRESS><A href="mailto:[email protected]">Ed Griffiths &lt;[email protected]&gt;</A></ADDRESS>
354 <!-- hhmts start -->
355 Last modified: Mon Nov 12 08:30:02 GMT 2001
356 <!-- hhmts end -->
357
358 </BODY>
359 </HTML>