190 likes | 310 Vues
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.
E N D
CS144 Discussion - 1 Chu-Cheng Hsieh Office Hour: Thur3PM~ 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
Before jumping start • Who am I? • http://oak.cs.ucla.edu/~chucheng/ • What’s my role? • Your expectation about TA discussion
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
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.
Topic 1: Project Grading • 50 % of your total score • It is important !
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
Rule 1:Make sure it can run !!TESTing on a CLEAN environment before your submission is always a good idea.
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)
Rule 3You can submit more than once.Later submission prevail.
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.)
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
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.
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
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?
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>
http://oak.cs.ucla.edu/~chucheng/cs144demo/index.php http://beech.cs.ucla.edu/cs144demo/ Demo