User Tools

Site Tools


haas:spring2020:cprog:projects:cci0

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2020:cprog:projects:cci0 [2020/01/19 14:31] – [Mailing List] wedgehaas:spring2020:cprog:projects:cci0 [2020/01/19 14:45] (current) – [Personal/Per-User Lab46 Mercurial Repository] wedge
Line 61: Line 61:
 </file> </file>
 ====Class Chat (IRC)==== ====Class Chat (IRC)====
-Using the [[/haas/fall2018/common/class_chat|tutorial]], set up screen session and join the **#csci** channel on irc. This has proven useful for more interactive (debugging!) conversations.+Run the "chat" script at lab46 prompt to get established in the class chat.
  
-Additionally, other Computer Science students should be populating this channel, so it will serve as a great medium to ask for additional help.+You will likely be joining multiple channels. Pay attention to the blue status bar at the bottom.
  
 +To switch between channels:
 +
 +  * press 'alt+NUMBER'
 +  * you can also use 'ctrl+p' for the prior one, and 'ctrl-n' for the next one
 +
 +To detach from the class chat, type: ctrl+a d
 +
 +(press and hold control when you tap 'a'; release both keys and press 'd').
 ====Lab46 Shell==== ====Lab46 Shell====
 For many of you, this will be your first experience in the LAIR and/or logging onto Lab46. For many of you, this will be your first experience in the LAIR and/or logging onto Lab46.
Line 73: Line 81:
  
 ====Personal/Per-User Lab46 Mercurial Repository==== ====Personal/Per-User Lab46 Mercurial Repository====
 +**__NOTE:__** If you have already done this in a prior semester, you do NOT need to do it again.
  
-To both aid you and help you develop better development skills, I'd like for you to make regular commits and pushes to your [[/haas/fall2018/common/repo|Lab46 mercurial repository]].+To both aid you and help you develop better development skills, I'd like for you to make regular commits and pushes to your Lab46 mercurial repository.
  
 This way, you can have a regular snapshot of your work as you go along, plus have the ability to grab an older copy should something go wrong. This way, you can have a regular snapshot of your work as you go along, plus have the ability to grab an older copy should something go wrong.
  
-Like the Journal, I will be looking for a minimal amount of repository-related activity PER WEEK (for example, I will be looking for AT LEAST 1 commit in relation to your program for week 1). Note that for participation, a different quantity of commits are being looked for.+Like the Journal, I will be looking for a minimal amount of repository-related activity PER WEEK.
  
 +To set up your repository, run the "fixrepo" script:
 +
 +<cli>
 +lab46:~$ fixrepo
 +</cli>
 +
 +For basic repository operation, when you make new files you'd like to track, or see the status of any tracked files that have changed:
 +
 +<cli>
 +lab46:~$ cd src
 +lab46:~/src$ hg status
 +A .hgignore
 +lab46:~/src$ 
 +</cli>
 +
 +Once cloned (to your ~/src directory), you will be able to add, commit, and push changes made:
 +
 +<cli>
 +lab46:~/src$ hg add
 +lab46:~/src$ hg commit -m "brief message describing the changes"
 +lab46:~/src$ hg push
 +</cli>
 +
 +On the push, you will be prompted to provide your lab46 password.
 +
 +And that's it! Repeat this process (NOT the 'fixrepo'; only do that once) for any changes you make to your repository.
 ====Program to Implement==== ====Program to Implement====
 As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World** As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World**
Line 101: Line 136:
  
 Your task will be to transcribe this code (sans line numbers), into a source file (call it **hello.c** for simplicity), within some subdirectory of your lab46 account (**~/src/cprog/cci0/** may be a good choice). Your task will be to transcribe this code (sans line numbers), into a source file (call it **hello.c** for simplicity), within some subdirectory of your lab46 account (**~/src/cprog/cci0/** may be a good choice).
 +
 +<cli>
 +lab46:~$ mkdir src/cprog/cci0
 +lab46:~$ cd src/cprog/cci0
 +lab46:~/src/cprog/cci0$ 
 +</cli>
 +
 +You may want to use the **nano** text editor for this:
 +
 +<cli>
 +lab46:~/src/cprog/cci0$ nano hello.c
 +</cli>
 +
 +The **nano** text editor is a simple editor that provides basic functionality (commands listed at the bottom of the screen. You press the CONTROL key in combination with whatever letter invokes the desired functionality).
 +
 +To save the file: CTRL+o
 +
 +To save and exit (or exit if there are no changes made): CTRL+x
 +
 +Note that if there are any changes, you will be prompted whether or not you'd like to save them (the changes are in memory (aka the buffer), and nano will prompt if you'd like to save the modified buffer). You will then be prompted for the filename (filling in the current filename, if there is one). Just press enter to accept these changes.
  
 Verify you typed in everything correctly by compiling it; you want no warnings or errors: Verify you typed in everything correctly by compiling it; you want no warnings or errors:
Line 166: Line 221:
  
 <code> <code>
-39:cci0:final tally of results (39/39+13:cci0:final tally of results (13/13
-*:cci0:customized journal title [4/4] +*:cci0:customized journal (title and intro[1/1]
-*:cci0:customized journal intro [4/4] +
-*:cci0:subscribed to class mailing list [4/4]+
 *:cci0:joined class irc chat [1/1] *:cci0:joined class irc chat [1/1]
-*:cci0:submitted info.text file [1/1+*:cci0:submitted proper info.text file [1/1]
-*:cci0:provided requested information in info.text [4/4]+
 *:cci0:cloned lab46 mercurial repository into ~/src [1/1] *:cci0:cloned lab46 mercurial repository into ~/src [1/1]
-*:cci0:committed and pushed populated .hgignore file [3/3] 
-*:cci0:configured hgrc file [3/3] 
 *:cci0:submitted file called hello.c [1/1] *:cci0:submitted file called hello.c [1/1]
-*:cci0:committed and pushed hello.c to repository [2/2]+*:cci0:committed and pushed hello.c to repository [1/1]
 *:cci0:adequate and consistent indentation in hello.c [1/1] *:cci0:adequate and consistent indentation in hello.c [1/1]
 *:cci0:sufficient comments in hello.c [1/1] *:cci0:sufficient comments in hello.c [1/1]
-*:cci0:executable runs without issue [3/3+*:cci0:executable runs without issue [1/1
-*:cci0:output conforms to project specifications [3/3]+*:cci0:output conforms to project specifications [1/1]
 *:cci0:adequate modifications in hello.c [1/1] *:cci0:adequate modifications in hello.c [1/1]
 *:cci0:no compiler warnings for hello.c [1/1] *:cci0:no compiler warnings for hello.c [1/1]
haas/spring2020/cprog/projects/cci0.1579444318.txt.gz · Last modified: 2020/01/19 14:31 by wedge