We have switched from Google Groups to Piazza for the class newsgroup of questions and answers. Click on the "Class Newsgroup" link in the menu for more information.
Cross-Site Scripting Problem (XSS) in Firefox
Some of the students may find that their code works correctly in Firefox if they are accessing all the XML files locally from their machines,
but get "Permission denied" error, if the same files are accessed from course website. This is because the script, lying on your machine, is
trying to act upon a file that is hosted on another domain. This is called cross side scripting which is not allowed in browsers. It turns out
that Firefox's implementation is more restrictive as compared to IE, when it comes to XSS. So, please make sure, when you are testing your
implementation, either both the HTML/Javascript file and the XML file are on your local machine or both the files are on your course unix account.
SUBMIT Command
The SUBMIT command can be executed from cs-server.usc.edu, csci571.usc.edu, aludra.usc.edu or nunki.usc.edu.
UNIX Information
For the students that have never seen UNIX before, here are a few links with useful information:
General information on operating systems, productivity applications,
Internet connectivity, e-mail and web publishing at USC, can be found
at the
ITS Help site.
Methods for Getting Rid of the USC Disclaimer
Below are four possible ways To get rid of the USC Disclaimer
which appears at the bottom of each web page:
place a NOSCRIPT tag immediately before the /BODY tag.
<NOSCRIPT>
</BODY>
But some people have found that the suggestion of
using the <NOSCRIPT> tag at
the end of the HTML file does not work if they have lines such as
writeln("</BODY>") in their JavaScript code.
Another way to get rid
of the USC disclaimer is to use this code at the beginning of the HTML
file, right after the closing </HEAD> tag:
<!--
<BODY>
<div style="display: block; font-family: Verdana, Geneva, Arial;
font-size: 10px">
The University of Southern California does not screen or control the
content on this website and thus does not guarantee the accuracy,
integrity, or quality of such content. All content on this website is
provided by and is the sole responsibility of the person from which
such content originated, and such content does not necessarily reflect
the opinions of the University administration or the Board of Trustees
</div>
<div style="display: block; font-family: Verdana, Geneva, Arial;
font-size: 10px">
The University of Southern California does not screen or control the
content on this website and thus does not guarantee the accuracy,
integrity, or quality of such content. All content on this website is
provided by and is the sole responsibility of the person from which
such content originated, and such content does not necessarily reflect
the opinions of the University administration or the Board of Trustees
</div>
</BODY>
//-->
Notice that to avoid showing the USC disclaimer on this page in
between the code above, I had to add the same code at the beginning of
this file (you can View Source this page to check this out).
Another Approach
Try putting a </body> tag inside a comment tag: <!-- </body> -->
> before your javascript.
Another approach:
split <body> into two strings "<bo" + "dy>"
Late Assignment Policy
Homework submitted for grading before or on the "Homework Due Date", as listed
in the Schedule of Lectures, will be eligible for 100% of the grade points for
the assignment. Homework submitted late will be accepted for up to 7 calendar
days after the due date, and will receive an automatic 10% penalty. Homework
submitted more than 7 days after the due date will not be accepted.
Accounts for on-campus and DEN students
If you are a remote student, you may get an account on a USC machine or use a
corporate or personal web site. To arrange for a USC
computer account, connect to the DEN web site at http://den.usc.edu/.
On campus students need to establish a directory in which they can store web
pages that will be delivered by USC's student web server. Complete
instructions on how to do this can be found at
http://www.usc.edu/uscweb/authoring/ppages.html.
cs-server.usc.edu machine
If you are not using a personal or corporate account, but are using the
USC machines, then please do your assignments only on the server
assigned to this class, either cs-server.usc.edu or csci571.usc.edu
Students in all sections: ssh to cs-server.usc.edu
Port Assignment Policy
To ensure that the possible collisions of TCP/IP ports among students are minimized, please
follow the following port assignment methodology, based on the last 5 digits
(XXXXX) of the random number that was assigned to you when you signed up the
class list:
Use Instead of
XXXXX: Apache port 80 (HTTP port)
XXXXX+1: Tomcat port 8080 (HTTP port)
XXXXX+2: Tomcat port 8005 (admin shutdown port)
XXXXX+3: Tomcat port 8009 (Apache jk port)
XXXXX+4: MySQL port 3306 (TCP/IP port)
Please replace the default ports with the above numbered ports.