Downloading Tweet Streams and Parsing
|
|
- Abner Elliott
- 6 years ago
- Views:
Transcription
1 and Parsing Ayan Bandyopadhyay IR Lab. CVPR Unit Indian Statistical Institute (Kolkata) To download this slide go to: 1
2 and Parsing Downloading Tweet Streams It is imagined that Tweets are flowing in the microblogging site twitter.com like water in river. Tweet Parsing (JSON format) 2
3 Downloading Tweet Streams - Basic requirement - Necessary steps - Write Java code 3
4 Basic Requirement OS: Windows or any flavor of Unix that supports Java. JVM: Java 5 or later Assuming JAVA_HOME has been set properly Assuming CLASSPATH has been set properly 4
5 Downloading Tweet Streams - Basic requirement - Necessary steps 5
6 and Parsing We will use Twitter4j library About Twitter4j Go to Twitter4J is an unofficial Java library for the Twitter API. With Twitter4J, you can easily integrate your Java application with the Twitter service. 6
7 Necessary steps Download twitter4j-core jar and twitter4j-stream jar ( and ) Put these jars in the CLASSPATH or add the jars in the CLASSPATH variable Create new Twitter App and get Access tokens Save these Access tokens in the init.properties file 7
8 Necessary steps Download twitter4j-core jar and twitter4j-stream jar ( and ) Put these jars in the CLASSPATH or add the jars in the CLASSPATH variable Create New Twitter App and get Access tokens 8
9 Go to and click the Create New App button 9
10 Fill up the text fields and scroll down 10
11 Agree to the license agreement and then Click Create your Twitter Application Button 11
12 Click Keys and Access Token tab 12
13 Scroll down and Click on the Create my Access Token button 13
14 Finally you got the tokens. 14
15 Necessary steps Download twitter4j-core jar and twitter4j-stream jar ( and ) Put these jars in the CLASSPATH or add the jars in the CLASSPATH variable Create New Twitter App and get Access tokens Save these Access tokens in the init.properties file 15
16 Save these Access tokens in the init.properties file -Create a file init.properties and save tokens in against the following four variables consumerkey= consumersecret= accesstoken= accesssecret= 16
17 Necessary steps Download twitter4j-core jar and twitter4j-stream jar ( and ) Put these jars in the CLASSPATH or add the jars in the CLASSPATH variable Create New Twitter App and get Access tokens Save these Access tokens in the init.properties file 17
18 Downloading Tweet Streams - Basic requirement - Necessary steps - Write Java code 18
19 Write Java code Use methods, objects from the 2 Twitter4j jar files, + saved access tokens in your Java code 19
20 You can use this project Download zipped project from Extract the project cd <Where_project_was_downloaded> unzip TweetStream.zip If you want to use any integrated development environment (IDE) Import project into IDE. Add jar file into the project. 20
21 Import libraries and declare variables Read Access tokens from init.properties Configure Access tokens using ConfigurationBuilder object Configure StatusListener object Configure TwitterStream object Write the main() function Most frequent/possible problems 21
22 Import libraries and declare variables import twitter4j.*; import twitter4j.conf.*; import java.io.*; import java.util.*; 22
23 Declare four Access token variables. These variables will store access tokens String consumerkey; String consumersecret; String accesstoken; String accesssecret; And need to declare three more objects ConfigurationBuilder cb; StatusListener listener; TwitterStream twitterstream; 23
24 Import libraries and declare variables Read Access tokens from init.properties 24
25 public void getvaluesfrompropfile(string propfile) throws IOException { prop = new Properties(); prop.load(new FileReader(propFile)); consumerkey = prop.getproperty("consumerkey"); consumersecret = prop.getproperty("consumersecret"); accesstoken = prop.getproperty("accesstoken"); accesssecret = prop.getproperty("accesssecret"); } propfile is the path to the init.properties file (e.g.). 25
26 Import libraries and declare variables Read Access tokens from init.properties using java project Configure Access tokens by ConfigurationBuilder object 26
27 public void ConfigurationBuild() throws Exception { cb = new ConfigurationBuilder(); cb.setdebugenabled(true); //optional cb.setjsonstoreenabled(true); } cb.setoauthconsumerkey(consumerkey); cb.setoauthconsumersecret(consumersecret); cb.setoauthaccesstoken(accesstoken); cb.setoauthaccesstokensecret(accesssecret); 27
28 Import libraries and declare variables Read Access tokens from init.properties using java project Configure Access tokens by ConfigurationBuilder object Configure StatusListener object 28
29 public void StatusListenerConfigure() { listener = new StatusListener() public void onexception(exception arg0) { // TODO Auto-generated method stub public void ondeletionnotice(statusdeletionnotice arg0) { // TODO Auto-generated method stub public void onstallwarning(stallwarning warning) { public void onscrubgeo(long arg0, long arg1) { // TODO Auto-generated method stub public void ontracklimitationnotice(int arg0) { // TODO Auto-generated method stub public void onstatus(status status) { printstatus(status); } } }; 29
30 private void printstatus(status status) { // to print Json format output. System.err.println(TwitterObjectFactory.getRawJSON(status)); } 30
31 Import libraries and declare variables Read Access tokens from init.properties using java project Configure Access tokens by ConfigurationBuilder object Configure StatusListener object Configure TwitterStream object 31
32 void listentostream() throws Exception { mytwitterstream = new TwitterStreamFactory(cb.build()).getInstance(); mytwitterstream.addlistener(mylistener); // sample() method internally creates a thread which monitors mytwitterstream and calls the registered listener methods (mylistener in this case) whenever a Tweet is received. } mytwitterstream.sample(); 32
33 Import libraries and declare variables Read Access tokens from init.properties using Java project Configure Access tokens by ConfigurationBuilder object Configure StatusListener object Configure TwitterStream object Write the main() function 33
34 main() function is like.. public static void main(string[] args) { try { TweetStream TS = new TweetStream(); TS.getValuesfromPropFile("/c/TwitterStream/etc/init.properties"); TS.ConfigurationBuild(); TS.StatusListenerConfigure(); TS.listenToStream(); } catch (Exception ex) { ex.printstacktrace(); } } 34
35 Import libraries and declare variables Read Access tokens from init.properties using Java project Configure Access tokens by ConfigurationBuilder object Configure StatusListener object Configure TwitterStream object Write the main() function Most frequent/possible problems 35
36 Most frequent/possible problems Access token problem/tokens not valid Try creating another set of access tokens Time out problem Due to Internet speed and availability time out occurs. In this case you have to do nothing but wait. 36
37 Import libraries and declare variables Read Access tokens from init.properties using Java project Configure Access tokens by ConfigurationBuilder object Configure StatusListener object Configure TwitterStream object Write the main() function Most frequent/possible problems 37
38 Downloading Tweet Streams - Basic requirement - Necessary steps - Write Java code 38
39 and Parsing Downloading Tweet Streams Tweet Parsing (JSON format) 39
40 and Parsing Tweet Parsing (JSON format) 40
41 Tweet Parsing (JSON format) What is JSON format? JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. used primarily to transmit data between a server and web application. alternative to XML. 41
42 Tweet Parsing (JSON format) Structure of JSON is represented as Key/Value Pair: A key value pair follows a specific syntax, with the key followed by a colon followed by the value. Key/value pairs are comma separated. Key: A key is always a string enclosed in quotation marks. Value: A value can be a string, number, boolean expression, array, or object. Starts With: { Ends With: } Example {"collection" : { "title" : "Blog", }} "categories" : [ "Category-1", "Category-2" ] 42
43 and Parsing Sample JSON format tweet {"in_reply_to_status_id_str":null,"in_reply_t o_status_id":null,"created_at":"wed Sep 30 09:47: ","in_reply_to_user_id_str":null,... "location":null,"profile_sidebar_fill_color":" DDEEF6","notifications":null} 43
44 Tweet Parsing (JSON format) import twitter4j.jsonexception; import twitter4j.jsonobject; public String parsejson(string JSONstring2parse, String tag2search) throws JSONException { } JSONObject myjobject=new JSONObject(JSONstring2parse); return myjobject.getstring(tag2search); 44
45 and Parsing Downloading Tweet Streams Tweet Parsing (JSON format) 45
Giovanni Stilo, Ph.D. 140 Chars to Fly. Twitter API 1.1 and Twitter4J introduction
Giovanni Stilo, Ph.D. stilo@di.uniroma1.it 140 Chars to Fly Twitter API 1.1 and Twitter4J introduction Twitter (Mandatory) Account General operation REST principles Requirements Give every thing an ID
More informationExploring World s Interest in Paralympics through Twitter
Exploring World s Interest in Paralympics through Twitter Venkata Sravya Kalla, Thanaa Ghanem Information and Computer Science Department Metropolitan State University St. Paul, MN, 55106 cu9426bs@metrostate.edu,
More informationICOM 4015-Advanced Programming. Spring Instructor: Dr. Amir H. Chinaei. TAs: Hector Franqui, Jose Garcia, and Antonio Tapia. Reference: Big Java
ICOM 4015-Advanced Programming Spring 2014 Instructor: Dr. Amir H. Chinaei TAs: Hector Franqui, Jose Garcia, and Antonio Tapia Reference: Big Java By Hortsmann, Ed 4 Lab 7 Continuation of HTTP and Introduction
More informationPrivacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras
Privacy and Security in Online Social Networks Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 12 Tutorial 3 Part 1 Twitter API In this tutorial, we will learn
More informationjavagently jg3e H:\ ProgTwo Programming II Lecture 7 A case study (class containing an array) and model diagrams. 02/02/2003 Dr Andy Brooks 1
H:\ jg3e javagently ProgTwo Lab3 Laboratory Programming II Lecture 7 A case study (class containing an array) and model diagrams. 02/02/2003 Dr Andy Brooks 1 Scope The scope of an identifier is the region
More information6/29/ :38 AM 1
6/29/2017 11:38 AM 1 Creating an Event Hub In this lab, you will create an Event Hub. What you need for this lab An Azure Subscription Create an event hub Take the following steps to create an event hub
More informationCertified Core Java Developer VS-1036
VS-1036 1. LANGUAGE FUNDAMENTALS The Java language's programming paradigm is implementation and improvement of Object Oriented Programming (OOP) concepts. The Java language has its own rules, syntax, structure
More informationApache Spark Streaming with Twitter (and Python) LinkedIn
From left to right:, Russell Hanson, Sascha Ishikawa, Asa Wilks, James Liu, Angel Martinez, & Scot Hickey. Photo copyright (c) 2017 by L. Weichberger Apache Spark Streaming with Twitter (and Python) Published
More informationProject #1 Computer Science 2334 Fall 2008
Project #1 Computer Science 2334 Fall 2008 User Request: Create a Word Verification System. Milestones: 1. Use program arguments to specify a file name. 10 points 2. Use simple File I/O to read a file.
More informationUsing SailFin and Eclipse to build SIP-based and RESTful applications
Using SailFin and Eclipse to build SIP-based and RESTful applications Presented by: Fatna Belqasmi, PhD, Researcher associate at Concordia University Agenda Download and installation Configuration Create
More informationMultiplayer Game Programming 2/26
Multiplayer Game Programming 2/26 1. Turn off Windows Firewall 2. Download and install Python and Notepad++ a. Python.org downloads/python/install b. Notepad-plus-plus.org download/install 3. Download
More informationTwitter and While Loops. April
Twitter and While Loops April 18 2016 Today Using GeCoords.py to extract geo locations to write a KML file Getting Twitter posts using tweepy While loops More powerful functions to get Twitter posts Using
More informationHow to Register for a Developer Account Nick V. Flor
How to Register for a Developer Account Nick V. Flor (professorf@gmail.com) Before you can scrape Twitter, you need a Consumer Key and Consumer Secret (codes). But before you can get these codes, you need
More informationThe following steps will create an Eclipse project containing source code for Problem Set 1:
Problem Set 1 Programming Music Out: 27 August Due: Monday, 1 Sept (beginning of class) Collaboration Policy - Read Carefully For this problem set, you should work alone, but feel free to ask other students
More informationMobile Development Lecture 9: Android & RESTFUL Services
Mobile Development Lecture 9: Android & RESTFUL Services Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Elgayyar.weebly.com What is a RESTFUL Web Service REST stands for REpresentational State Transfer. In
More informationCOURSE SYLLABUS. Complete JAVA. Industrial Training (3 MONTHS) PH : , Vazhoor Road Changanacherry-01.
COURSE SYLLABUS Complete JAVA Industrial Training (3 MONTHS) PH : 0481 2411122, 09495112288 E-Mail : info@faithinfosys.com www.faithinfosys.com Marette Tower Near No. 1 Pvt. Bus Stand Vazhoor Road Changanacherry-01
More informationSystem resources. Security Manager.
Security Manager. Accessing system resources Sometimes, a program requires access to system resources such as system properties, standard input and output, or the current time. Your program could make
More informationWeek 12. Streams and File I/O. Overview of Streams and File I/O Text File I/O
Week 12 Streams and File I/O Overview of Streams and File I/O Text File I/O 1 I/O Overview I/O = Input/Output In this context it is input to and output from programs Input can be from keyboard or a file
More informationCS11 Java. Fall Lecture 4
CS11 Java Fall 2014-2015 Lecture 4 Java File Objects! Java represents files with java.io.file class " Can represent either absolute or relative paths! Absolute paths start at the root directory of the
More informationCrawling Tweets & Pre- Processing
Crawling Tweets & Pre- Processing Bayu Distiawan Natural Language Processing & Text Mining Short Course Pusat Ilmu Komputer UI 22 26 Agustus 2016 1. Creating crawler Open tweepy installation folder, find
More informationIntroduction IS
Introduction IS 313 4.1.2003 Outline Goals of the course Course organization Java command line Object-oriented programming File I/O Business Application Development Business process analysis Systems analysis
More informationException Handling. Sometimes when the computer tries to execute a statement something goes wrong:
Exception Handling Run-time errors The exception concept Throwing exceptions Handling exceptions Declaring exceptions Creating your own exception Ariel Shamir 1 Run-time Errors Sometimes when the computer
More informationIntroduction to programming using Python
Introduction to programming using Python Matthieu Choplin matthieu.choplin@city.ac.uk http://moodle.city.ac.uk/ Session 6-2 1 Objectives To open a file, read/write data from/to a file To use file dialogs
More informationText User Interfaces. Keyboard IO plus
Text User Interfaces Keyboard IO plus User Interface and Model Model: objects that solve problem at hand. User interface: interacts with user getting input from user giving output to user reporting on
More informationException Handling. Run-time Errors. Methods Failure. Sometimes when the computer tries to execute a statement something goes wrong:
Exception Handling Run-time errors The exception concept Throwing exceptions Handling exceptions Declaring exceptions Creating your own exception 22 November 2007 Ariel Shamir 1 Run-time Errors Sometimes
More informationProject #1 rev 2 Computer Science 2334 Fall 2013 This project is individual work. Each student must complete this assignment independently.
Project #1 rev 2 Computer Science 2334 Fall 2013 This project is individual work. Each student must complete this assignment independently. User Request: Create a simple magazine data system. Milestones:
More informationSpring Social: For the New Web of APIs
Spring Social: For the New Web of APIs Craig Walls - SpringSource @habuma #springsocial 2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission. Agenda Socializing Your Applications
More informationASSIGNMENT 5 Objects, Files, and a Music Player
ASSIGNMENT 5 Objects, Files, and a Music Player COMP-202A, Fall 2009, All Sections Due: Thursday, December 3, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified, you
More informationCS506 Web Design & Development Final Term Solved MCQs with Reference
with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar
More informationExceptions and Libraries
Exceptions and Libraries RS 9.3, 6.4 Some slides created by Marty Stepp http://www.cs.washington.edu/143/ Edited by Sarah Heckman 1 Exceptions exception: An object representing an error or unusual condition.
More informationGeneric architecture
Java-RMI Lab Outline Let first builds a simple home-made framework This is useful to understand the main issues We see later how java-rmi works and how it solves the same issues Generic architecture object
More informationThe XML PDF Access API for Java Technology (XPAAJ)
The XML PDF Access API for Java Technology (XPAAJ) Duane Nickull Senior Technology Evangelist Adobe Systems TS-93260 2007 JavaOne SM Conference Session TS-93260 Agenda Using Java technology to manipulate
More informationJ2EE Technologies. Industrial Training
COURSE SYLLABUS J2EE Technologies Industrial Training (4 MONTHS) PH : 0481 2411122, 09495112288 Marette Tower E-Mail : info@faithinfosys.com Near No. 1 Pvt. Bus Stand Vazhoor Road Changanacherry-01 www.faithinfosys.com
More informationClasses Basic Overview
Final Review!!! Classes and Objects Program Statements (Arithmetic Operations) Program Flow String In-depth java.io (Input/Output) java.util (Utilities) Exceptions Classes Basic Overview A class is a container
More informationThis tutorial will help you understand JSON and its use within various programming languages such as PHP, PERL, Python, Ruby, Java, etc.
About the Tutorial JSON or JavaScript Object Notation is a lightweight text-based open standard designed for human-readable data interchange. The JSON format was originally specified by Douglas Crockford,
More informationAssignment, part1: feedback and common mistakes. INFO-0010 Samuel HIARD
Assignment, part1: feedback and common mistakes INFO-0010 Samuel HIARD Grades? Not yet Work done at ~70-80% ETA : First week after Spring holidays (should be) Content of the presentation The code of all
More informationAssignment #3 CSCI 201 Spring % of course grade Title Weathermeister Back-End API Integration
Assignment #3 CSCI 201 4.5% of course grade Title Weathermeister Back-End API Integration Topics Covered Java Classes HTML CSS Basic Java Topics Java Servlets JSP JavaScript AJAX Databases SQL JDBC Overview
More informationOpenClinica: Towards Database Abstraction, Part 1
OpenClinica: Towards Database Abstraction, Part 1 Author: Tom Hickerson, Akaza Research Date Created: 8/26/2004 4:17 PM Date Updated: 6/10/2005 3:22 PM, Document Version: v0.3 Document Summary This document
More informationJava Cookbook. Java Action specification. $ java -Xms512m a.b.c.mymainclass arg1 arg2
Java Cookbook This document comprehensively describes the procedure of running Java code using Oozie. Its targeted audience is all forms of users who will install, use and operate Oozie. Java Action specification
More informationChapter 3 Intro to Java
Chapter 3 Intro to Java Introducing Java Barrett Computer Science Designing Technology Solutions 1 2 Key Terminology - OS Operating System 3 Why Program in Java? Java is an Object Oriented Programming
More informationCharacter Stream : It provides a convenient means for handling input and output of characters.
Be Perfect, Do Perfect, Live Perfect 1 1. What is the meaning of public static void main(string args[])? public keyword is an access modifier which represents visibility, it means it is visible to all.
More information[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.
[Course Overview] The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming,
More informationApache Quarks & Raspberry Pi
Apache Quarks & Raspberry Pi May 12, 2016 Apache Quarks is currently undergoing Incubation at the Apache Software Foundation. Topics Who am I? Queenie Ma, Apache Quarks contributor and IBM employee Register
More informationAccessing Web Files in Python
Accessing Web Files in Python Learning Objectives Understand simple web-based model of data Learn how to access web page content through Python Understand web services & API architecture/model See how
More informationInterfaces (1/2) An interface forms a contract between the object and the outside world.
Interfaces (1/2) An interface forms a contract between the object and the outside world. For example, the buttons on remote controls for some machine. As you can see, an interface is a reference type,
More informationInterfaces. An interface forms a contract between the object and the outside world.
Interfaces An interface forms a contract between the object and the outside world. For example, the buttons on the television set are the interface between you and the electrical wiring on the other side
More informationChapter 4 Defining Classes I
Chapter 4 Defining Classes I This chapter introduces the idea that students can create their own classes and therefore their own objects. Introduced is the idea of methods and instance variables as the
More informationASSIGNMENT 5 Objects, Files, and More Garage Management
ASSIGNMENT 5 Objects, Files, and More Garage Management COMP-202B, Winter 2010, All Sections Due: Wednesday, April 14, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified,
More informationWhat is Serialization?
Serialization 1 Topics What is Serialization? What is preserved when an object is serialized? Transient keyword Process of serialization Process of deserialization Version control Changing the default
More informationTirgul 1. Course Guidelines. Packages. Special requests. Inner classes. Inner classes - Example & Syntax
Tirgul 1 Today s topics: Course s details and guidelines. Java reminders and additions: Packages Inner classes Command Line rguments Primitive and Reference Data Types Guidelines and overview of exercise
More informationIntroduction to Java
Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn
More informationPROGRAMMING FUNDAMENTALS
PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write
More informationInput & Output in Java. Standard I/O Exception Handling
Input & Output in Java Standard I/O Exception Handling Java I/O: Generic & Complex Java runs on a huge variety of plaforms to accomplish this, a Java Virtual Machine (JVM) is written for every type of
More informationAtelier Java - J1. Marwan Burelle. EPITA Première Année Cycle Ingénieur.
marwan.burelle@lse.epita.fr http://wiki-prog.kh405.net Plan 1 2 Plan 3 4 Plan 1 2 3 4 A Bit of History JAVA was created in 1991 by James Gosling of SUN. The first public implementation (v1.0) in 1995.
More informationCS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1
P a g e 1 CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 Q1 Describe some Characteristics/Advantages of Java Language? (P#12, 13, 14) 1. Java
More informationAnother IS-A Relationship
Another IS-A Relationship Not all classes share a vertical relationship. Instead, some are supposed to perform the specific methods without a vertical relationship. Consider the class Bird inherited from
More informationThe Java Series. Java Essentials Advanced Language Constructs. Java Essentials II. Advanced Language Constructs Slide 1
The Java Series Java Essentials Advanced Language Constructs Slide 1 Java Packages In OO, libraries contain mainly class definitions A class hierarchy Typically, to use a class library we: Instantiate
More informationSoftware Installation for CS121
Software Installation for CS121 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University August 26, 2005 1 Installation of Java J2SE 5 SDK 1. Visit Start Settings Control Panel
More informationExceptions, try - catch - finally, throws keyword. JAVA Standard Edition
Exceptions, try - catch - finally, throws keyword JAVA Standard Edition Java - Exceptions An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception
More informationenum Types 1 1 The keyword enum is a shorthand for enumeration. Zheng-Liang Lu Java Programming 267 / 287
enum Types 1 An enum type is an reference type limited to an explicit set of values. An order among these values is defined by their order of declaration. There exists a correspondence with string names
More informationHST 952. Computing for Biomedical Scientists Lecture 8
Harvard-MIT Division of Health Sciences and Technology HST.952: Computing for Biomedical Scientists HST 952 Computing for Biomedical Scientists Lecture 8 Outline Vectors Streams, Input, and Output in Java
More informationGlobalLogic Technical Question Paper
GlobalLogic Technical Question Paper What is the output of the following code when compiled and run? Select two correct answers. public class Question01 { public static void main(string[] args){ int y=0;
More informationChapter 2. Network Chat
Chapter 2. Network Chat In a multi-player game, different players interact with each other. One way of implementing this is to have a centralized server that interacts with each client using a separate
More informationFull file at
Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class
More informationAPIs - what are they, really? Web API, Programming libraries, third party APIs etc
APIs - what are they, really? Web API, Programming libraries, third party APIs etc Different kinds of APIs Let s consider a Java application. It uses Java interfaces and classes. Classes and interfaces
More information/ Introduction to XML
Introduction to XML XML stands for Extensible Markup Language. It is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are used to store
More informationCS 231 Data Structures and Algorithms, Fall 2016
CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard
More informationJava Errors and Exceptions. Because Murphy s Law never fails
Java Errors and Exceptions Because Murphy s Law never fails 1 Java is the most distressing thing to hit computing since MS-DOS. Alan Kay 2 Corresponding Book Sections Pearson Custom Computer Science: Chapter
More informationTiming ListOperations
Timing ListOperations Michael Brockway November 13, 2017 These slides are to give you a quick start with timing operations in Java and with making sensible use of the command-line. Java on a command-line
More informationCHAPTER 2 Java Fundamentals
CHAPTER 2 Java Fundamentals Copyright 2016 Pearson Education, Inc., Hoboken NJ Chapter Topics Chapter 2 discusses the following main topics: The Parts of a Java Program The print and println Methods, and
More informationCS371m - Mobile Computing. Persistence - Web Based Storage CHECK OUT g/sync-adapters/index.
CS371m - Mobile Computing Persistence - Web Based Storage CHECK OUT https://developer.android.com/trainin g/sync-adapters/index.html The Cloud. 2 Backend No clear definition of backend front end - user
More informationExam Questions 1z0-854
Exam Questions 1z0-854 Java Standard Edition 5 Programmer Certified Professional Upgrade Exam https://www.2passeasy.com/dumps/1z0-854/ 4.Which three statements concerning the use of the java.io.serializable
More informationIbis RMI User s Guide
Ibis RMI User s Guide http://www.cs.vu.nl/ibis November 16, 2009 1 Introduction Java applications typically consist of one or more threads that manipulate a collection of objects by invoking methods on
More informationProject 1 Computer Science 2334 Spring 2016 This project is individual work. Each student must complete this assignment independently.
Project 1 Computer Science 2334 Spring 2016 This project is individual work. Each student must complete this assignment independently. User Request: Create a simple movie data system. Milestones: 1. Use
More informationRunning the ESPM Twitter Integration sample app on SAP Cloud Platform
Running the ESPM Twitter Integration sample app on SAP Cloud Platform By Daniel Gomes da Silva Learn how to download, build, deploy, configure and run the ESPM Twitter Integration JAVA sample app on SAP
More informationToday. Book-keeping. File I/O. Subscribe to sipb-iap-java-students. Inner classes. Debugging tools
Today Book-keeping File I/O Subscribe to sipb-iap-java-students Inner classes http://sipb.mit.edu/iap/java/ Debugging tools Problem set 1 questions? Problem set 2 released tomorrow 1 2 So far... Reading
More informationCore JAVA Training Syllabus FEE: RS. 8000/-
About JAVA Java is a high-level programming language, developed by James Gosling at Sun Microsystems as a core component of the Java platform. Java follows the "write once, run anywhere" concept, as it
More informationAdvanced Internet Technology Lab # 4 Servlets
Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2011 Advanced Internet Technology Lab # 4 Servlets Eng. Doaa Abu Jabal Advanced Internet Technology Lab # 4 Servlets Objective:
More informationCS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)
CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers
More informationThe core source code of the edge detection of the Otsu-Canny operator in the Hadoop
Attachment: The core source code of the edge detection of the Otsu-Canny operator in the Hadoop platform (ImageCanny.java) //Map task is as follows. package bishe; import java.io.ioexception; import org.apache.hadoop.fs.path;
More informationRob Weir, IBM 1 ODF and Web Mashups
ODF and Web Mashups Basic techniques Rob Weir, IBM robert_weir@us.ibm.com 2009-11-05 1615 1 ODF and Web Mashups Agenda Why it is hard to use ODF in a web app Two techniques for accessing ODF on the web
More informationSoftware Development Tools. COMP220/COMP285 Sebastian Coope Eclipse and JUnit: Creating and running a JUnit test case
Software Development Tools COMP220/COMP285 Sebastian Coope Eclipse and JUnit: Creating and running a JUnit test case These slides are mainly based on Java Development with Eclipse D.Gallardo et al., Manning
More informationJava using LEGO Mindstorms and LeJOS. University of Idaho
Java using LEGO Mindstorms and LeJOS University of Idaho 2 Contents 1 Introduction 1 1.1 Setting up Java and Eclipse................................ 1 1.2 Setting up the Lego Brick to work with LeJOS.....................
More informationGoogles Approach for Distributed Systems. Slides partially based upon Majd F. Sakr, Vinay Kolar, Mohammad Hammoud and Google PrototBuf Tutorial
Protocol Buffers Googles Approach for Distributed Systems Slides partially based upon Majd F. Sakr, Vinay Kolar, Mohammad Hammoud and Google PrototBuf Tutorial https://developers.google.com/protocol-buffers/docs/tutorials
More informationCSCD 330 Network Programming
CSCD 330 Network Programming Lecture 8 Client-Server Programming Threads Spring 2018 Reading: Chapter 2, Relevant Links - Threads Some Material in these slides from J.F Kurose and K.W. Ross All material
More informationMulti-threaded Web Server (Assignment 1) Georgios Georgiadis
Multi-threaded Web Server (Assignment 1) Georgios Georgiadis Overview Multi-threaded Web Server What to do and how to do it HTTP messages Processes and threads ComputerComm '09 2 Multi-threaded Web Server
More informationWhat is the Selendroid?
When you publish an app to Google play, it must be well tested to avoid the potential bugs. There's a ton of test scenarios that should be executed before publishing an app. To save the testing effort,
More informationcoe318 Lab 1 Introduction to Netbeans and Java
coe318 Lab 1 Week of September 12, 2016 Objectives Lean how to use the Netbeans Integrated Development Environment (IDE). Learn how to generate and write formatted API documentation. Add a constructor,
More informationCustom Metrics and Reports
Custom Metrics and Reports Release 6.5 2015 by Kony, Inc. All rights reserved 1 of 124 Custom Metrics and Reports Guide Copyright 2013 Kony, Inc. All rights reserved. July, 2015 This document contains
More informationFaculty of Science and Technology MASTER S THESIS
Faculty of Science and Technology MASTER S THESIS Study program/ Specialization: Master in Computer Science Spring semester, 2010 Writer: Baodong Jia Faculty supervisor: Professor. PhD. Chunming Rong;
More informationCSCD 330 Network Programming
CSCD 330 Network Programming Lecture 8 Client-Server Programming Threads Spring 2017 Reading: Chapter 2, Relevant Links - Threads Some Material in these slides from J.F Kurose and K.W. Ross All material
More informationLecture 20. Java Exceptional Event Handling. Dr. Martin O Connor CA166
Lecture 20 Java Exceptional Event Handling Dr. Martin O Connor CA166 www.computing.dcu.ie/~moconnor Topics What is an Exception? Exception Handler Catch or Specify Requirement Three Kinds of Exceptions
More informationCall: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline
Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline Object-Oriented Programming (OOP) concepts Introduction Abstraction Encapsulation Inheritance Polymorphism Getting started with
More informationTable of Contents. Tutorial API Deployment Prerequisites... 1
Copyright Notice All information contained in this document is the property of ETL Solutions Limited. The information contained in this document is subject to change without notice and does not constitute
More informationShell Interface Assignment
Page 1 of 9 Shell Interface Assignment Creating a Shell Interface Using Java This assignment consists of modifying a Java program so that it serves as a shell interface that accepts user commands and then
More informationCHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA
1. JIT meaning a. java in time b. just in time c. join in time d. none of above CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY JAVA 2. After the compilation of the java source code, which file is created
More informationOracle 1z Java Standard Edition 5 Programmer Certified Professional Upgrade Exam. Practice Test. Version: https://certkill.
Oracle 1z0-854 Java Standard Edition 5 Programmer Certified Professional Upgrade Exam Practice Test Version: 14.20 QUESTION NO: 1 Oracle 1z0-854: Practice Exam 20. public class CreditCard { 21. 22. private
More informationJavaCC: SimpleExamples
JavaCC: SimpleExamples This directory contains five examples to get you started using JavaCC. Each example is contained in a single grammar file and is listed below: (1) Simple1.jj, (2) Simple2.jj, (3)
More informationI do solemnly declare that I have written the presented research thesis. Twitter: History, Concepts, Nutshell Examples with (BSF4)OOREXX
Declaration I do solemnly declare that I have written the presented research thesis Twitter: History, Concepts, Nutshell Examples with (BSF4)OOREXX by myself without undue help from a second person others
More informationProgramming II (CS300)
1 Programming II (CS300) Chapter 04: Exception Handling MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Creating Classes 2 Introduction Exception Handling Common Exceptions Exceptions with Methods Assertions
More information