Building Your Web Site ATS 315. Your Project Make a web site that shows plots that YOU generated! Plots should regenerate every hour!

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to Freeware/Shareware Chapter Four Essential Tools for Web Page Authors.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
TEA/TUG + ALDOT(Mobile) = H(O+I) The TEA/TUG being hosted by ALDOT in Mobile causes Hurricanes to come to Alabama. The TEA/TUG being hosted by ALDOT in.
Present your project in Word, PowerPoint, or Visio Copy Project information to a Web page Does your organization or team already have a Web site that’s.
Basic Web Publishing BA209 Arturo Perez-Reyes. Web is a communication protocol The Internet is A net of nets That use the TCP/IP protocol To publish on.
UNIX And other sundry items. UNIX Unified account is your UNIX account or it can be first initial, first name, number, and then part of last name Also.
Its easy to be an information provider Tutorial: Web Publishing.
Geo 118/318 – Introduction to GIS Programming Dr. Jim Graham.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Task 2 P3, P4, P5 Gladys Nzita-Mak.
UNIX Processes. The UNIX Process A process is an instance of a program in execution. Created by another parent process as its child. One process can be.
Adding Websites to a Folder  Putting sites into an already existing folder Putting sites into an already existing folder  Adding an image on the icon.
Agenda What is Computer Programming? The Programming Process
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
CS110/CS119 Introduction to Computing (Java)
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Let’s Make An Form! Bonney Armstrong GD 444 Westwood College February 9, 2005.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
CIS—100 Chapter 9—PowerPoint 1. The PowerPoint User Interface 2 There is a tall band across the screen that contains many, very visual commands arranged.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Day 8 Exporting Displays Cronjobs Mount. Chapter 5 Chapter 5 talks about X windows. –You should read the chapter. –However, you do not need to pay particular.
Creating your first C++ program
AUTO-BUSINESS HOW DO WE USE HYPERLINKS?. Edit an image that represents a hyperlink If a picture, AutoShape, or other graphic is used to represent a hyperlink,
1 Day 5 Additional Unix Commands. 2 Important vs. Not Often in Unix there are multiple ways to do something. –In this class, we will learn the important.
COMPUTER PARTS AND COMPONENTS INPUT DEVICES
Running the Operational Codes for the Brahmaputra Tom Hopson.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
1 Programming in C Hello World! Soon I will control the world! Soon I will control the world!
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
1 Periodic Processes and the cron Daemon The cron daemon is where all timed events are initiated. The cron system is serviced by the cron daemon. What.
Computational Boot Camp HTML Mike Schaffer. 8/23/2002 (MES) HTML What is HTML? HTML stands for HyperText Markup Language HTML is the language for publishing.
15.1 Fundamentals of HTML DeKalb County School System.
Semi-Automatic patch upgrade kit
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
Introduction to Programming Using C An Introduction to Operating Systems.
Creating interactive web pages using Fireworks Creating a 5 page mock up.
Introduction to Perl. What is Perl Perl is an interpreted language. This means you run it through an interpreter, not a compiler. Similar to shell script.
Running the Operational Codes for the Brahmaputra Tom Hopson.
EOVSA Pipeline Processing System J. McTiernan EOVSA Prototype Review 24-Sep-2012.
1 XWindows apps: emacs, xkwic LING 5200 Computational Corpus Linguistics Martha Palmer February 9, 2006.
LBSC 690 Session 4 Programming. Languages How do we learn a language? Learn by listening Then reading Then writing How do we teach programming? Learn.
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Schoolwires – District 205 created by Andrew Chidester.
Running the Operational Codes for the Brahmaputra Tom Hopson.
Chapter 10 Periodic Processes Unix System Administration.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Geo 118/318 – Introduction to GIS Programming Dr. Jim Graham.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
California State University Fresno
UNIX The Basics Source:
Running the Operational Codes for the Brahmaputra
lctseng / Liang-Chi Tseng Edit: yench
Basic operations in Matlab
How to… Use Crontab for SFX
Intro to UNIX System and Homework 1
Building Web Applications
Introduction to Problem Solving & Programming using Processing 2
Introduction to Problem Solving & Programming using Processing 2
Periodic Processes Chapter 9.
lctseng / Liang-Chi Tseng
Creating buttons in Fireworks
Introduction to Problem Solving & Programming using Processing 2
Presentation transcript:

Building Your Web Site ATS 315

Your Project Make a web site that shows plots that YOU generated! Plots should regenerate every hour!

Step 1:Decide what plots you want to show Pick out a couple of charts that can be made with the programs we have written this semester. Don’t go nuts—maybe 4 or 5 plots at most!

Step 2: Make special versions of your programs with NO interaction! Your programs shouldn’t require anyone to choose a variable, domain, contour interval or anything like that. Each program should produce ONE chart!

Step 3: Modify these programs so that they produce an XWD file XWD = “XWindow Dump”  a file format for images, similar to GIF We’ll learn how to do this later.

Step 4: Create a “script” that runs these programs. “scripts” – little programs that perform unix commands. We’ll learn more about this later.

Step 5: Set up a “crontab” that runs your script each hour crontabs are scripts that execute on a schedule. We’ll learn more about this later.

Step 6: Make an HTML page to display your output You already know how to do this!

