Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang Launching DrJava from Windows Lab Open My Computer from Start Menu Click on \\labserv\pclab drive Click on CS111 folder Click on drjava.bat This should mount the CS drive in your file explorer and also launch DrJava MobaXterm Install free version from… http://mobaxterm.mobatek.net/download.html On lab computers, can be found under the Computer Science folder in All Programs in the start menu Click on Session Button Click on SSH button at top right of window For Remote Host put… gbcs#.cc.gettysburg.edu where # is some number from 1 to 18… Click on specify username and enter college username Change port to 222 Click on OK and enter password when prompted Mounting CS Drive 1. From the Start menu choose Computer. 2. In the Computer window there is a “Map Network Drive” link near the top. 3. Enter \\ada.cc.gettysburg.edu\<username> in the box and select a drive letter. Replace <username> with your username. 4. Uncheck “Reconnect at Logon”. 5. Hit OK. A window should magically appear containing your files. Secure Shell ssh ◦ Hosts: gbcsN.cc.gettysburg.edu N=1..22 ◦ Port: 222 Commands: ◦ ssh gbcs3.cc.gettysburg.edu –p 222 –l user ◦ ssh [email protected]:222 Hello World Diff (Python File) Open gedit Type… print("Hello World") Save file as helloworld.py Hello World Diff (Java File) Open drjava Type… public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } Save file as HelloWorld.java Testing Diff Run the following in the terminal.. python helloworld.py > helloworld_out.txt java HelloWorld > HelloWorld_out.txt diff helloworld_out.txt HelloWorld_out.txt This will test to see if each programs output is the same