Included are the Angst
routines for device-independent
alphanumeric and graphics output to a variety of devices.

Dip:
Device-independent plotting - this is an enhancement of the
old Tektronix Plot-10 library, with the addition of
color, polygons, etc.
See instructions for
installation and use of software which uses Dip.

Workstations within BME should use fixed IP addresses that are
assigned. The netmask should be 255.255.255.0 and the gateway address
should be 132.206.111.1. The DNS servers should be set to
132.206.85.18, 132.206.85.19
and 132.206.85.20, and campus.mcgill.ca
should be specified as the domain. See
Network setup for how to do this
under Debian/GNU Linux.

Departmental computing resources
include printers; a shared computer with a scanner;
and access
to a Windows server
(Probe)
that hosts both directories for individuals
and shared lab directories,
all of which are backed up regularly.
Each user has a quota of 5 GB in their personal Probe directory in
biomedusers/.
AudiLab also has a space allocation
in probeShare/Biomed/AUDILAB/.

You need your McGill short username to access Probe.
You can find out what it is
by logging in to Minerva
and going to Personal Menu ►
Password for McGill Username.

If using wireless or if connecting from outside the department,
you must connect to McGill's VPN before connecting to Probe.

From Linux

To access Probe from a Linux computer (assuming that
the package cifs-tools is installed),
in the Nautilus file-system
browser do File ▶ Connect to Server.
In the dialogue box select Windows share
as the Service type and fill in the fields as follows:

Server

probe.campus.mcgill.ca

Folder

biomedusers or probeshare

User Name

your McGill DAS (Short) username

Domain Name

campus

The following alternative procedure for accessing Probe from Linux
requires an Administrator account and uses sudo.

You can download
smbmount.pl, a Perl script that issues
the appropriate smbmount commands to connect to
Probe.
Save the script somewhere and make it executable.
For example, save it in ~/bin/ and then in
a terminal window do

cd ~/bin/
chmod +x smbmount.pl

Thereafter, each time you login you can give the command
~/bin/smbmount.pl to establish the connections to Probe.
You will be asked for your sudo password and then twice for your Mcgill
password. The contents of the
biomedusers and probeShare directories
will now appear in probe and probeShare,
respectively, in your home directory.

The first time you use the script, you will be asked for
your McGill short username.

From Mac OSX

Right-click on Finder
and select Connect to server.
Specify smb://probe.campus.mcgill.ca as the server.
Login with your McGill short username and your McGill password.
Select either biomedusers or probeshare.

From MS Windows

For most computers permanently connected to a network jack, the
Q: and S: drives should automatically be
connected to
\\probe.campus.mcgill.ca\biomedusers\mcgillShortUsername
and
\\probe.campus.mcgill.ca\probeshare,
respectively.

Printing

M$ Windows

See
instructions
for setting up access to McGill's uPrint service. Their instructions
say they apply to Ubuntu 12.10 and up; they apply to
Debian 8 (‘jessie’, now testing,
expected to become stable early in 2015).

Make sure CUPS is installed. (Under Debian GNU/Linux, use
aptitude or some other method to install
cups and its required packages.)
In order to use the Print to file feature within
applications, you also need the cups-pdf package.

The command lpstat -p can be used to see
what printers are available. To look at the job queues, etc.,
in a Web browser go to
http://localhost:631/.

If problems arise when printing Unix-style plain-text files because the
carriage returns are missing, they can be added using
unix2dos.

Printing from the command line

I haven't figured out how to print from within applications because
of the need to specify a username for uPrint. Instead, I produce PDF files
and print them from the command line.

username is your McGill short username,
or the short username associated with a McGill uPrint card.
printername should be mcgill_mono
or (only if necessary) mcgill_color.
filename is the name of the file to be printed
(usually a PDF file).
In the example there are several optional specifiers:

-o sides is used to specify two-sided
printing.

-n is used to print multiple copies.

-o number-up is used to print
multiple document pages on each output page.

-P is used to specify which pages to print,
with commas and hyphens but no spaces
(e.g., 1-5 or 1,3-7,10).
Note that the page numbers in the pagelist
are given
in terms of output pages, not in terms of the pages in the document.
If, for example, number-up=2, then a
pagelist of 1-3
would result in printing pages 1 to 6 of the document.

I have a script lp.tcl which
prompts for various options
and submits the appropriate lp command.

Organization of AudiLab software

The source files for a library are generally in the same directory as the
object-library file, and are listed in a .nam file.
The .nam file may
include pointers to other directories for some of the modules.

For libraries developed here, there are two naming conventions: a source
file contains either

a single subprogramme with the same name, e.g.,
decodf.for
contains the subroutine decodf; or

a collection of subprogrammes, each with a name starting with the
file name, e.g., days.for includes
days_from_s_auto,
days_from_s, days_from_i, etc.

Most of my software is written in Fortran 77/90 with some C.
For Fortran code, the subprogrammes are usually subroutines rather than
functions. For C, of course, there are only functions.