CpSc 317 -- Scripting
Languages - Week 1
About the course: scripting languages
- JavaScript
- UNIX shell
- CGI (rather
http://obsidian.sru.edu/~username/cgi/yourscript)
- PHP
Equipment and labs: ATSH 224
granite, obsidian,
accounts, etc.
Syllabus,
Class home page
Class resources
Requirements on homework:
- Unless otherwise specified, assignments are completed
through submitting e-mail to the instructor.
- Your
e-mail to me should contain, in the SUBJECT LINE the course number:
"317"
followed by your last name and the assignment number. If your
assignment
does not follow this format exactly,
your grade on
that assignment may be zero.
- Assignments involving web pages with JavaScript: work
should be completed in your obsidian directories and your
email to me should contain the
URL of the pages you've developed.
- Assignments involving server-side scripts:
- work should be completed in your account
on obsidian.
- your email should include, within the body of the mail
message (not as an attachment), an ASCII copy of the server-side
program(s) you've developed, as well as the pathname of the work
on obsidian
Obsidian and web services: (from our tech support):
The students will login with their regular
network credentials. If they PuTTY into Obisidan the login is
“SRUNET\<username>”. They can access their web folder on Obsidian
at “/var/www/html/users/<username>” or http://obsidian.sru.edu/users/<username>
To make a "shortcut" (an environment variable initialized upon login) to that, place the lines
export cw="cd http://obsidian.sru.edu/users/<username>"
export www="http://obsidian.sru.edu/users/<username>"
in your file named .bashrc . It may then be retrieved via $www, as in the commands ls $www or simply $cw.
If you need to make a file readable by a script, you may need to run the command
chcon -t httpd_sys_content_t filename
Assignment #1: Due Friday
September 2.
e-mail me (as per
above instructions) verifying the status of
- your e-mail account
- your obsidian
account (you should be able
to
login using your standard campus username and password)
- your web and cgi directories (see instructions below
about "making and testing your web and cgi directory )
Assignment #1B: Due Friday September 2.
required
assignment: log onto D2L and take the Junior survey
go
to D2L, maybe through MySRU or perhaps though https://sru.desire2learn.com/
- students use their SRU network ID (without the
@sru.edu)
- and if they have NEVER gone into D2L before or
have not changed their password their password is their
birthdate (MMDDYY).
Once you are in D2L, the Junior survey can be found under "Ongoing section -> Computing
Students Survey -> More -> Surveys -> Junior
Survey - Fall 2016."
.. just click on the survey and follow the instructions
from that point on.
Note:
You don't need to email me about the completion of this assignment,
since I'll be hearing from the higher ups (like maybe the governor?) if
you don't do it.
Assignment#2
Due: TBA,
this is to make sure that your JavaScript is up to speed (i.e., that
you learned what you should have in CPSC217)
What you should know:
- HTML -- tables, forms, images, frames
- JavaScript -- DOM, innerHTML, functions, looping and
conditionals, form elements, event handling.
- UNIX -- basic navigation, shell scripting, sed, awk, loops,
variables
- Networks -- browser, IP, DNS, HTTP, telnet, ftp, Homesite networking
Demonstrations:
- A UNIX shell script at work:
| |
Enter two strings. We'll see if we
can find an English word which contains both as substrings:
|
How it
works
Reading:
- Readings on JavaScript.
- Making and testing
your web and cgi directories
- Resetting your
UNIX prompt, so it shows what directory you are in.
- Some of you who have been using the Firefox browser from
within Linux may have a problem with disk quota. Jonathon Litz offers
this advice.
- Slicing
in Photoshop (may help with Assignment 2)
- Web
audio standards Those interested more in sound/music than graphics may want to start learning about this
Informational: A
review of web hosting services