CS 122: Last Lecture Tarik Booker California State University, Los Angeles.

Slides:



Advertisements
Similar presentations
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Advertisements

E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
1 Open Source Programming. -Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
Website Administration Information Systems 337 Prof. Harry Plantinga.
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
DB2 (Express C Edition) Installation and Using a Database
ACM Web Development Workshop - PHP By Luis Torres.
Introduction. » How the course works ˃Homework ˃Project ˃Exams ˃Grades » prerequisite ˃CSCI 6441: Mandatory prerequisite ˃Take the prereq or get permission.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Build a Free Website1 Build A Website For Free 2 ND Edition By Mark Bell.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
L. Grewe LAMP, WAMP and... Motivaiton Basic Web Systems with Delivery of Static and Dynamic Web Pages html, css, media javascript (“dynamic” on client.
URails Meeting 001. HTTP Old/Young guys with beards decided “We need to communicate. Let’s use text!” Hypertext Transfer Protocol HTTP is just sending.
Architecture Planning and designing a successful system Use tried and tested techniques Easy to maintain Robust and long lasting.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
LOGO 2 nd Project Design for Library Programs Supervised By Dr: Mohammed Mikii.
JavaScript – Quiz #9 Lecture Code:
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
INFO 1300: LOCAL DEVELOPMENT 10/16/2015. Index.html Important Homepage for every project in this course Points will be deducted otherwise.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Introduction. » How the course works ˃Homework ˃Project ˃Exams ˃Grades » prerequisite ˃CSCI 6441: Mandatory prerequisite ˃Take the prereq or get permission.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
We will cover in this lecture A first look at issues related to Security Maintenance Scalability Simple Three Tier Architecture Module Road Map Assignment.
Introduction to PHP Advanced Database System Lab no.1.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
Website Administration Information Systems 337 Prof. Harry Plantinga.
Tallahassee, Florida, 2015 COP4710 Database Systems Project Overview Fall 2015.
Unit 9: Distributing Computing & Networking Kaplan University 1.
Shell Interface Shell Interface Functions Data. Graphical Interface Graphical Interface Command-line Interface Command-line Interface Experiments Private.
PHP, Databases, and Cookies Dave Pease IDS496 12/2/2003
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Sessions and cookies (part 2) MIS 3501, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/19/2015.
Google maps engine and language presentation Ibrahim Motala.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Stuff to memorise… "A method tells an object to perform an action. A property allows us to read or change the settings of the object."
Hydroinformatics Lecture 15: HydroServer and HydroServer Lite The CUAHSI HIS is Supported by NSF Grant# EAR CUAHSI HIS Sharing hydrologic data.
Installing a Moodle Test Site The painless and easy way.
Stuff to memorise… "A method tells an object to perform an action. A property allows us to read or change the settings of the object."
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
L.A.M.P. İlker Korkmaz & Kaya Oğuz CS 350. Why cover a lecture on LAMP? ● Job Opportunities – There are many hosting companies offering LAMP as a web.
EnhanceEdu IIIT-Hyderabad. Agenda What’s a wiki? Comparison with a website Wiki Formatting ‘My’ Page Fun with wiki 2EnhanceEdu, IIIT-Hyderabad.
CGS 3066: Web Programming and Design Spring 2017
2nd year Computer Science & Engineer
Fundamental of Databases
COP4710 Database Systems Project Overview.
Relational database and SQL MySQL LAMP SQL queries
Web Design II PHP & MySQL or ASP.NET
CUAHSI HIS Sharing hydrologic data
Lesson 11: Web Services & API's
Website Development Basics with PHP MySQL
Department of Computer Science, Florida State University
LAMP, WAMP and.. L. Grewe.
MVC Framework, in general.
Tutorial 6 PHP & MySQL Li Xu
CS4433 Database Systems Project.
Web Application Development Using PHP
XAMPP.
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

CS 122: Last Lecture Tarik Booker California State University, Los Angeles

Last Lecture!!!  Final Exam  Tuesday, March 17 1:30PM – 4:30PM ET- A220  Today:  Goodies  Fun  Things to keep you busy until CS 422

Final Exam  Everything until last lecture  E-R Diagrams MAYBE Included on Final  Look at Final Review for More Examples  GOOD LUCK!!!

What we will cover today…  Fancy Stuff  LAMP / WAMP  Bioinformatics  Fun with databases  Public Databases  Applications for databases  Query Languages  Yahoo’s YQL  Facebook FQL  Google’s Freebase  Query Languages

Fancy Stuff  What’s the rule for fancy stuff?  Just checking…  MySQL Workbench  Command-line execution  Output formatting (HTML)

MySQL WorkBench  A Graphical User Interface (GUI) for MySQL  h/ h/  Contains interactive windows for MySQL server, E-R Diagrams, and SQL command interface.  Fun; easy; buggy.  Use at your own risk!

Command-Line Execution  You don’t need to open a direct client connection to access the database  Try this at the shell command line, not the mysql client :  >mysql –u root –e “show databases;” –D lyric  E stands for “execute”, D stands for database  Make sure the –D is capitalized.  >mysql –u root –e “select * from members;” –D lyric  >mysql –u root –e “Any SQL query” –D database_name

Output Formatting  Now try this:  >mysql –u root –e “show databases;” –D lyric –H  Again, CAPITAL “H”  You can specify mysql to output information as a table in a website!!  Our tables are already formatted!  >mysql –u root –e “select * from artists join xrefartistsmembers using (artistid) join members using(memberid);” -D lyric -H

Output Formatting (2)  The > operator in the windows shell will put the output of the command into a filename (of your choosing)  Called output redirection  Don’t confuse this with my prompt indicator(>)  Ex:  >dir > dir_out.txt  Let’s use these with our command-line mysql queries

Output Formatting (3)  >mysql –u root –e “select * from artists join xrefartistsmembers using(artistid) join members using(memberid);” -D lyric –H > ArtistMembersout.html  Now open this in a web browser!  Note: This file is in the directory mysql is in (unless you change the path)  >mysql –u root –e “select * from artists join xrefartistsmembers using(artistid) join members using(memberid);” -D lyric –H >../../ArtistMembersout.html  >mysql –u root –e “select * from artists join xrefartistsmembers using(artistid) join members using(memberid);” -D lyric –H |../../ArtistMembersout.html

LAMP/WAMP  Linux, Apache, MySQL, PHP  Typical model of web solutions  Completely free (buy your own computer, though)  Linux – open source operating system  Apache – open source server  MySQL – this class  PHP – web programming language  WAMP = Windows, Apache, MySQL, PHP

LAMP/WAMP (2)  Most (if not all) professional (and data intensive) web pages use databases  Wikipedia, IMDB, Google, PayPal, Ebay, etc.  LAMP makes creating your own site easy (and free)

Public Databases  Public MySQL Databases  Public Databases

Public MySQL Databases  If you are interesting in seeing the type of information used in databases, search for public mysql databases  Many are also PostgreSQL DBs (look up)  Many are for public analysis of interesting data  Bioinformatics – the study of processing biological data

Bioinformatics  The interdisciplinary study of developing methods and software tools for processing biological data.  Why? There’s a LOT of biological data  Viruses, Genome, etc.  Human Genome  Over 3 billion base pairs  Data must be structured, accessible, and computable

Bioinformatics (2) Only One Human X Chromosome:

Bioinformatics (3)  Different schools have bioinformatics  Cal State LA has a minor:  /minorinfo.php /minorinfo.php  And courses:  Bioinformaticscourse.html Bioinformaticscourse.html  Other schools have more resources…

UCSC Genome Bioinformatics  UCSC Genome   Public MySQL Database   Note “Conditions of Use:”  “Avoid excessive or heavy queries that may impact the server performance. Inappropriate query use will result in a restriction of access. If you plan to execute a query that you think may be excessive, contact UCSC first to avoid the possibility of having your access blocked.”  What SQL techniques should you NOT use ?

UCSC Genome Bioinformatics (2)  Contains a portal (site) of information on Ebola and other diseases  Can search database with biological information

UCSC Bioinformatics  To access the public database:  mysql --user=genome --host=genome-mysql.cse.ucsc.edu –A  Don’t do this in class!  Make sure you follow the rules of the database before you access!!!  Grants (public) access to many different biological data  Ebola is “eboVir3” database

UCSC Bioinformatics  Each database has large amounts of biological data  Can be downloaded separately  Up to you to determine what’s necessary

Other Bioinformatics Databases  There are also other databases out there for bioinformatics  ENSEMBL Database  html html  GO Database  database-guide#mirrors database-guide#mirrors

Human Genome  Genome Browser Database   UCSC’s Genome Browser  ds.html ds.html

Drosophila Database  ftp://ftp.flybase.net/releases/FB2014_06/p sql/README ftp://ftp.flybase.net/releases/FB2014_06/p sql/README  Who knows what Drosophila are?  High school biology…

Public Data Sources  Try to find other SQL files out there!  Amazon Public Datasets   Images of the Night Sky   Influenza Database  U.html U.html  Don’t always have to be completely scientific…

Marvel Teamup Database   Used to study social characteristics of the Marvel Universe  Example of a “Social Collaboration Network”  Mirrors real-world collaboration  More of a directed graph  You will study later  Vertices and branches

Baseball Reference   All statistics from Baseball History  They are hiring!  reference.com/jobs_2014_fall.shtml reference.com/jobs_2014_fall.shtml

Fashion Database 

Many Other Databases  Many other databases out there  Look on Google  Many use PostgreSQL  Another type of Free, Open source Database  Practice this  Code a little different, logic always same

Query Languages  SQL not the only query language  Many are proprietary  FQL  Facebook Query Language  YQL  Yahoo Query Language  Freebase  Google Product

Facebook Query Language (FQL)  echnical-guides/fql echnical-guides/fql  Used to search Facebook information like a database  Information organized in tables  Like a relational database  We covered this earlier…

Facebook Query Language (3)  Deprecated (no longer used), but interesting  Look at query guidelines:  cal-guides/fql cal-guides/fql  What technique can’t you use for queries?  Notice a pattern?  What programming language does this use?

Yahoo Query Language (YQL)   Different than FQL  Designed to manipulate data across the internet  Including other sites and treating their info like databases  Flickr, Yelp, etc.  Queries web services (you will learn later)  Let’s look at the tutorial:  minute-tutorial.html minute-tutorial.html

Yahoo Query Language (2)  Two minute tutorial:  minute-tutorial.html minute-tutorial.html  Let’s get the Weather Forecast for Los Angeles:  First get LA weather id.  select woeid from geo.places where text="los angeles, ca“  Then get forecast... (Subquery)  Lots of things to query here… results in XML…

Google Freebase   An “open, shared database of the world’s knowledge”  User collected, “curated” content  Uses Metaweb Query Language (MQL)  Returns XML or JSON info (objects)  Just organized data (like generalized HTML)

Database Jobs  Everyone needs a database  SQL DBA / SQL Database Administrator - View similar jobs Job type: Full-Time | Pay: $85k - $95k/year Database Administrator and the salary is in the $85K-$95K range plus benefits. Only candidates authorized... SQL DBA / SQL Database Administrator View similar jobs

Food For Thought…  For your own information…  15 Coveted Programming Skills  most-coveted-by-employers most-coveted-by-employers  Why technology will always change:  longer-in-demand longer-in-demand  Remember, code changes, but logic always stays the same!!!

Go See “The Imitation Game!” Alan Turing The type of crazy that produced modern Computer Science!!!