1 / 19

CS144 Discussion - 1

CS144 Discussion - 1. Chu-Cheng Hsieh. Office Hour: Thur 3 PM ~ 4PM Office: 4802 Bolter Hall Email: cchucla@gmail.com (using the discussion group if possible). Agenda. Discussion Groups Project Grading Process Introduction to Project 1 Using cookie in PHP.

rimona
Télécharger la présentation

CS144 Discussion - 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS144 Discussion - 1 Chu-Cheng Hsieh Office Hour: Thur3PM~ 4PM Office: 4802 Bolter Hall Email: cchucla@gmail.com(using the discussion group if possible)

  2. Agenda • Discussion Groups • Project Grading Process • Introduction to Project 1 • Using cookie in PHP

  3. Before jumping start • Who am I? • http://oak.cs.ucla.edu/~chucheng/ • What’s my role? • Your expectation about TA discussion

  4. Discussion Groups • We have participation awards. • Use “Private questions” • All course staff can see • E.g. appealing your score, personal issues, … • Email: cchucla@gmail.com only if • You don’t want the other TA and Prof. Cho see your post. • Please Put [CS144] in Subject

  5. Ask a smart question • Peers/TA are NOT • a debugging tool • We can’t see your screen • Be clear and in details • Be specific • Don’t copy-paste your code to the forum(see below) • Academic Honesty • Please do not disclose your answer (in Piazza or any other website) • A workaround: rewrite it in a way that your answer is not revealed.

  6. Topic 1: Project Grading • 50 % of your total score • It is important !

  7. How project will be grade? • A neutral TA(grader) will grade your project independently. • How to appeal if you got complaints about grader? • Need a detail of your errors  Grader • Anything else  TA

  8. Rule 1:Make sure it can run !!TESTing on a CLEAN environment before your submission is always a good idea.

  9. What if it can’t run? 0

  10. Rule 2: Grace Period • Use it wisely!! • At most 2 day per Project. • 4 day per person • If you need more … • Email TA? • No… Write a private post!! • Nothing is FreePolicy 5th day 20% off, 6th day 40% off • Become a team?How? • In your README • Min (user1, user2)

  11. Rule 3You can submit more than once.Later submission prevail.

  12. What if two person become a team? • For making life easier:Please have your submission always uploaded by the same person in your team in every project. • We give the same standard no matter you form a team or not. • But having a team is a smart move (pair programming, etc.)

  13. Be cautious… • Two person CAN NOT form a team in Project X if • Both of them had uploaded a submission separately • Thus, you have to wait until Project X+1

  14. Rule 4Make your README- clear & brief

  15. What should in your readme? • Who is in your team? • Contribute to others. (Which part is NOT original) • Plain text only. NO PDF!! • NOTE: We won’t grade your README.

  16. Topic 2: Project 1 Overview • Download VM and Open it • Write a sql script to load actors.csv • Write a java code to compute SHA-1 • sha1sum • Test on both text and binary files • Create a submission page. • Share directory • C:\vm-shared /home/cs144/shared

  17. Topic 3: Cookie • What is the same domain policy? • http://beech.cs.ucla.edu/cs144demo/index.html • http://oak.cs.ucla.edu/~chucheng/cs144demo/index.php • Is the same domain policy still applied?

  18. Topic 3: Cookie <?php ob_start(); ?> <html> <head> <?php if (!isset($_COOKIE["count"])){ setcookie("count", 1, time()+3600); $var_cnt = 1; } else{ setcookie("count", $_COOKIE["count"] + 1, time()+3600); $var_cnt = $_COOKIE["count"] + 1; } ?> </head> <body> <?php echo "Welcome friend!<br />"; echo "This is your " . $var_cnt . " visit!<br />“; ?> </body> </html>

  19. http://oak.cs.ucla.edu/~chucheng/cs144demo/index.php http://beech.cs.ucla.edu/cs144demo/ Demo

More Related