NYU CSCI-UA 0002 - Introduction to Computers and Programmin

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Intro: Computers & Programming Administrative Matters V22.0002Adam MeyersNew York University Introduction to: Computers & Programming: Outline of 2nd ClassIntro: Computers & Programming Administrative Matters V22.0002Outline• Address at least some of the installation issues•Try to make sure everyone knows how to load Idle (Integrated Development Environment) and demo how to use/load python• Start Learning about How Computers Work• Start Print Statements, Data Types and OperatorsIntro: Computers & Programming Administrative Matters V22.0002Windows 7 Installation Issue• Error 2755 – something to do with encryption• Download python 3.1.x on a USB memory stick instead of hard drive• Run installation of memory stickIntro: Computers & Programming Administrative Matters V22.0002Working With the Apple Shell•Apple is built on top of a version of UNIX called BSD–Much of what is proprietary is a GUI•Commands in the Apple terminal windows are UNIX commands–Like Linux, Android (a version on linux)•Directory Structure•Administrative Permission•What is a Symbolic Link?•Defaults programs by file type (for purposes of the GUI)Intro: Computers & Programming Administrative Matters V22.0002Some UNIX commands in Apple– all of which are relevant to the installation problems• ln -s FILE TARGET (creating a symbolic link)• ls -lt | more – ls lists the files (like dir in MSDOS)– “-lt” are parameters• -l produces a more detailed list (including time stamp)• -t sorts the list by time: new to old• which FILENAME – which instance of FILENAME is the default (full pathname)• whereis FILENAME – locates a file• sudo – insert before any command that requires administrative privlegesIntro: Computers & Programming Administrative Matters V22.0002More Installation Issues• Going back to last slides from last class to review making Python 3 the default for Apple• The PATH variable in Apple –See .profile or .bashrc etc.• I will take a few minutes at the end of class if there are too many of these problemsIntro: Computers & Programming Administrative Matters V22.0002Defaults for Running Programs of Particular File Types•In Both Windows and Apple–If you double click on a file, there is a default program to handle that file type–If you right click (or Apples' equivalent), you can choose other options including “open with” where you select the program to run it.–doing the latter, you can set the default programIntro: Computers & Programming Administrative Matters V22.0002Different Ways of Using Python•Double Clicking on a Python Program• Running a python program from the shell–python program.py• Using IDLE – What we will mostly be doing in


View Full Document

NYU CSCI-UA 0002 - Introduction to Computers and Programmin

Download Introduction to Computers and Programmin
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction to Computers and Programmin and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Computers and Programmin 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?