langara networking labs

Observations from an outlier

langara networking labs

langara-networking-labs-vertical-challenge-3
    Computer Networking with Java

UPDATE (Jul 28): Use Jetty version 6+ for the SSL portion on lab 7.

For the last two labs, try the Low Orbit Ion Cannon to really stress test your web servers!

And if you think you’re going to be doing more Java, I suggest these articles below. After doing this course, you should feel confident with you Java coding abilities. Be ready to answer these types of design questions at a job interview. Actually, you often have to pass these types of tests in writing, before getting to shake hands with a potential employer.

Object Oriented Design Principles

Top Ten Interview Questions

Java Threading Interview

Ok, been some interesting FTP logs here. As I’ve been running scripts on your work, I also check the logs for things like this. Look’s fishy to you? So, I’ve turned IP auto ban back on. We set user names and passwords in the lab now, so you shouldn’t be having more than ten attempts to login. Keep in mind that when in the lab, you all appear to be the same IP, so you will ban the lab’s IP if not careful!

(000197) 25/05/2012 19:43:26 PM – (not logged in) (61.19.124.106)> USER charlie (000197) 25/05/2012 19:43:26 PM – (not logged in) (61.19.124.106)> 331 Password required for charlie (000197) 25/05/2012 19:43:36 PM – (not logged in) (61.19.124.106)> PASS ******** (000197) 25/05/2012 19:43:36 PM – (not logged in) (61.19.124.106)> 530 Login or password incorrect! (000197) 25/05/2012 19:44:06 PM – (not logged in) (61.19.124.106)> USER charlie

(000197) 25/05/2012 19:44:06 PM – (not logged in) (61.19.124.106)> 331 Password required for charlie

(000198) 25/05/2012 19:46:10 PM – (not logged in) (61.19.124.106)> USER charlotte (000198) 25/05/2012 19:46:10 PM – (not logged in) (61.19.124.106)> 331 Password required for charlotte (000198) 25/05/2012 19:46:20 PM – (not logged in) (61.19.124.106)> PASS ******** (000198) 25/05/2012 19:46:20 PM – (not logged in) (61.19.124.106)> 530 Login or password incorrect! (000198) 25/05/2012 19:46:50 PM – (not logged in) (61.19.124.106)> USER charlotte (000198) 25/05/2012 19:46:50 PM – (not logged in) (61.19.124.106)> 331 Password required for charlotte (000198) 25/05/2012 19:47:08 PM – (not logged in) (61.19.124.106)> PASS ****** (000198) 25/05/2012 19:47:08 PM – (not logged in) (61.19.124.106)> 530 Login or password incorrect!

(000198) 25/05/2012 19:47:28 PM – (not logged in) (61.19.124.106)> disconnected.

An example of a script to test the submitted ZIP files. Here, lab1 has a list of files that are required to be complete. Your ZIP file is extracted to a folder and tested for the existence of these required files. Note that your zip file must not have any sub folders, just these files. Several other operations will be performed on you files to determine your score, but this is the bare minimum test you can run on your ZIP file before FTP’ing in your work. You are welcome to see this source code here.

static String[] requiredFiles = { 
"osx32.txt", 
"osx64.txt", 
"lab1-win.txt", 
"join.txt", 
"answers1.txt", 
"SystemCompare.java" };

static File[] list = Import.getFolders();
static LogFile log = null;

public static void main(String[] args) {
                
new File("../reports/lab1").mkdirs();
log = new LogFile("../reports/lab1/report.txt");
log.append("# run on " + new java.util.Date().toString());
                
// do each student in class list 
for(int i = 0 ; i < list.length ; i++){
        if(Util.hasFile(list[i], "lab1.zip")){
                                
        final String workingFolder = "../reports/lab1/" + Util.getID(list[i]);
                                
        // unpack the zip file 
        Util.unzipFolderJava(list[i] + "/lab1.zip", workingFolder);
                                
        // check for completeness 
        Util.hasRequired(workingFolder, requiredFiles, log);
                                
        // check for correct join file 
        // Util...
                                        
       } else log.append(Util.getID(list[i]) + " doesn't have the zip file! [LATE]");
...