Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 Class Website

Slides:



Advertisements
Similar presentations
Chapter 8 Technicalities: Functions, etc. Bjarne Stroustrup
Advertisements

Java Development Kit Installation Guide Sun Microsystems.
GP Patient Survey Mouse-click your way through step-by-step instructions Software Installation Guide.
ANT – Another Neat Tool Representation and Management of Data on the Internet.
Python Programming Chapter 1: The way of the program Saad Bani Mohammad Department of Computer Science Al al-Bayt University 1 st 2011/2012.
Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
How to Create a Java program CS115 Fall George Koutsogiannakis.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 10 Java (Object Oriented) ASP RDF (Horn Clause Deduction, Semantic Web) Relation Jython.
 When you receive a new you will be shown a highlighted in yellow box where your can be found  To open your new just double click.
Java web development Servlet & Java server pages.
SERVLETS.
Installing Ricoh Driver. Items you need to know IP address of Printer Options that are installed And Paper Sizes To get all this information you can print.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Dr. Philip Cannata 1 with ReL. Dr. Philip Cannata 2 10 Java (Object Oriented) ASP RDF (Horn Clause Deduction, Semantic Web) Relation Jython in Java This.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
Pre-Coding Web Design – Sec 3-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
CSE 305 Theory of Database Tutorial on Connecting with Sybase from Java program and Developing GUI Jalal Mahmud, TA, CSE 305.
Introduction to Programming Workshop 1 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
Dr. Philip Cannata 1 Programming Languages. Dr. Philip Cannata 2 Class Website
Computer Science Department UoC. Outline Emerald Framework Overview Communication pattern Software Requirements Setup sequence Cs566 project objective.
HTML Hyper Text Markup Language A simple introduction.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Basic Setup Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Java ACO101: Introduction to Computer Science. The History of Java Started out as a research project at Sun Microsystems in 1991 Code named “Green” Based.
( ) 1 ISYE 7210—Fall 2005 Design of Real-Time Interactive Simulations (in Java) Initial Notes Christine M. Mitchell Director & Professor Center for.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
CPSC 217 T03 Week I Part #1: Unix and HELLO WORLD Hubert (Sathaporn) Hu.
Lecture 21 CS110 Lecture 2 January 29, 2004 Announcements –hw1 part 1 – due right now –hw1 part 2 – due Tuesday night Questions Agenda –turnin –Object.
Agenda For Feb PowerPoint Presentation (Introduction to Java Methods) 2.Finish Unit 2 exercises on page 13 (due by the end of the class today). 4.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Ant & Jar Ant – Java-based build tool Jar – pkzip archive, that contains metadata (a manifest file) that the JRE understands.
 When you receive a new you will be shown a highlighted in yellow box where your can be found  To open your new just double click.
Setting up Cygwin Computer Organization I 1 May 2010 ©2010 McQuain Cygwin: getting the setup tool Free, almost complete UNIX environment emulation.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Installing SPHINX by: COLLEGE OF ART & SCIENCE UNIVERSITI UTARA MALAYSIA STIW5023 ADVANCED PROGRAMMING.
Introduction to Scripting Workshop October
M1G Introduction to Programming 2 5. Completing the program.
Installing and Configuring Tomcat SSE. Downloading Tomcat l Download url: 4.0/release/v4.1.24/bin/
Chapter 1 Introducing Ant. What is ant? Ant is a build tool  Automate the tasks of compiling code, running test, and packaging the results for redistribution.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
Required Tools Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
How to Improve Your Grades Are your grades rather low? Maybe it's the beginning of school, and your not getting off to a good start. Well, this easy to.
1 CS 381 Introduction to Discrete Structures Lecture #1 Syllabus Week 1.
This is Bonus Video 4.1B in the course: Get Paid To Write Copy Module 4: How to speak to clients, quote for work and get paid what you’re worth.
GOOGLE PLAY By William Cook April 14, GOOGLE PLAY Marketplace for apps for android Androids “app store” You must make an account on the developer.
Introduction to Scripting Workshop February 23, 2016.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Required Tools Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission from.
Introduction to CSCI 1311 Dr. Mark C. Lewis
Installing Cygwin from
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
JavaTeaching and Importing a github repository
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Add a dues payment to the Dues manager module for the Grand Lodge of Nebraska LSI Lodge Secretary Interface online Membership Database.
CSE 303 Concepts and Tools for Software Development
Review of Previous Lesson
Presentation transcript:

Dr. Philip Cannata 1 Programming Languages

Dr. Philip Cannata 2 Class Website

