Building a Rails Application. Part 2
|
|
- Louisa Lamb
- 5 years ago
- Views:
Transcription
1 Building a Rails Application Part 2
2
3 app/views/layouts/store.rhtml <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " <html> <head> <title>pragprog Books Online Store</title> <%= stylesheet_link_tag "depot", :media => "all" %> </head> <body id="store"> <div id="banner"> <%= image_tag("logo.png") %> "Pragmatic Bookshelf" %> </div> <div id="columns"> <div id="side"> <a href=" /> <a href=" /> <a href=" /> <a href=" /> </div> <div id="main"> <%= yield :layout %> </div> </div> </body> </html>
4 public/stylesheets also update depot.css
5
6 Formatting currency <h1>your pragmatic catalogue</h1> <% for product -%> <div class="entry"> <%= image_tag(product.image_url) %> <h3><%= h(product.title) %></h3> <%= product.description %> <span class="price"><%= number_to_currency(product.price) %></span> </div> <% %>
7
8 Add to Cart <h1>your pragmatic catalogue</h1> <% for product -%> <div class="entry"> <%= image_tag(product.image_url) %> <h3><%= h(product.title) %></h3> <%= product.description %> <span class="price"> <%= number_to_currency(product.price) %></span> <%= button_to "Add to Cart", :action => :add_to_cart, :id => product %> </div> <% %>
9
10 generate session_migration add_sessions migrate to current version open config/environment.rb
11 then restart the application # Force all environments to use the same logger level # (by default production uses :info, the others :debug) # config.log_level = :debug # Use the database for sessions instead of the file system # (create the session table with 'rake db:sessions:create') config.action_controller.session_store = :active_record_store # Use SQL instead of Active Record's schema dumper when creating the test database. # This is necessary if your schema can't be completely dumped by the schema dumper, # like if you have constraints or database-specific column types # config.active_record.schema_format = :sql
12 unique cookie name In: Controllers/application.rb class ApplicationController < ActionController::Base # Pick a unique cookie name to distinguish our session data from others' session :session_key => '_depot_session_id'
13 Finding the cart class StoreController < ApplicationController def = Product.find_products_for_sale private def find_cart session[:cart] = Cart.new
14 Making the Cart Create a Class Cart in Models don t use the generator as this one isn t linked to the database.
15 models/cart.rb class Cart attr_reader :items def = [] def << product
16 store_controller.rb def = find_cart product =
17
18 views/store/add_to_cart.rhtml <h1>your Pragmatic Cart</h1> <ul> <% for item %> <li><%= h(item.title) %></li> <% %> </ul>
19
20 class CartItem attr_reader :product, :quantity def = = 1 def += 1 def title product.title def * quantity
21 update class Cart def add_product(product) current_item { item item.product == product} if current_item current_item.increment_quantity << CartItem.new(product)
22 update view/add_to_cart.rhtml <h1>your Pragmatic Cart</h1> <ul> <% for cart_item %> <li><%= cart_item.quantity %> <%= h(cart_item.title) %></li> <% %> </ul>
23 Run Rake Task db:sessions:clear
24
25
26 Handling the error 1. Log the error in an internal log file 2. Output a short message to the User 3. Redisplay the catalogue page
27 update store_controller.rb def add_to_cart begin product = Product.find(params[:id]) rescue ActiveRecord::RecordNotFound logger.error("attempt to access invalid product #{params[:id]}") flash[:notice] = "Invalid product" redirect_to :action => :index =
28 Logs/development.log Processing StoreController#add_to_cart (for 0:0:0:0:0:0:0:1%0 at :58:12) [GET] Session ID: 9585c976ca2b44b53bfc0e11f177379c Parameters: {"action"=>"add_to_cart", "id"=>"wibble", "controller"=>"store"} [4;36;1mProduct Columns ( )[0m [0;1mSHOW FIELDS FROM products[0m [4;35;1mProduct Load ( )[0m [0mSELECT * FROM products WHERE (products.`id` = 0) [0m Attempt to access invalid product wibble Redirected to Completed in (34 reqs/sec) DB: (41%) 302 Found [ Processing StoreController#index (for 0:0:0:0:0:0:0:1%0 at :58:13) [GET] Session ID: 9585c976ca2b44b53bfc0e11f177379c Parameters: {"action"=>"index", "controller"=>"store"} [4;36;1mProduct Load ( )[0m [0;1mSELECT * FROM products ORDER BY title[0m Rering within layouts/store Rering store/index [4;35;1mProduct Columns ( )[0m [0mSHOW FIELDS FROM products[0m Completed in (31 reqs/sec) Rering: (65%) DB: (28%) 200 OK [
29 modify the main div of store.rhtml <div id="main"> <% if flash[:notice]-%> <div id="notice"><%= flash[:notice] %></div> <% -%> <%= yield :layout %> </div>
30
31 emptying the cart modify add_to_cart.rhtml <h1>your Pragmatic Cart</h1> <ul> <% for cart_item %> <li><%= cart_item.quantity %> <%= h(cart_item.title) %></li> <% %> </ul> <%= button_to "Empty Cart", :action => :empty_cart %>
32 add into store_controller.rb def empty_cart session[:cart] = nil flash[:notice] = "Your cart is currently empty" redirect_to :action => :index
33
34 Refactor! def add_to_cart begin product = Product.find(params[:id]) rescue ActiveRecord::RecordNotFound logger.error("attempt to access invalid product #{params[:id]}") redirect_to_index("invalid Product") = def empty_cart session[:cart] = nil redirect_to_index("your cart is currently empty") private def redirect_to_index(msg) flash[:notice] = msg redirect_to :action => :index
35 tidy up cart Replace add_to_cart.rhtml (in Views/store) with the version on the course lectures Web page add into class Cart: def { item item.price }
36
Building a Rails Application
Building a Rails Application Let s get started! Use MySQL to create a depot_development database Create a new Ruby on Rails project called depot Make sure root password is included in Configuration/database.yml
More informationappendix B: Working with Ruby on Rails
B1 appix B: Working with Ruby on Rails APPENDIX B B2 Since the beginning of the Web, both static and dynamic typed languages have been used for writing web applications. Java and its cousin C# have emerged
More informationUser Authentication and Session Control
User Authentication and Session Control CITS3403 Web & Internet Technologies Includes material from Agile Web Development with Rails, 3rd Ed, 2008 and 4 th Ed 2011, 2012 The Pragmatic Programmers. Slides
More informationRails: Views and Controllers
Rails: Views and Controllers Computer Science and Engineering College of Engineering The Ohio State University Lecture 18 Recall: Rails Architecture Wiring Views and Controllers A controller is just an
More informationCOM401 Software Engineering Laboratory
Computer Engineering Department COM401 Software Engineering Laboratory November 04, 2014 LAB-3: Rails Introduction Time: 2 lab hours Objectives: Practice with Ruby Symbols Routes MVC pattern CRUD operations
More informationRuby on Rails Installation
Ruby on Rails Installation http://www.tutorialspoint.com/ruby-on-rails/rails-installation.htm This tutorial will guide you to set up a private Ruby on Rails environment in the daw server. Step 0: Login
More informationAgile Web Development with Rails 5
Extracted from: Agile Web Development with Rails 5 This PDF file contains pages extracted from Agile Web Development with Rails 5, published by the Pragmatic Bookshelf. For more information or to purchase
More informationCS169.1x Lecture 6: Basic Rails" Fall 2012"
CS169.1x Lecture 6: Basic Rails" Fall 2012" 1" The Database is Golden Contains valuable customer data don t want to test your app on that! Rails solution: development, production and test environments
More informationLecture 8. Validations & Sessions 1 / 41
Lecture 8 Validations & Sessions 1 / 41 Advanced Active Record 2 / 41 More Complex Queries Arel provides us with a number of methods to query our database tables So far, we've only used find which limits
More informationHTML Overview. With an emphasis on XHTML
HTML Overview With an emphasis on XHTML What is HTML? Stands for HyperText Markup Language A client-side technology (i.e. runs on a user s computer) HTML has a specific set of tags that allow: the structure
More informationAt the Forge RJS Templates Reuven M. Lerner Abstract The power of Ajax to fetch and run JavaScript generated by your server-side language. The past few months, I've written a number of articles in this
More informationWhere we are. For example. Extensions. Authorization and Testing
Where we are Authorization and Testing Last time: We added the ability of users to log in, and made sure that we treated their passwords in a secure fashion. INFO 2310: Topics in Web Design and Programming
More informationSliding PayPal Shopping Cart 2 DMXzone
Table of contents Table of contents... 1 About Sliding PayPal Shopping Cart 2... 2 Features in Detail... 3 The Basics: Use Sliding PayPal Shopping Cart 2 on your Page... 21 Advanced: Different Options
More informationASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1
ASP.NET Security 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security Architecture 7/26/2017 EC512 Prof. Skinner 2 Security Types IIS security Not ASP.NET specific Requires Windows accounts (NTFS file system)
More informationChoose Your Battles and LetIt::REST. Hampton Catlin and Jeffrey Hardy
Choose Your Battles and LetIt::REST Hampton Catlin and Jeffrey Hardy Obligatory Resume 50 years of Rails experience PHDs from MIT Founded the Dharma Initiative Invented Haml, Scribbish, Sass, ASCII, Ruby,
More informationRuby%on%Rails% Ruby%on%Rails% %,% 1
Ruby%on%Rails% by#@tonytonyjan Ruby%on%Rails% %,% 1 / /tonytonyjan tonytonyjan.net Ruby-on-Rails- TJDict-Chrome- Rails-Girls-Taipei-1~5- Ruby%on%Rails% %,% 2 Ruby&(Rails) C&(Qt) Java&(Swing) Network&Programming
More informationTable of Contents EVALUATION COPY
Table of Contents What is Ruby on Rails?... 1-2 Overview of Rails Components... 1-3 Installing Rails... 1-5 A Simple Rails Application... 1-6 Starting the Rails Server... 1-8 Static Pages Within a Rails
More informationLab 4 CSS CISC1600, Spring 2012
Lab 4 CSS CISC1600, Spring 2012 Part 1 Introduction 1.1 Cascading Style Sheets or CSS files provide a way to control the look and feel of your web page that is more convenient, more flexible and more comprehensive
More informationWeb System Development with Ruby on Rails
Web System Development with Ruby on Rails Day 11(6/Dec/2012) File uploading and Image Display Today's Theme p Upload image files to the database, and let Memopad store the image file. p Try some other
More informationAgile Web Development with Rails 5
Extracted from: Agile Web Development with Rails 5 This PDF file contains pages extracted from Agile Web Development with Rails 5, published by the Pragmatic Bookshelf. For more information or to purchase
More informationEffective Rails Testing Practices
Effective Rails Testing Practices Mike Swieton atomicobject.com atomicobject.com 2007: 16,000 hours General testing strategies Integration tests View tests Controller tests Migration tests Test at a high
More informationBusiness Card Ordering Instructions
Business Card Ordering Instructions 1. Step by step to order a business card 1.1. Select a business card Select the category of product you would like to order. Click once or click on the white arrow next
More informationCreating A Web Page. Computer Concepts I and II. Sue Norris
Creating A Web Page Computer Concepts I and II Sue Norris Agenda What is HTML HTML and XHTML Tags Required HTML and XHTML Tags Using Notepad to Create a Simple Web Page Viewing Your Web Page in a Browser
More informationLecture 6: Web Security CS /17/2017
Lecture 6: Web Security CS5431 03/17/2017 2015 Security Incidents Web Vulnerabilities by Year 2500 2000 1500 1000 500 0 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015
More informationIntroduction to HTML5
Introduction to HTML5 History of HTML 1991 HTML first published 1995 1997 1999 2000 HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 After HTML 4.01 was released, focus shifted to XHTML and its stricter standards.
More informationCopyright 2013 Avdi Grimm. All rights reserved.
Copyright 2013 Avdi Grimm. All rights reserved. Confident Ruby 4.17 Represent special cases as objects If it's possible to for a variable to be null, you have to remember to surround it with null test
More informationLayouts and Rendering in Rails
Layouts and Rering in Rails January 13, 2015 This guide covers the basic layout features of Action Controller and Action View. After reading this guide, you will know: How to use the various rering methods
More informationCSCI-2320 Web Programming: Ruby on Rails
CSCI-2320 Web Programming: Ruby on Rails Mohammad T. Irfan Plan u Model-View-Controller (MVC) framework of web programming u Ruby on Rails 1 Ruby on Rails u Developed by David Hansson released 2004 u MVC
More informationWeb Development & Design Foundations with XHTML. Chapter 2 Key Concepts
Web Development & Design Foundations with XHTML Chapter 2 Key Concepts Learning Outcomes In this chapter, you will learn about: XHTML syntax, tags, and document type definitions The anatomy of a web page
More informationLecture 4. Ruby on Rails 1 / 49
Lecture 4 Ruby on Rails 1 / 49 Client-Server Model 2 / 49 What is it? A client (e.g. web browser, phone, computer, etc.) sends a request to a server Request is an HTTP request Stands for HyperText Transfer
More informationContents in Detail. Foreword by Xavier Noria
Contents in Detail Foreword by Xavier Noria Acknowledgments xv xvii Introduction xix Who This Book Is For................................................ xx Overview...xx Installation.... xxi Ruby, Rails,
More informationMastering Modern Payments
Mastering Modern Payments Using Stripe with Rails by Pete Keen Sample Chapter State and History So far in our little example app we can buy and sell downloadable products using Stripe. We're not keeping
More informationHow the Internet Works
How the Internet Works The Internet is a network of millions of computers. Every computer on the Internet is connected to every other computer on the Internet through Internet Service Providers (ISPs).
More informationAuthentication in Rails
Authentication in Rails Aaron Mulder CTO Chariot Solutions Philly on Rails, October 2007 1 Agenda The problem Plugins in Rails, and the (many) solutions acts_as_authenticated Generated Code Custom Code
More informationBe Careful, Your Java is Showing. Joe O Brien, artisan EdgeCase, LLC
Be Careful, Your Java is Showing Joe O Brien, artisan EdgeCase, LLC A language that doesn't affect the way you think about programming, is not worth knowing. Alan J. Perlis, Yale University .NET / Java
More informationhome.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/
home.php 1/1 3: * home.php 5: * A simple home page for these login demos. 6: * David J. Malan 8: * Computer Science E-75 9: * Harvard Extension School 10: */ 11: // enable sessions 13: session_start();
More informationComputer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006
Computer Science E-1 Understanding Computers and the Internet Lecture 10: Website Development Wednesday, 29 November 2006 David J. Malan malan@post.harvard.edu 1 Agenda Webservers Structure Permissions
More informationImplementing a chat button on TECHNICAL PAPER
Implementing a chat button on TECHNICAL PAPER Contents 1 Adding a Live Guide chat button to your Facebook page... 3 1.1 Make the chat button code accessible from your web server... 3 1.2 Create a Facebook
More informationLecture 2: Tools & Concepts
Lecture 2: Tools & Concepts CMPSCI120 Editors WIN NotePad++ Mac Textwrangler 1 Secure Login Go WIN SecureCRT, PUTTY WinSCP Mac Terminal SFTP WIN WinSCP Mac Fugu 2 Intro to unix pipes & filters file system
More informationXHTML & CSS CASCADING STYLE SHEETS
CASCADING STYLE SHEETS What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version
More informationWeb applications Developing Android/Iphone Applications using WebGUI
Web applications Developing Android/Iphone Applications using WebGUI Joeri de Bruin Oqapi Software joeri@oqapi.nl 1 Overview Web applications Create WebApp with WebGUI Turn WebApp into native mobile app
More informationTRAINING GUIDE. Rebranding Lucity Web
TRAINING GUIDE Rebranding Lucity Web Rebranding Lucity Web Applications In this booklet, we ll show how to make the Lucity web applications your own by matching your agency s style. Table of Contents Web
More informationWEB 2.0 AND COMMU NI CAT I ON I N N ONP ROF I T ORG AN IZ ATI ONS :
WEB 2.0 AND COMMU NI CAT I ON I N N ONP ROF I T ORG AN IZ ATI ONS : A Case Study and Proof of Concep! William Clerico clericow@bc.edu Boston College Computer Science Department Senior Thesis Advisor: William
More informationWicket and Aida/Web Brief Comparison
Wicket and Aida/Web Brief Comparison Jaroslav Havlín ČVUT FEL Subject X36ASS Introduction The aim of this project is to design a simple reservation system for a small restaurant and to implement it twice,
More informationLecture 4. Ruby on Rails 1 / 52
Lecture 4 Ruby on Rails 1 / 52 Homeworks 2 & 3 Grades were released for homework 2 Homework 3 was due last night Everyone got a style freebie since my default setup ignores spec files and I didn't change
More informationRails: Associations and Validation
Rails: Associations and Validation Computer Science and Engineering College of Engineering The Ohio State University Lecture 17 Schemas, Migrations, Models migrations models database.yml db:migrate db:create
More informationSlide 1. Chapter 5. How to use the MVC pattern to organize your code. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C5
Slide 1 Chapter 5 How to use the MVC pattern to organize your code and MySQL, C5 Slide 2 Objectives Applied 1. Use the MVC pattern to develop your web applications. 2. Create and use functions that do
More informationblink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/
blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11:
More informationA designers guide to creating & editing templates in EzPz
A designers guide to creating & editing templates in EzPz Introduction...2 Getting started...2 Actions...2 File Upload...3 Tokens...3 Menu...3 Head Tokens...4 CSS and JavaScript included files...4 Page
More informationDreamweaver: Portfolio Site
Dreamweaver: Portfolio Site Part 3 - Dreamweaver: Developing the Portfolio Site (L043) Create a new Site in Dreamweaver: Site > New Site (name the site something like: Portfolio, or Portfolio_c7) Go to
More informationScripting for Multimedia LECTURE 1: INTRODUCING HTML5
Scripting for Multimedia LECTURE 1: INTRODUCING HTML5 HTML An acronym for Hypertext Markup Language Basic language of WWW documents HTML documents consist of text, including tags that describe document
More informationCreate a cool image gallery using CSS visibility and positioning property
GRC 275 A8 Create a cool image gallery using CSS visibility and positioning property 1. Create a cool image gallery, having thumbnails which when moused over display larger images 2. Gallery must provide
More informationASP.NET - MANAGING STATE
ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects
More informationWeek 1 - Overview of HTML and Introduction to JavaScript
ITEC 136 Business Programming Concepts Week 1 Module 1: Overview of HTML and Course overview Agenda This week s expected outcomes This week s topics This week s homework Upcoming deadlines Questions and
More informationWEB PROGRAMMING LAB. Course Code: 15CT1123 L T P C. (Common to CSE&IT)
177 WEB PROGRAMMING LAB (Common to &IT) Course Code: 15CT1123 L T P C 0 0 3 2 Pre-requisites: Object Oriented Programming through Java Course Outcomes : At the end of the Course, the Student will be able
More informationDay 8: 7/June/2012. Log-in Authentication
Day 8: 7/June/2012 Log-in Authentication p Learn authentication so that only specific users can use the Web information of the system. p We use Devise to p Add one line to the file project/gemfile gem
More informationRuby%on%Rails% Ruby%on%Rails% %,% 1
Ruby%on%Rails% by#@tonytonyjan Ruby%on%Rails% %,% 1 !layout controller Ruby%on%Rails% %,% 2 !layout controller "applica(on.{js,css} applica(on.html.erb "admin.{js,css} admin.html.erb "admin"namespace"
More informationWireframe :: tistory wireframe tistory.
Page 1 of 45 Wireframe :: tistory wireframe tistory Daum Tistory GO Home Location Tags Media Guestbook Admin 'XHTML+CSS' 7 1 2009/09/20 [ ] XHTML CSS - 6 (2) 2 2009/07/23 [ ] XHTML CSS - 5 (6) 3 2009/07/17
More informationSOEN287: Web Programming
Concordia University Department of Computer Science and Software Engineering SOEN287: Web Programming Summer 2016 Programming assignment #1 Deadline: Friday, July, 22, 2016 @ 23:55 Late submission: Type
More informationHow to work with cookies and sessions
Chapter 12 How to work with cookies and sessions How cookies work A cookie is a name/value pair that is stored in a browser. On the server, a web application creates a cookie and sends it to the browser.
More informationTutorial on text transformation with pure::variants
Table of Contents 1. Overview... 1 2. About this tutorial... 1 3. Setting up the project... 2 3.1. Source Files... 4 3.2. Documentation Files... 5 3.3. Build Files... 6 4. Setting up the feature model...
More informationChado on Rails. a framework to simplify development on the Chado schema. Justin Reese / Chris Childers
Chado on Rails a framework to simplify development on the Chado schema Justin Reese / Chris Childers Some links: These slides: http://tinyurl.com/chadoonrails Source code, have a look: svn co http://chadoonrails.rubyforge.org/svn/trunk
More informationCMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document
CMT111-01/M1: HTML & Dreamweaver Bunker Hill Community College Spring 2011 Instructor: Lawrence G. Piper Creating an HTML Document 24 January 2011 Goals for Today Be sure we have essential tools text editor
More informationWeb Based Point Of Sale System
Web Based Point Of Sale System Jeremiah Bauer Student of Computer Engineering Technology Gary Steffen Faculty Advisor Paul Lin CPET 491 Professor May 2, 2014 2 Topics Introduction Previous system System
More informationProgramming the World Wide Web by Robert W. Sebesta
Programming the World Wide Web by Robert W. Sebesta Tired Of Rpg/400, Jcl And The Like? Heres A Ticket Out Programming the World Wide Web by Robert Sebesta provides students with a comprehensive introduction
More informationCSCI 5333 DBMS Fall 2017 Final Examination. Last Name: First Name: Student Id:
CSCI 5333 DBMS Fall 2017 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.
More informationDay 6: 24/May/2012. TDD (Test Driven Development)
Day 6: 24/May/2012 TDD (Test Driven Development) p Understand what TDD (Test Driven Development) is. p Understand the words related to the Test Driven Development p Get used to the Rails-Way of TDD p We
More informationModule 2 (III): XHTML
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (III): XHTML Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa
More informationModel-View-Controller (MVC)
Model-View-Controller (MVC) with Ruby on Rails Software Languages Team University of Koblenz-Landau Ralf Lämmel and Andrei Varanovich MVC - a classic definition The Model is the application object The
More informationJaywalking in Traffic Safe Migrations at Scale. Brad Urani Staff Engineer
Jaywalking in Traffic Safe Migrations at Scale Brad Urani Staff Engineer What is Scale? 20,000,000 rows fetched / sec 30,000 transactions / sec 6 TB + + People 14 Squads working on one of the biggest
More informationPart A Short Answer (50 marks)
Part A Short Answer (50 marks) NOTE: Answers for Part A should be no more than 3-4 sentences long. 1. (5 marks) What is the purpose of HTML? What is the purpose of a DTD? How do HTML and DTDs relate to
More informationajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/
ajax1.html 1/2 3: ajax1.html 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: David J. Malan 8: Dan Armendariz 9: Computer Science E-75 10: Harvard Extension School 11:
More informationCS 169 Spring 2016, Quiz 1
CS 169 Spring 2016, Quiz 1 Wednesday, Feb. 17, 2016 7 10pm 155 Dwinelle Your name: SID#: Name & signature of person on your left: Name & signature of person on your right: I certify that in accordance
More informationCSCI DBMS Spring 2017 Final Examination. Last Name: First Name: Student Id:
CSCI 5333.2 DBMS Spring 2017 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.
More informationCGI / HTTP(s) GET NETIO M2M API protocols docs
CGI / HTTP(s) GET NETIO M2M API protocols docs Short summary CGI protocol is one way control only, command based M2M API protocol, where NETIO device is HTTP(s) server accepting commands sent over HTTP(s)
More informationWeb development using PHP & MySQL with HTML5, CSS, JavaScript
Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create
More informationWhat is XHTML? XHTML is the language used to create and organize a web page:
XHTML Basics What is XHTML? XHTML is the language used to create and organize a web page: XHTML is newer than, but built upon, the original HTML (HyperText Markup Language) platform. XHTML has stricter
More informationCSCI 5333 DBMS Spring 2018 Final Examination. Last Name: First Name: Student Id:
CSCI 5333 DBMS Spring 2018 Final Examination Last Name: First Name: Student Id: Number: Time allowed: two hours. Total score: 100 points. This is a closed book examination but you can bring a cheat sheet.
More informationSITE MANAGEMENT, CHECKING AND PUBLISHING IN DREAMWEAVER MX 2004
SITE MANAGEMENT, CHECKING AND PUBLISHING IN DREAMWEAVER MX 2004 Introduction The exercises in this document assume you have completed at least exercises 1 and 4 from document 9.75 and exercises 1.1 and
More informationCookies and S essions 323
Cookies and Sessions 9 The Hypertext Transfer Protocol (HTTP) is a stateless technology, meaning that each individual HTML page is an unrelated entity. HTTP has no method for tracking users or retaining
More informationWeb Design and Development ACS Chapter 3. Document Setup
Web Design and Development ACS-1809 Chapter 3 Document Setup 1 Create an HTML file At their very core, HTML files are simply text files with two additional feature.htm or.html as file extension name They
More informationintroduction to XHTML
introduction to XHTML XHTML stands for Extensible HyperText Markup Language and is based on HTML 4.0, incorporating XML. Due to this fusion the mark up language will remain compatible with existing browsers
More informationMarkup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University
Markup Languages SGML, HTML, XML, XHTML CS 431 February 13, 2006 Carl Lagoze Cornell University Problem Richness of text Elements: letters, numbers, symbols, case Structure: words, sentences, paragraphs,
More informationDreamweaver CS3 Lab 2
Dreamweaver CS3 Lab 2 Using an External Style Sheet in Dreamweaver Creating the site definition First, we'll set up the site and define it so that Dreamweaver understands the site structure for your project.
More informationTo follow the Deitel publishing program, sign-up now for the DEITEL BUZZ ON-
Ordering Information: Advanced Java 2 Platform How to Program View the complete Table of Contents Read the Preface Download the Code Examples To view all the Deitel products and services available, visit
More informationProblem Set 7: Website Development
Problem Set 7: Website Development due Thursday, 22 December 2005, by 5:30 P.M. ET Please type or write your answers, but do not write your answers on the problem set itself (except for question 8). The
More informationCourslets, a golf improvement web service. Peter Battaglia
Courslets, a golf improvement web service Peter Battaglia Discussion Project Overview Design and Technologies Utilized Rails and REST URLs, URLs, URLs Rails and Web Services What s s exposed as a service?
More informationHere are some figures to consider while answering the following questions.
Here are some figures to consider while answering the following questions. Figure 1. Example page from Music Catalog web app. Figure 2. config/routes.rb Figure 3. Output of rake routes command. Figure
More information2.) You need personal webspace. This is usually provided by your Internet service provider. Check with your ISP on how to set up the webspace.
Welcome Congratulations for purchasing or trying out DIPLink, a tool that we believe will be very helpful for running a web server on your local home computer. DIPLink enables you to run a web server on
More informationBuilding Your Blog Audience. Elise Bauer & Vanessa Fox BlogHer Conference Chicago July 27, 2007
Building Your Blog Audience Elise Bauer & Vanessa Fox BlogHer Conference Chicago July 27, 2007 1 Content Community Technology 2 Content Be. Useful Entertaining Timely 3 Community The difference between
More informationWhat's new in Rails 4. Lucas Caton
What's new in Rails 4 Lucas Caton www.lucascaton.com.br 4 June 25, 2013 Rails 4.0: Final version released! Ruby 1.8.7 Ruby 1.9.2 Ruby 1.9.3 Ruby 2.0.0 RubyGems 2.x ThreadSafety memcache-client dalli =>
More informationRuby on Rails TKK, Otto Hilska
Ruby on Rails intro @ TKK, 25.5.2009 Otto Hilska 1 Today s agenda 1. The Ruby programming language 2. Ruby on Rails framework 3. An example project 2 About me Started Nodeta Oy in 2004 10+ employees always
More informationHTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.
HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information
More informationSession 24. Introduction to Java Server Faces (JSF) Robert Kelly, Reading.
Session 24 Introduction to Java Server Faces (JSF) 1 Reading Reading IBM Article - www.ibm.com/developerworks/java/library/jjsf2fu1/index.html Reference Sun Tutorial (chapters 4-9) download.oracle.com/javaee/6/tutorial/doc/
More informationRQs + PEs: More Servlets
RQs + PEs: More Servlets Advanced Topics in Java Khalid Azim Mughal khalid@ii.uib.no http://www.ii.uib.no/~khalid/atij/ Version date: 2006-09-04 ATIJ 1/7 REVIEW QUESTIONS - More Servlets 1. Explain the
More informationProblem: Write HTML would create web page depicted below. Your solution must include the following types of HTML elements (and no other
Problem: Write HTML would create web page depicted below. Your solution must include the following types of HTML elements (and no other types):!doctype, a (with href attribute), body, h1, head, html, img
More informationASP.NET Pearson Education, Inc. All rights reserved.
1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development
More informationXML. Technical Talk. by Svetlana Slavova. CMPT 842, Feb
XML Technical Talk by Svetlana Slavova 1 Outline Introduction to XML XML vs. Serialization Curious facts, advantages & weaknesses XML syntax Parsing XML Example References 2 Introduction to XML (I) XML
More informationChapter 1. Introduction to web development and PHP. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C1
1 Chapter 1 Introduction to web development and PHP 2 Applied Objectives Use the XAMPP control panel to start or stop Apache or MySQL when it is running on your own computer. Deploy a PHP application on
More informationUsing netbeans create a new Web Application and select the framework as JSF 2.2
Using netbeans create a new Web Application and select the framework as JSF 2.2 Following is the final structure of the project: index.xhtml
More information