Class Announcements

The announcements are divided into the following categories:


Assignments

Top Go to the Top of Class Announcements

Top Go to the Motif class home page


Miscellaneous Notes

Top Go to the Top of Class Announcements

Top Go to the Motif class home page


Text Book and Reference Materials

The following are the required and optional materials. All can be purchased in the school bookstore.

Motif Programming Manual for OSF/Motif Release 1.2, by Dan Heller & Paula Ferguson (Required)
This is probably the best text I have found. It has many examples and covers Motif version 1.2 in the most comprehensive way I have seen.
Class notes (Required)
These notes are copies of all transparencies that are presented in class. There are approximately 250 pages in this package. The school is charging approximately $10.00 to recover photocopying charges. The class notes are required materials. There is material in there notes which is not covered in the Motif Programming Manual.
Motif Reference Manual for OSF/Motif Release 1.2, by Paula Ferguson. (Recommended)
This book, though not required, is strongly recommended. It contains a list of all Motif functions, data structures, and widgets.

Top Go to the Top of Class Announcements

Top Go to the Motif class home page


Lab Writing

During the course, the students will have to write 3 lab assignments. Each lab is a progressively more complex user interface for an on-line address book. The following are the general requirements for writing your labs:

  1. Any copying of labs (or homework) will result in a 0 grade for that assignment.
  2. All submitted header and implementation files (.h and .c) must be written in ANSI C (or C++). This means that you can not use the acc compiler on aplcenmp. You may use the sample makefile if you choose (it uses CC).
  3. All programs must be compiled and tested on aplcenmp. This is where I will do my grading.
  4. You may use my address book application code which manages names and addresses as well as the address book file itself. If the code does not meet your needs, contact me and I will extend it or you may write your own address book code if you wish. This code is written in C++ (with a c wrapper so you do not have to know C++) so your compiler must be able to compile/link C++. The aplcenmp CC compiler compiles and links C++ successfully.
  5. The following are the files I would like you submit. Please, no core files, object files or executables, they will just be deleted.
  6. The mechanism for submission is the following commands:
    1. tar -cvf lab.tar *.h *.c ...
    2. compress lab.tar
    3. uuencode lab.tar.Z myname.tar.Z > lab.uu
    4. mail tien@aplcenmp.apl.jhu.edu < lab.uu

TopGo to the Top of Class Announcements

Top Go to the Motif class home page


Alternative Methods for Accessing aplcenmp

This section discusses several alternative means for writing labs and doing work on aplcenmp. It is possible that many if not all of these methods will not be applicable to your situation, but feel free to use any that are. Remember, the only requirement I have is that you test your work on aplcenmp prior to submitting it. This is where I will be doing the testing, therefore, this is where it MUST work.

General Terminal Emulation

The following are some phone numbers. I do not yet know how to turn on the SLIP or PPP portion of these numbers (there must be a command), but you can dial into these numbers and use the session as a VT-100 for program editing. You won't be able to run your programs until we figure out how to turn on SLIP or PPP.

Useful if you have a home PC with SLIP or PPP Connectivity

Follow the following instructions. For the purposes of discussion, I will assume that your IP address is 111.111.111.111.

Note: I will NOT be responsible for any damage or problems that occur to your system as a result of using the public domain software mentioned below! I will also not accept responsibility for late assignments due to wasted nights attempting to configure your system to make this work.

  1. Follow instructions in /public/binary/windows/Xwin32/README on aplcenmp.apl.jhu.edu
  2. Configure the X Emulator (this is a 1 time operation)
    1. Execute Xutil.exe.
    2. Select the Edit Sessions menu item then New Session.
    3. Enter a name such as apl.
    4. Select rsh from the connect mode radio box.
    5. Type aplcenmp.apl.jhu.edu in the Host Name text field.
    6. Type in your user id in the Login text field (mine is simonoff).
    7. Type xterm in the command field.
    8. Click on OK
    9. Select the menu Options followed by Xhost
    10. Type the name of your session (APL from above for example)
    11. Click on Add then Ok
  3. Now dial up and establish your SLIP or PPP connection
  4. Log into aplcenmp (providing your userid and password)
  5. Type setenv DISPLAY 111.111.111.111:0
  6. Start the Xwin32.exe program
  7. Try running a Motif program, after a delay, it should appear on your PC screen.

Useful if you have a X Terminal at Work

If you have a X Terminal or UNIX workstation capable of supporting a X Server, use the following steps. For the purposes of discussion, I will assume that your IP address is 111.111.111.111.

  1. Log into your UNIX system
  2. Type xhost +
  3. Type telnet aplcenmp.apl.jhu.edu. Note that if this step fails, your firewall will prevent further progress.
  4. Log into aplcenmp providing your userid and password
  5. In the aplcenmp window type setenv DISPLAY 111.111.111.111:0
  6. Try running your Motif application. Note that if your application fails with a message saying something like can't open display, then your firewall is going to prevent this from working.

Useful if you have a home PC without SLIP/PPP access

I have not tried this, but there is a program called Winsock and another called Trumpet. These are located on aplcenmp.apl.jhu.edu in /public/binary/windows/Winsock. There is some documentation there and there are some sample configurations in /public/binary/windows (ppp.info, slip.info, and login.cmd). I know nothing about this software so can provide absolutely no help. If you get it to work and keep careful notes on what you did, I can post the information here for others to use.

TopGo to the Top of Class Announcements

Top Go to the Motif class home page


Course Schedule

The following schedule of course material, assignments and labs may change as the semester proceeds. If we need to slow down or are able to speed up I will track the changes to the following chart:

TopGo to the Top of Class Announcements

Top Go to the Motif class home page


Motif Class FAQ

This section is divided into various sections concerning labs, homework, and general questions. I will create further divisions if needed.

Labs

Homework

General

TopGo to the Top of Class Announcements

Top Go to the Motif class home page


Robert Simonoff - simonoff@aplcenmp.apl.jhu.edu