Dr. Philip Cannata 3 10 Java (Object Oriented) ASP RDF (Horn Clause Deduction, Semantic Web) Relation Jython in Java This Course High Level Languages

Dr. Philip Cannata 4 ON PROOF AND PROGRESS IN MATHEMATICS WILLIAM P. THURSTON Most of the audience at an average colloquium talk gets little of value from it. Perhaps they are lost within the first 5 minutes, yet sit silently through the remaining 55 minutes. Or perhaps they quickly lose interest because the speaker plunges into technical details without presenting any reason to investigate them. At the end of the talk, the few mathematicians who are close to the field of the speaker ask a question or two to avoid embarrassment. This pattern is similar to what often holds in classrooms, where we go through the motions of saying for the record what we think the students “ought” to learn, while the students are trying to grapple with the more fundamental issues of learning our language and guessing at our mental models. Professors compensate by giving homework and tests that are much easier than the material “covered” in the course, and then grading the homework and tests on a scale that requires little understanding. We assume that the problem is with the students rather than with communication: that the students either just don’t have what it takes, or else just don’t care.... In reaction to my experience with foliations and in response to social pressures, I concentrated most of my attention on developing and presenting the infrastructure in what I wrote and in what I talked to people about. I explained the details to the few people who were “up” for it. I wrote some papers giving the substantive parts of the proof of the geometrization theorem for Haken manifolds—for these papers, I got almost no feedback. Similarly, few people actually worked through the harder and deeper sections of my notes until much later. The result has been that now quite a number of mathematicians have what was dramatically lacking in the beginning: a working understanding of the concepts and the infrastructure that are natural for this subject. … What mathematicians most wanted and needed from me was to learn my ways of thinking, and not in fact to learn my proof of the geometrization conjecture for Haken manifolds.

Dr. Philip Cannata 5

Dr. Philip Cannata 6 You may need two brains

Dr. Philip Cannata 7 Build this using javacc High Level Languages

Dr. Philip Cannata 8 Relation-based (Functional) Languages

Dr. Philip Cannata 9 ON PROOF AND PROGRESS IN MATHEMATICS WILLIAM P. THURSTON When one considers how hard it is to write a computer program even approaching the intellectual scope of a good mathematical paper, and how much greater time and effort have to be put into it to make it “almost formally correct, it is preposterous to claim that mathematics as we practice it is anywhere near formally correct. … Godel’s incompleteness theorem implies that there can be no formal system that is consistent, yet powerful enough to serve as a basis for all of the mathematics that we do. … Mathematics as we practice it is much more formally complete and precise than other sciences, but it is much less formally complete and precise for its content than computer programs. The difference has to do not just with the amount of effort: the kind of effort is qualitatively different. In large computer programs, a tremendous proportion of effort must be spent on myriad compatibility issues: making sure that all definitions are consistent, developing “good” data structures that have useful but not cumbersome generality, deciding on the “right” generality for functions, etc. The proportion of energy spent on the working part of a large program, as distinguished from the bookkeeping part, is surprisingly small. Because of compatibility issues that almost inevitably escalate out of hand because the “right” definitions change as generality and functionality are added, computer programs usually need to be rewritten frequently, often from scratch.

Dr. Philip Cannata 10 The tools you will need to get started javac javacc cygwin (if you’re going to be using Windows) Ant jython See next pages for downloading and installation jDeveloper (see instruction doc on class calendar) SQLDeveloper (see instruction doc on class calendar)

Dr. Philip Cannata 11 Download JDK 6 from Change your path environment variable to include the path to javac Installing javac on Windows This one

Dr. Philip Cannata 12 Installing javacc on Windows

Dr. Philip Cannata 13 Installing javacc on Windows

Dr. Philip Cannata 14 Installing javacc on Windows Download javacc from I put the zip file in C:\Program Files\Java and extracted it to there. So, javacc is in C:\Program Files\Java\javacc-5.0\javacc-5.0\bin Change your path environment variable to include C:\Program Files\Java\javacc-5.0\javacc-5.0\bin or whatever your path is. Do the following to do this: path environment variables are in the System Properties -> Advanced Tab -> Environment Variables? Add the javacc path to the front of the existing “path” environment variable followed by a semi- colon? Edit the javacc program as follows: #!/bin/sh JAR="`dirname "$0"`/lib/javacc.jar" case "`uname`" in CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;; esac java -classpath "$JAR" javacc Put double quotes around $0

