{"id":1300,"date":"2016-09-02T15:51:49","date_gmt":"2016-09-02T19:51:49","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?page_id=1300"},"modified":"2022-08-30T07:50:24","modified_gmt":"2022-08-30T11:50:24","slug":"lab-week-01","status":"publish","type":"page","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/lab-week-01\/","title":{"rendered":"Lab Week 1"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><h2><em>Introduction<\/em><\/h2>\n<p>This lab is set up so you can learn how to build up a full deliverable that you can submit for credit in this course. As you work on these steps with guidance from your teaching assistant, you should look toward your neighbor to see if they need help (or ask if you need help). <strong>You can collaborate in lab during these activities!<\/strong><\/p>\n<p>In this lab, you will&nbsp;<\/p>\n<ul><li>Create a folder for all of your 15-104 work on your computer.<\/li>\n<li>Inside this 15-104 folder, you will create a folder for each lab and deliverable that you will work on throughout the semester.&nbsp;<\/li>\n<li>Inside the lab folder, you will create a mock deliverable that you will submit online.<\/li>\n<\/ul><h5><strong>Create a folder for all of your 15-104 work on your computer.<\/strong><\/h5>\n<ol><li>Simply create a new folder anywhere on your computer (e.g. on your desktop, in the Documents folder, etc.) and rename it <strong><span style=\"color: #ff0000;\">15-104<\/span><\/strong>.<\/li>\n<\/ol><h5><strong>Inside the 15-104 folder, create two folders, one for this lab, and one for the deliverable that will be due on Saturday.<\/strong><\/h5>\n<ol><li>For the lab folder, name it <span style=\"color: #ff0000;\"><strong>lab-01<\/strong><\/span>.<\/li>\n<li>For the deliverable folder, name it <strong><span style=\"color: #ff0000;\">handin-01<\/span><\/strong>. (We won&rsquo;t use this folder for the rest of this lab, but you will use it for your deliverable due on Saturday.)<\/li>\n<\/ol><p>Your folder structure should look like this:<\/p>\n<hr><p><strong>15-104<\/strong><\/p>\n<p style=\"padding-left: 40px;\"><strong>lab-01<\/strong><\/p>\n<p style=\"padding-left: 40px;\"><strong>handin-01<\/strong><\/p>\n<hr><h5><strong>Creating a simple program.<\/strong><\/h5>\n<p>Let&rsquo;s create a simple technical assignment that draws a circle in a webpage.<\/p>\n<ol><li>Download a copy of <span style=\"color: #000000;\">template-p5only.zip<\/span> and unzip it. You should see a folder <strong><span style=\"color: #ff0000;\">template-p5only<\/span><\/strong> that has two files inside. <strong>Rename<\/strong> <strong>this folder<\/strong> with your andrew ID followed by a dash followed by the week number (as two digits) followed by a dash&nbsp; followed by &ldquo;assignment&rdquo; (or &ldquo;project&rdquo; for the open-ended assignment). For this example, if this is the first assignment and your andrew id is acarnegie, you would rename the folder to <strong><span style=\"color: #ff0000;\">acarnegie-01-assignment<\/span><\/strong>.<\/li>\n<li>Move this folder inside the <strong>lab-01<\/strong> folder.<\/li>\n<li>Using your editor, open the <strong>sketch.js<\/strong> file that is inside this folder and edit the file so it looks like the example below. Note the change in the CreateCanvas line. <span style=\"font-size: inherit;\">Use four spaces to indent each command inside the function brackets for <strong>draw<\/strong>. The file should look like this:<\/span><img loading=\"lazy\" class=\"alignnone  wp-image-55229\" style=\"font-size: inherit;\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstsketch-300x175.png\" alt=\"\" width=\"545\" height=\"318\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstsketch-300x175.png 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstsketch.png 746w\" sizes=\"(max-width: 545px) 85vw, 545px\"><\/li>\n<li>Save the file.<\/li>\n<li>Double click on the <strong style=\"font-size: inherit;\">index.html<\/strong><span style=\"font-size: inherit;\"> to launch your default browser to see the results. (If it doesn&rsquo;t appear correctly, you might want to right click open to use a different browser or set your default browser to a different browser.) You should probably see something like this:<\/span><img loading=\"lazy\" class=\"alignnone size-medium wp-image-55230\" style=\"font-size: inherit;\" src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstoutput-300x297.png\" alt=\"\" width=\"300\" height=\"297\" srcset=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstoutput-300x297.png 300w, https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2020\/08\/firstoutput.png 426w\" sizes=\"(max-width: 300px) 85vw, 300px\"><\/li>\n<\/ol><p>Your folder structure should look like this now (indentation indicates subfolders or files within subfolders):<\/p>\n<hr><p>15-104<\/p>\n<p style=\"padding-left: 40px;\">lab-01<\/p>\n<p style=\"padding-left: 80px;\"><strong>acarnegie-01-assignment<\/strong><\/p>\n<p style=\"padding-left: 120px;\"><strong>index.html<\/strong><\/p>\n<p style=\"padding-left: 120px;\"><strong>sketch.js<\/strong><\/p>\n<p style=\"padding-left: 40px;\">handin-01&nbsp;<\/p>\n<hr><h5>Creating some blog text for Looking Outwards<\/h5>\n<ol><li>Make a new folder in the <strong>lab-01<\/strong> folder named andrewid-01-blog (e.g. <span style=\"color: #ff0000;\">acarnegie-01-blog<\/span>).<\/li>\n<li>Create a new text file in your editor and type in any text you want. Just a few sentences will do. For example, you might write a few sentences on what you hope to learn in this course. Save the file as <strong style=\"font-size: inherit;\">blog.txt<\/strong><span style=\"font-size: inherit;\"> in the blog folder you just created above.<\/span><\/li>\n<\/ol><p>Your folder structure should look like this now:<\/p>\n<hr><p>15-104<\/p>\n<p style=\"padding-left: 40px;\">lab-01<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-assignment<\/p>\n<p style=\"padding-left: 120px;\">index.html<\/p>\n<p style=\"padding-left: 120px;\">sketch.js<\/p>\n<p style=\"padding-left: 80px;\"><strong>acarnegie-01-blog<\/strong><\/p>\n<p style=\"padding-left: 120px;\"><strong>blog.txt<\/strong><\/p>\n<p style=\"padding-left: 40px;\">handin-01<\/p>\n<hr><h5 class=\"\">Creating a &ldquo;open-ended&rdquo; project.<\/h5>\n<ol><li class=\"\">Download another copy of template-p5only.zip and unzip it. Rename the folder to andrewID-01-project (e.g. <strong><span style=\"color: #ff0000;\">acarnegie-01-project<\/span><\/strong>) and move it into the <strong>lab-01<\/strong> folder.<\/li>\n<li class=\"\">Use your editor to edit the <strong>sketch.js<\/strong> file inside this new folder and put in the same code as before, but experiment with some of the data values, or arguments, to the functions.<\/li>\n<li class=\"\">Save the <strong>sketch.js<\/strong> file and double-click the corresponding <strong>index.html<\/strong> file to see what happens with your revised program.<\/li>\n<\/ol><p>Your folder structure should look like this now:<\/p>\n<hr><p>15-104<\/p>\n<p style=\"padding-left: 40px;\">lab-01<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-assignment<\/p>\n<p style=\"padding-left: 120px;\">index.html<\/p>\n<p style=\"padding-left: 120px;\">sketch.js<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-blog<\/p>\n<p style=\"padding-left: 120px;\">blog.txt<\/p>\n<p style=\"padding-left: 80px;\"><strong>acarnegie-01-project<\/strong><\/p>\n<p style=\"padding-left: 120px;\"><strong>index.html<\/strong><\/p>\n<p style=\"padding-left: 120px;\"><strong>sketch.js<\/strong><\/p>\n<p style=\"padding-left: 40px;\">handin-01<\/p>\n<hr><h5>Compress your lab-01 folder into a zip file.<\/h5>\n<ol><li>IMPORTANT: Go to the lab-01 folder and right click and select the option to either compress or zip the contents of the folder.<\/li>\n<\/ol><p>You should see a lab-01.zip file appear along with the two folders in the 15-104 folder:<\/p>\n<hr><p>15-104<\/p>\n<p style=\"padding-left: 40px;\">lab-01<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-assignment<\/p>\n<p style=\"padding-left: 120px;\">index.html<\/p>\n<p style=\"padding-left: 120px;\">sketch.js<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-blog<\/p>\n<p style=\"padding-left: 120px;\">blog.txt<\/p>\n<p style=\"padding-left: 80px;\">acarnegie-01-project<\/p>\n<p style=\"padding-left: 120px;\">index.html<\/p>\n<p style=\"padding-left: 120px;\">sketch.js<\/p>\n<p style=\"padding-left: 40px;\"><strong>lab-01.zip<\/strong><\/p>\n<p style=\"padding-left: 40px;\">handin-01<\/p>\n<hr><h5>Hand in the zip file to Autolab.<\/h5>\n<ol><li>Go to autolab.andrew.cmu.edu and log in.<\/li>\n<li>You should see 15-104 as your course. Click on that course.<\/li>\n<li>Select the Lab 1 assessment and drag the lab-01.zip file into designated drop off area. Click the checkbox that indicates you are abiding by the Academic Integrity policy for the course.<\/li>\n<li>Click SUBMIT to upload your file to us.&nbsp;<\/li>\n<\/ol><p>NOTE: Our TAs will be checking your submission tonight to see if you did things correctly, so check your email to see if you had any problems. If you did, you will be able to resubmit tomorrow on Autolab (the system will still accept submissions).&nbsp;<\/p>\n<h5>You&rsquo;re ready for Deliverable Set 1!<\/h5>\n<p>For the first week, you will submit your technical assignment, your blog essay without images and your open-ended project only in Autolab. Next week, we will expand our toolset by showing you how to post the blog and open-ended project on the course website in addition to submitting to Autolab as you&rsquo;ve learned today.<\/p>\n<p><\/p>\n\n\n<p><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This lab is set up so you can learn how to build up a full deliverable that you can submit for credit in this course. As you work on these steps with guidance from your teaching assistant, you should look toward your neighbor to see if they need help (or ask if you need &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/lab-week-01\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Lab Week 1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":535,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/pages\/1300"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/users\/535"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=1300"}],"version-history":[{"count":22,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/pages\/1300\/revisions"}],"predecessor-version":[{"id":69633,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/pages\/1300\/revisions\/69633"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}