Computer Science S-75: Building Dynamic Websites Harvard Extension School Fall 2009

Project 0: Setup due Monday, 28 September 2009, noon ET Goals. • •

Make sure you’re comfortable with XHTML and CSS. Lay the foundation for Projects 1 and beyond.

Recommended Reading. •

HTML, XHTML, and CSS: Your visual blueprint for designing effective Web pages: chapters 1 – 11, 13, 14, 18, and 19; appendices A, B, and C.

• • • •

http://www.howstuffworks.com/dns.htm http://www.howstuffworks.com/web-server.htm http://www.w3schools.com/xhtml/ http://www.w3schools.com/css/

0<5

Computer Science S-75: Building Dynamic Websites Harvard Extension School Fall 2009

Academic Honesty All work that you do toward fulfillment of this course’s expectations must be your own unless collaboration is explicitly allowed (e.g., by some problem set or the final project). Viewing or copying another individual’s work (even if left by a printer, stored in an executable directory, or accidentally shared in the course’s virtual classroom) or lifting material from a book, magazine, website, or other source—even in part—and presenting it as your own constitutes academic dishonesty, as does showing or giving your work, even in part, to another student. Similarly is dual submission academic dishonesty: you may not submit the same or similar work to this course that you have submitted or will submit to another. Nor may you provide or make available your or other students’ solutions to Project 1, Project 2, or Project 3 to individuals who take or may take this course in the future. Moreover, submission of any work that you intend to use outside of the course (e.g., for a job) must be approved by the staff. You are welcome to discuss the course’s material with others in order to better understand it. You may even discuss problem sets with classmates, but you may not share code. You may also turn to the Web for instruction beyond the course’s lectures and sections, for references, and for solutions to technical difficulties, but not for outright solutions to problems on projects. However, failure to cite (as with comments) the origin of any code or technique that you do discover outside of the course’s lectures and sections (even while respecting these constraints) and then integrate into your own work may be considered academic dishonesty. If in doubt as to the appropriateness of some discussion or action, contact the staff. All forms of academic dishonesty are dealt with harshly.

1<5

Computer Science S-75: Building Dynamic Websites Harvard Extension School Fall 2009

fas.harvard.edu

…

Activate your FAS (Faculty of Arts and Sciences) Computer Account, if you haven’t already, by visiting the URL below and following the on-screen instructions. https://www.fas.harvard.edu/fasit/utilities/activate-pin/

Not only will this account will provide you with an email address of the form [email protected], where username is your FAS username, it will also enable you to log into and use computers in the Science Center at 1 Oxford Street in Cambridge. Realize that this account is distinct from the account you will have on cs75.net. Be sure to remember your FAS username and password!

godaddy.com

…

Surf on over to http://godaddy.com/ and buy yourself a domain. Any TLD is fine by us! And it shouldn’t cost you more than a few dollars (say, $9.99 plus taxes and fees). A “registration length” of just one year is fine, and beware Go Daddy’s incessant attempts to up-sell you! Certainly do not pay for hosting, as we’ll be doing that for you. If you’d like to keep your name and address out of the public WHOIS database, you might want to pay a bit extra for “Private Registration.” Unfortunately, Go Daddy’s interface isn’t the most straightforward; figuring out how to check out is part of the challenge! If you don’t have one already, you’ll need to create a “Customer Account” before you can check out. Be sure to remember your Customer # (or Login Name) and password!

…

Once you’ve purchased your domain, return to Go Daddy’s home page, and click My Domains under Domains in the site’s top-left corner, logging in with your Customer # (or Login Name) and password if prompted. You should then see a list of domains that you own; click the one you just purchased. Under Name Servers on the page that appears, you’ll likely see that your domain is currently “parked” with Go Daddy. Go ahead and click one of those nameservers and, on the page that appears, provide the Custom nameservers below instead: Nameserver 1: ns1.cs75.net Nameserver 2: ns2.cs75.net Then click OK. That’s it! Within minutes (or, worst case, a few days), the world should know that cs75.net is hosting your domain!

2<5

Computer Science S-75: Building Dynamic Websites Harvard Extension School Fall 2009

cs75.net

…

Once you’ve purchased your domain and customized it with the course’s nameservers, surf on over to the URL below and tell us a bit about yourself. http://www.cs75.net/surveys/0/

Within 48 hours, you should receive an email via your preferred address from [email protected] containing your username and password for cs75.net. Be sure to remember both! If you don’t receive said email within 72 hours, check your spam folder! If still nothing, drop [email protected] a note to inquire. …

Once you’ve received your username and password for cs75.net, surf on over to the URL below and log in with the same to access your domain’s “control panel.” https://panel.cs75.net/

