User Tools

Site Tools


haas:fall2020:cprog:projects:cos0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
haas:fall2020:cprog:projects:cos0 [2020/03/05 11:48] – external edit 127.0.0.1haas:fall2020:cprog:projects:cos0 [2020/10/19 20:13] – [How to view your image] wedge
Line 180: Line 180:
 </code> </code>
  
-=====How to view your image===== 
-When you have a functioning project and want to view the images generated, you need to make sure they are deployed into your **public_html/** directory. 
- 
-To view your image in a web browser, simply point it at the following URL: 
- 
-  * <nowiki>https://lab46.g7n.org/~USERNAME/IMAGE.png</nowiki> 
- 
-... where "USERNAME" is your lab46 username (in lowercase), and "IMAGE" is the name of your png file (likely also in lowercase, such as 'cos0'). 
- 
-Note that the tilde just prior to your username in the URL is critical and necessary. 
  
 =====Grabit Integration===== =====Grabit Integration=====
Line 203: Line 193:
 make: Leaving directory '/var/public/SEMESTER/cprog/cos0' make: Leaving directory '/var/public/SEMESTER/cprog/cos0'
 lab46:~/src/cprog$ cd cos0 lab46:~/src/cprog$ cd cos0
-lab46:~/src/cprog/pos0$ ls+lab46:~/src/cprog/cos0$ ls
 Makefile  cos0.c Makefile  cos0.c
-lab46:~/src/cprog/pos0+lab46:~/src/cprog/cos0
 </cli> </cli>
  
Line 218: Line 208:
 NOTE: You do NOT want to do this on a populated **cos0** project directory-- it will overwrite files. Only do this on an empty directory. NOTE: You do NOT want to do this on a populated **cos0** project directory-- it will overwrite files. Only do this on an empty directory.
  
 +=====How to view the picture=====
 +Depending on your computing setup, choose the most practical means of viewing your program's image output:
 +
 +====Raspberry Pi desktop====
 +You've got a monitor and keyboard hooked up to your pi that you are using (preferred method for class).
 +
 +Open a file browser, web browser, or image viewer and navigate to/open up your **cos0.png** image in your **~/src/desig/cos0/** directory.
 +
 +Rinse and repeat as you go through revisions.
 +
 +====Raspberry Pi command-line via SSH/MOSH====
 +You don't have a monitor, so you are logging into your pi remotely (doable, and good intra-system practice)
 +
 +We start by running a successfully-compiled **cos0**:
 +
 +<cli>
 +yourpi:~/src/desig/cos0$ ./cos0
 +</cli>
 +
 +... which will produce an image (**cos0.png**); You want to put this in your web space (with the proper permissions set), so you can view it in a web browser:
 +
 +<cli>
 +yourpi:~/src/desig/cos0$ scp lob0.png yourusername@lab46.g7n.org:public_html/
 +</cli>
 +
 +Note that you will be prompted for your lab46 password.
 +
 +Then over on lab46, run this:
 +
 +<cli>
 +lab46:~$ chmod 0644 ~/public_html/cos0.png
 +</cli>
 +
 +Then, point a web browser at the following URL:
 +
 +  * https://lab46.g7n.org/~yourusername/con0.png
 +
 +NOTE: sometimes the web browser caches previous results, you may have to refresh a few times on revisions to get changes to manifest.
 =====Submission===== =====Submission=====
 To successfully complete this project, the following criteria must be met: To successfully complete this project, the following criteria must be met:
Line 246: Line 274:
  
 <code> <code>
-78:cos0:final tally of results (78/78) +91:cos0:final tally of results (91/91)
-*:cos0:proper error checking and status reporting performed [13/13] +
-*:cos0:correct variable types and name lengths used [13/13] +
-*:cos0:proper output formatting per specifications [13/13] +
-*:cos0:runtime tests of submitted program succeed [13/13]+
 *:cos0:no negative compiler messages for program [13/13] *:cos0:no negative compiler messages for program [13/13]
-*:cos0:code is pushed to lab46 repository [13/13]+*:cos0:post generated image to #desig [13/13]  
 +*:cos0:grabit on the code on lab46 by Sunday before deadline [13/13] 
 +*:cos0:cos0.c code adequately modified per project requirements [39/39] 
 +*:cos0:updated code is pushed to lab46 repository [13/13]
 </code> </code>
  
haas/fall2020/cprog/projects/cos0.txt · Last modified: 2020/10/19 20:14 by wedge