[ Prev ]
2017-05-15

-- Practice Final Solutions
Saira Montermoso Harita Shroff Loan Vo David Lerner
Problem #5 document.getElementById("hungry").addEventListener("click", busyEating, true);
Saira Montermoso Harita Shroff Loan Vo David Lerner Problem #5 <nowiki>document.getElementById("hungry").addEventListener("click", busyEating, true);</nowiki>

-- Practice Final Solutions
Problem #10 Tanusan Rajmohan, Johan Paramanathan
 function detectOrientation() {
     switch(window.orientation) {  
       case -90 || 90:
         alert('landscape');
         break; 
       default:
         alert('portrait');
         break; 
     }
 }
  
 window.addEventListener('orientationchange', detectOrientation);
'''Problem #10''' Tanusan Rajmohan, Johan Paramanathan function detectOrientation() { switch(window.orientation) { case -90 || 90: alert('landscape'); break; default: alert('portrait'); break; } } window.addEventListener('orientationchange', detectOrientation);

-- Practice Final Solutions
Problem 7_Practice final
- C10k: refers to 10k concurrent open connections on a single machine 10k was initially a bottleneck for Apache because of the concurrent modules that all have multiple threads with multiple processes socket connections also require open file handle which are limited by the OS.
- Promises: is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason. Example: Suppose one was reading a PDF through the Javascript PDF viewer PDFJS. Then one left the site and came back. Suppose the script stored your previous location and now needs to restore it, but it first must wait until the pdf you were viewing has downloaded.
- REST: is an architecture style for designing networked applications. It relies on a stateless, client-server, cacheable communications protocol -- and in virtually all cases, the HTTP protocol is used. Example: http://www.yioop.com/s/news?f=rss&limit=20&num=30. The resource in this case is "http://www.yioop.com/s/news" and the arguments are (f, limit, num) which control the returned value from the resource.
Group:
Kirtan Patel, Xavier Reid, Mohammad Rizvi, Tri Tran
Problem 7_Practice final - C10k: refers to 10k concurrent open connections on a single machine 10k was initially a bottleneck for Apache because of the concurrent modules that all have multiple threads with multiple processes socket connections also require open file handle which are limited by the OS. - Promises: is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason. Example: Suppose one was reading a PDF through the Javascript PDF viewer PDFJS. Then one left the site and came back. Suppose the script stored your previous location and now needs to restore it, but it first must wait until the pdf you were viewing has downloaded. - REST: is an architecture style for designing networked applications. It relies on a stateless, client-server, cacheable communications protocol -- and in virtually all cases, the HTTP protocol is used. Example: http://www.yioop.com/s/news?f=rss&limit=20&num=30. The resource in this case is "http://www.yioop.com/s/news" and the arguments are (f, limit, num) which control the returned value from the resource. Group: Kirtan Patel, Xavier Reid, Mohammad Rizvi, Tri Tran
X