Pretty neat how much you can do, eh? Poke around a bit, even if you’re not (yet) sure what everything does. Try not to break anything. ;-) In particular, don’t change anything under DNS Management, Subdomain Management, or MX Records unless you know what you’re doing! You’re welcome to change your password. If you click E-Mail Accounts, you’ll see that one address has been created for you automatically. If you’d like to create one or more other addresses within your domain, go ahead and click Create mail account and complete the form that appears. (It’s fine to leave Email Quota as 0.) Incidentally, even if you don’t plan on using the address that was created for you automatically, don’t try to delete it. You’re welcome to start using your domain for email, certainly for the duration of the summer. In fact, prove that you’re now on teh interwebs by emailing a quick hello to [email protected] from any address within your domain. You can access your domain’s email account(s) via webmail as well as via IMAP, POP, and SMTP. A webmail interface can be found on your control panel’s home page. And the email you received from us, containing your username and password for cs75.net, should contain instructions for IMAP, POP, and SMTP.

domain.tld

…

Alright, it’s time to give your domain a home on the Web. If you surf on over to http://domain.tld/ or http://www.domain.tld/, where domain.tld is the domain that you bought, you’ll see that there’s not all that much there. Yet! Your final task for this project is to build yourself a website using just XHTML and CSS. This one won’t be dynamic, as it’s meant to prepare you for the projects ahead. Consider this website your opportunity to experiment with XHTML and CSS, particularly if you’re not very comfortable yet. Use of WYSIWYG tools (e.g., Dreamweaver) is expressly forbidden. You must write your XHTML and CSS “by hand” using only a text editor (e.g., Notepad or TextEdit). Text editors with

3<5

Computer Science S-75: Building Dynamic Websites Harvard Extension School Fall 2009

non-WYSIWYG features like syntax highlighting (e.g., Emacs, Nano, TextPad, TextWrangler, Vim, etc.) are allowed and encouraged. We leave your website’s content and style entirely to you, but we require that it meet the specifications below. …

Your

website

must

http://www.domain.tld/. index.html.

… … … … … … … … …

live

at http://domain.tld/ or, equivalently, Presumably, then, your home page will be called

Your website must comprise at least three pages, all of which are somehow interconnected via hyperlinks. Each of your pages must link in its head element to YUI’s Reset CSS and Fonts CSS. Each of your pages must link in its head element to an external stylesheet of your own (e.g., styles.css). At least one of your pages must make use of a CSS class. At least one of your pages must include at least one image. At least one of your pages must include at least one mailto: link. At least one of your pages must include at least one table. Your website’s XHTML must be valid (or “tentatively” valid), as per http://validator.w3.org/. Your website must appear and behave the same on at least two major browsers, namely:* … Chrome 2.x … Firefox 3.x … Internet Explorer 7.x or 8.x … Opera 9.x … Safari 3.x or 4.x

You are welcome to develop your website anywhere (e.g., on your local machine), so long as you ultimately upload it (as via your control panel or SFTP) to your domain’s public_html directory with appropriate permissions. (Odds are any files should be chmod’d 644 and any directories 711.) 6.

By this project’s deadline, submit your website by SSHing to your domain and executing the command below. submit project 0

Thereafter, follow any on-screen instructions until you receive visual confirmation of your work’s successful submission. You may re-submit as many times as you’d like, but take care not to re-submit after the project’s deadline, lest your work be deemed late.

*