The Steps: 1.Decide what you’ll show 2.Versions w/o interaction 3.Produce XWD files 4.Set up scripts 5.Set up crontabs 6.Write HTML code

Step 3:Produce XWD files of your maps /export/home/schragej/X/xwdjms a special version of a standard unix program “xwd” captures a graphics window and saves it as a.xwd file no beeping! xwdjms –name myplot

Step 3:Produce XWD files of your maps /export/home/schragej/X/xwdjms a special version of a standard unix program “xwd” captures a graphics window and saves it as a.xwd file no beeping! xwdjms –name myplot The name of the graphics window that you opened! Don’t use any spaces!

Step 3:Produce XWD files of your maps xwdjms uses “printf” to dump everything it does to the screen. You need to “capture” this to a file! xwdjms –name myplot > image.xwd

Step 3:Produce XWD files of your maps xwdjms is a UNIX command, not a C command! system(“ ”);

Step 3:Produce XWD files of your maps xwdjms is a UNIX command, not a C command! system(“ ”); Example: system(“rm *.dat”);

Step 3:Produce XWD files of your maps system(“/export/home/schragej/X/xwdjms –name myplot > image.xwd”);

Step 3:Produce XWD files of your maps system(“/export/home/schragej/X/xwdjms –name myplot > image.xwd”); Also, turn off the ghold!!!!!!!!

Step 3:Produce XWD files of your maps system(“/export/home/schragej/X/xwdjms –name myplot > image.xwd”); Also, turn off the ghold!!!!!!!! Still more problems…

Step 3:Produce XWD files of your maps Draw the map Draw the data system(“xwdjms…”); Even though you’ve given the orders to draw all the lines and all the data, the graphics might not “keep up”…

Step 3:Produce XWD files of your maps Draw the map Draw the data system(“xwdjms…”); …when you call xwdjms, it’s possible/likely that the picture isn’t done yet! You’ll capture a partial image!

Step 3:Produce XWD files of your maps Draw the map Draw the data XFlush(display); system(“xwdjms…”); You need to XFlush the display.

Step 3:Produce XWD files of your maps Draw the map Draw the data XFlush(display); system(“xwdjms…”); You need to XFlush the display.

Step 3:Produce XWD files of your maps Draw the map Draw the data XFlush(display); system(“xwdjms…”); Display *display; display = gget_xdisplay();

Step 3:Produce XWD files of your maps Display *display; display = gget_xdisplay(); Draw the map Draw the data XFlush(display); system(“xwdjms…”);

The Steps: 1.Decide what you’ll show 2.Versions w/o interaction 3.Produce XWD files 4.Set up scripts 5.Set up crontabs 6.Write HTML code

Step 4: Create a “script” that runs these programs. “scripts” – little programs that perform unix commands. An example of a script:

Step 4: Create a “script” that runs these programs. An example of a script: #! /bin/csh –f rm *.gif mv sample.data my.data

Step 4: Create a “script” that runs these programs. All scripts start with “pound bang space slash bin slash sea ess aich space minus eff” #! /bin/csh –f rm *.gif mv sample.data my.data

Step 4: Create a “script” that runs these programs. Everything after that just runs as if you typed it at the keyboard in Unix. #! /bin/csh –f rm *.gif mv sample.data my.data

Step 4: Create a “script” that runs these programs. Everything after that just runs as if you typed it at the keyboard in Unix. #! /bin/csh –f setenv DISPLAY wx-sun1:0. rm *.xwd MakeTempContours /opt/sfw/bin/convert image.xwd temperature.gif mv temperature.gif public_html

Step 4: Create a “script” that runs these programs. Change the execution privileges on your script: chmod a+x MyScript Test it.

The Steps: 1.Decide what you’ll show 2.Versions w/o interaction 3.Produce XWD files 4.Set up scripts 5.Set up crontabs 6.Write HTML code

Step 5: Set up a “crontab” that runs your script each hour crontabs are scripts that execute on a schedule. To edit a crontab, you need to have set the EDITOR variable to your favorite editor: setenv EDITOR vi setenv EDITOR pico

Step 5: Set up a “crontab” that runs your script each hour start editing: crontab –e Every line of the crontab schedules one task to be run repeatedly. There are 6 entries on every line:

Step 5: Set up a “crontab” that runs your script each hour The first entry is the MINUTE of each hour during which to run your job. 15 * * * * /export/home/schragej/MyScript Adams 1 Affelt Augustyn 2 Campbell 3 Craft 4 Dea 5 Fontaine 6 Franks 7 Hollibaugh 8 Hyda 9 Karr 10 Malone 11 Novella 12 Robinson 13 Selin 14 Smoliak 15 Taylor 16 Wilson 17

Step 5: Set up a “crontab” that runs your script each hour Entries 2, 3, 4, and 5 are the hour, day, day of week and day of month on which to run the job. A star means “every”. 15 * * * * /export/home/schragej/MyScript

Step 5: Set up a “crontab” that runs your script each hour The sixth entry is the name of your script, with the full path name! If your script prints ANYTHING to the screen, you’ll need to include: > /dev/null or the output will be ed to you! 15 * * * * /export/home/schragej/MyScript

The Steps: 1.Decide what you’ll show 2.Versions w/o interaction 3.Produce XWD files 4.Set up scripts 5.Set up crontabs 6.Write HTML code

Your (Last!) Assignment Impress me with a web site with weather charts that refresh hourly!