Dr. Philip Cannata 15 javacc on the CS machines Greetings, We've installed javacc, the java compiler compiler. This is a parser generator for java. See for details. This will be made available on all departmental machines after our nightly cron job runs this evening. Javacc will be in the default $PATH, so you can access it simply by running 'javacc' from a terminal. However, if you need to use the javacc.jar file, you will need to add its location to your $CLASSPATH environmental variable. I have created a set of shell scripts to ease this process. If you use bash, run the following: source /lusr/share/lib/java/javacc/env.d/append.sh If you run csh or tcsh, run this instead: source /lusr/share/lib/java/javacc/env.d/append.csh Please send mail to gripe if you have any questions. -jason

Dr. Philip Cannata 16 Installing Cygwin from

Dr. Philip Cannata 17 Download Cygwin Install File (Optional)

Dr. Philip Cannata 18 Download Cygwin Install File (Optional) 12 34

Dr. Philip Cannata 19 Download Cygwin Install File (Optional) 12 34

Dr. Philip Cannata 20 Don’t take the Default. See next page. Download Cygwin Install File (Optional)

Dr. Philip Cannata 21 Click here until you have All Install Download Cygwin Install File (Optional)

Dr. Philip Cannata 22 Download Cygwin Install File (Optional)

Dr. Philip Cannata 23 Installing Cygwin

Dr. Philip Cannata 24 Installing Cygwin 12 34

Dr. Philip Cannata 25 Installing Cygwin 12 3

Dr. Philip Cannata 26 Don’t take the Default. See next page. Installing Cygwin

Dr. Philip Cannata 27 Click here until you have All Install Installing Cygwin

Dr. Philip Cannata 28 Installing Cygwin

Dr. Philip Cannata 29 Installing Cygwin Many hours later

Dr. Philip Cannata 30 Installing Cygwin See next page

Dr. Philip Cannata 31 $ cat.profile export PATH="/cygdrive/c/ant-1.8.2/bin:$PATH" export PATH="/cygdrive/c/javacc/javacc-5.0/javacc-5.0/bin:$PATH" export PATH="/cygdrive/c/java/jdk1.6.0_23/bin:$PATH" export PATH ="/cygdrive/c/Documents and Settings/cannata/My Documents/pcannata/UT/Fall 2011 Projects/Builds/jython/extlibs:$PATH" export JAVA_HOME='C:\java\jdk1.6.0_23' export JAVACC_HOME='C:\javacc\javacc-5.0\javacc-5.0\bin\lib' $..profile $ echo $PATH | tr ":" "\n" /cygdrive/c/Documents and Settings/cannata/My Documents/pcannata/UT/Fall 2011 Projects/Builds/jython/extlibs /cygdrive/c/java/jdk1.6.0_23/bin /cygdrive/c/javacc/javacc-5.0/javacc-5.0/bin /cygdrive/c/ant-1.8.2/bin /usr/local/bin /usr/bin /cygdrive/c/app/cannata/product/11.2.0/dbhome_1/bin /cygdrive/c/WINDOWS/system32 /cygdrive/c/WINDOWS /cygdrive/c/WINDOWS/System32/Wbem /cygdrive/c/Program Files/Toshiba/Bluetooth Toshiba Stack/sys /cygdrive/c/Program Files/TortoiseSVN/bin /usr/lib/lapack ~ *** Important Cygwin Setup *** Change.profile or.bash_profile to have lines similar to these depending on where your ant, javacc and javac are located.

Dr. Philip Cannata 32 *** Important Cygwin Setup ***

Dr. Philip Cannata 33 URL of repository: Download SVN Client (tortoisesv): Download jython source Create some folder to hold the jython code.

Dr. Philip Cannata 34 Download ant: Build jython $ cd C: $ cd Myjython/jython/ $ vi setEnv.sh $ cat setEnv.sh export PATH="/cygdrive/c/ant-1.8.2/bin:$PATH" export JAVA_HOME="/cygdrive/c/java/jdk1.6.0_23" $../setEnv.sh $ ant Buildfile: C:\Myjython\jython\build.xml init: needed-check: clean-if-antlr-needed: init: clean-checkout-dir: clean: prepare-output: [mkdir] Created dir: C:\Myjython\jython\build\classes [mkdir] Created dir: C:\Myjython\jython\build\gensrc\org\python\antlr [mkdir] Created dir: C:\Myjython\jython\build\exposed antlr_gen:... You need to create this file using something like wordpad. These need to be the correct paths for your system.

Dr. Philip Cannata 35 Try jython 3. $ Try it out $ dist/bin/jython Jython 2.6a0+ (trunk, Aug , 19:41:57) [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_23 Type "help", "copyright", "credits" or "license" for more information. >>> >>> (lambda x: x)(4) 4 >>> (lambda x: x+10)(4) 14 >>>