If your website requires certain browsers for proper rendering, be sure to tell us (e.g., in your website's footer).

4<5

Specification - Building Dynamic Websites

Sep 28, 2009 - All work that you do toward fulfillment of this course's expectations must be your own unless collaboration is explicitly allowed (e.g., by some ...

91KB Sizes 0 Downloads 281 Views

Recommend Documents

Specification - Building Dynamic Websites
Sep 28, 2009 - HTML, XHTML, and CSS: Your visual blueprint for designing effective Web .... At least one of your pages must include at least one mailto: link.

Syllabus - Building Dynamic Websites
Dec 21, 2009 - JavaScript and PHP, how to configure Apache and MySQL, how to ... Prior programming experience (in any language) and familiarity with ...

JavaScript - Building Dynamic Websites
put cursor in username field if empty if (document.forms.login.username.value == ""). { document.forms.login.username.focus(); document.forms.login.username.value = document.forms.login.username.value;. } // else put cursor in password field else. {

Notes - Building Dynamic Websites
case "PHP": header("Location: http://us.php.net/results.php?q=" . $_GET["q"]); break; case "MySQL": header("Location: http://search.mysql.com/search?q=" . ... purpose is to whisk the user away, in which case there shouldn't be any time left to ... de

Notes - Building Dynamic Websites
MySQL PHP) framework as well as employing Ajax. Ajax is the fantastic .... language which will empower you to create dynamic websites. Soon after, we'll hit ...

Notes - Building Dynamic Websites
these projects and on average you will require about 10 hours over the course of those three .... 1America is the best. Just ask this guy. 5 .... One of the advantages of doing our own web hosting is that we have root access over the server.

Notes - Building Dynamic Websites
in the semester when we work with databases that forgetting to escape user input can be a serious security concern. • We resorted .... Register for Frosh IMs. .

Syllabus - Building Dynamic Websites
Dec 21, 2009 - Today's websites are increasingly dynamic. Pages are no longer static HTML files but instead generated by scripts and database calls.

JavaScript - Building Dynamic Websites
if (document.forms.login.username.value == "") ... document.forms.login.password.focus(); ... 19. Quirks http://www.quirksmode.org/js/contents.html ...

Project 1 - Building Dynamic Websites
Oct 19, 2009 - All work that you do toward fulfillment of this course's expectations must be your own unless collaboration is explicitly allowed (e.g., by some ...

Project 1 - Building Dynamic Websites
Oct 19, 2009 - or other students' solutions to Project 1, Project 2, or Project 3 to .... After all, you don't want a phone call every ... That way, too, the folks at.

Computer Science E-75 - Building Dynamic Websites
Table adapted from http://www.webcheatsheet.com/php/regular_expressions.php. Page 4. 3. A Dynamic Website. Page 5. 4. OOP.

Computer Science E-75 - Building Dynamic Websites
Computer Science E-75. Building Dynamic Websites. Harvard Extension School http://www.cs75.net/. Lecture 5: SQL. David J. Malan [email protected] ...

Computer Science E-75 - Building Dynamic Websites
Computer Science E-75. Building Dynamic Websites. Harvard Extension School http://www.cs75.net/. Lecture 10: Ajax, Continued. David J. Malan.

Computer Science E-75 - Building Dynamic Websites
21. Debuggers. ▫ FireBug https://addons.mozilla.org/en-US/firefox/addon/1843. ▫ JavaScript Debugger https://addons.mozilla.org/en-US/firefox/addon/216 ...

Project 1: PizzaML - Building Dynamic Websites
Oct 19, 2009 - shared in the course's virtual classroom) or lifting material from a book, magazine, ... Design. To what extent is your code written well (i.e., clearly, ... The bulletin board is actually PHP-based software called SMF that we download

Computer Science E-75 - Building Dynamic Websites
Page 2. 1. Grades. Page 3 ... Page 4. 3. Relational Databases. Page 5 ... 10. Lunch http://www.rebeccascafe.com/wraps_sandwiches_boston_catering.html.

Computer Science E-75 - Building Dynamic Websites
Computer Science E-75. Building Dynamic Websites. Harvard Extension School http://www.cs75.net/. Lecture 10: Ajax, Continued. David J. Malan.

Computer Science E-75 - Building Dynamic Websites
Table adapted from http://www.webcheatsheet.com/php/regular_expressions.php. Page 4. 3. A Dynamic Website. Page 5. 4. OOP.

Computer Science E-75 - Building Dynamic Websites
Page 2 ... 11. Caching. ▫ .html. ▫ MySQL Query Cache. ▫ memcached. ▫ . ... query_cache_type = 1 http://dev.mysql.com/doc/refman/5.0/en/query-cache.html ...

Lectures / Lecture 9 - Building Dynamic Websites
Andrew Sellergren. Contents. 1 Announcements (0:00–2:00). 2. 2 Ajax (2:00–105:00). 2. 2.1 Introduction . ... 2.4.2 ajax2.html . ... 2.4.10 ajax10.html .

Project 0: Setup - Building Dynamic Websites
Sep 28, 2009 - Within 48 hours, you should receive an email via your preferred address from [email protected] containing your username and password for cs75.net. Be sure to remember both! If you don't receive said email within 72 hours, check your spam fo

Computer Science E-75 - Building Dynamic Websites
START TRANSACTION;. UPDATE account SET balance = balance - 1000 WHERE number = 2;. UPDATE account SET balance = balance + 1000 WHERE number = 1;. SELECT balance FROM account WHERE number = 2;. # suppose account #2 has a negative balance! ROLLBACK;. E

Computer Science E-75 - Building Dynamic Websites
6. Properties. ▫ onreadystatechange. ▫. readyState. □ 0 (unitialized). □ 1 (open). □ 2 (sent). □ 3 (receiving). □ 4 (loaded). ▫. responseBody. ▫. responseText. ▫. responseXML. ▫ status. □ 200 (OK). □ 404 (Not Found). □ 500