User Tools

Site Tools


haas:fall2020:common:helpances:startingpctx

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:fall2020:common:helpances:startingpctx [2020/08/13 12:31] wedgehaas:fall2020:common:helpances:startingpctx [2020/08/19 22:25] (current) – [A start: the question asked] wedge
Line 1: Line 1:
-An insightful conversation (featuring "H" and "K", two pilgrims on their journey towards enlightenment) on the way to pctX-starting clarity...+======A start: the question asked====== 
 +An insightful conversation (featuring "H" and "K", two unix pilgrims on their journey towards enlightenment) on the way to pctX-starting clarity...
  
 +NOTE: because this was done in the context of the "unix" class, if you are doing this for a //different// class, be sure to substitute in the appropriate course designation (cprog, c4eng, data, discrete, etc.)
 +=====from the depths of uncertainty, a vergence of intent manifests (the question)=====
 H: I’m going to be honest I’m a bit confused with pct1 H: I’m going to be honest I’m a bit confused with pct1
  
Line 29: Line 32:
 H: check H: check
  
 +=====the public directory, locating it, and going there=====
 wedge: it then has you navigating into the UNIX public directory. wedge: it then has you navigating into the UNIX public directory.
  
Line 62: Line 66:
 wedge: yes? wedge: yes?
  
 +=====a look at the prompt as a guide on our journey=====
 H: It hasn’t changed my prompt, mine is just showing lab46: /var/public/fall2020/unix$ H: It hasn’t changed my prompt, mine is just showing lab46: /var/public/fall2020/unix$
  
Line 67: Line 72:
  
 wedge: Notice how it put the path you just cd'ed to INTO your prompt wedge: Notice how it put the path you just cd'ed to INTO your prompt
-@KalebJ12 try that exact same command again + 
-it should work now +wedge: your prompt always attempts to tell you 2 important pieces of information: 
-KalebJ12Yesterday at 4:18 PM + 
-It did lol +wedge: 1. the system you are on (lab46 vs. your pi) 
-HannahH02Yesterday at 4:19 PM + 
-Oh oh oh, blonde moment when you sent that screenshot I thought it was supposed to say directory lol +wedge: 2. WHERE you are 
-wedgeYesterday at 4:19 PM + 
-capital "UNIX" didn't exist (just the lowercase "unix"), so I fixed that +wedge: if you are in your home directory, instead of seeing "lab46:/home/username$" it uses the '~' as a shortcut to represent home directory 
-KalebJ12Yesterday at 4:19 PM + 
-Ahh +wedge: if you were to "cd" into your "public_html" directory, it would show: 
-wedgeYesterday at 4:19 PM + 
-your prompt always attempts to tell you 2 important pieces of information: +<cli> 
-1. the system you are on (lab46 vs. your pi) +lab46:~/public_html$  
-2. WHERE you are +</cli> 
-if you are in your home directory, instead of seeing "lab46:/home/username$" it uses the '~' as a shortcut to represent home directory + 
-if you were to "cd" into your "public_html" directory, it would show: +wedge: ... because that is INSIDE your home directory 
-lab46:~/public_html$ + 
-because that is INSIDE your home directory +wedge: where as the public directory: is external to your home 
-where as the public directory: is external to your home + 
-so, it shows the ENTIRE path, what is known as an "absolute path" +wedge: so, it shows the ENTIRE path, what is known as an "absolute path" 
-now: if you are there, IN the UNIX public directory, let us take a look around. + 
-How do we see what is there, in the public directory? +=====at the waypoint, now glancing further toward the intended destination===== 
-KalebJ12Yesterday at 4:23 PM +wedgenow, if you are there, IN the UNIX public directory, let us take a look around. 
-Hg status? + 
-wedgeYesterday at 4:23 PM +wedge: How do we see what is there, in the public directory? 
-nope.. that's for your repository. We're nowhere near it + 
-we are in a directory. Directories contain files. +Khg status? 
-How do we see the files contained within a directory? (again, Mages book stuff) + 
-KalebJ12Yesterday at 4:24 PM +wedge: that's for your repository. We're nowhere near it 
-Find+ 
-HannahH02Yesterday at 4:24 PM +wedge: we are in a directory. Directories contain files. 
-Less and more command? + 
-wedgeYesterday at 4:24 PM +wedge: How do we see the files contained within a directory? (again, Mages book stuff) 
-nope (well, yes, but by no means the most convenient nor direct way) + 
-less/more are used commonly WITH other commands, or to view inside text files +Kfind
-we have a directory here, which is NOT a text file (although, it may contain text files) + 
-other names for the action may include "listing" the files +Hless and more command? 
-KalebJ12Yesterday at 4:26 PM + 
-Ls+wedge: those CAN be used, but are by no means the most convenient nor direct way to do so 
-HannahH02Yesterday at 4:26 PM + 
-Ohh lad +wedge: less/more are used commonly WITH other commands, or to view inside text files 
-Auto correct lol + 
-wedgeYesterday at 4:26 PM +wedge: we have a directory here, which is NOT a text file (although, it may contain text files) 
-yes, only all lowercase + 
-KalebJ12Yesterday at 4:26 PM +wedge: other names for the action may include "listing" the files 
-ls -a? + 
-wedgeYesterday at 4:26 PM +K: ls
-what happens when you run "ls"? + 
-KalebJ12Yesterday at 4:27 PM +wedge: yes. 
-It shows both files + 
-wedgeYesterday at 4:27 PM +K: ls -a? 
-no need for '-a' in this setting, JUST "ls" + 
-HannahH02Yesterday at 4:27 PM +wedge: no need for '-a' in this setting, JUST "ls" 
-I see pct1 and pct2 + 
-KalebJ12Yesterday at 4:27 PM +wedgewhat happens when you run "ls"? 
-Pct1 and Pct2 + 
-wedgeYesterday at 4:27 PM +K: It shows some files 
-yes. Blue, correct? + 
-that means they are directories +H: I see files, including pct1 and pct2 
-HannahH02Yesterday at 4:27 PM + 
-Yes +wedge: yes. And they're blue, correct? 
-wedgeYesterday at 4:27 PM + 
-(again, case matters: pct1, pct2) +H: yes 
-hey, directories... you know something about dealing with directories... + 
-how would you go into the pct1 directory? +wedge: that means they are directories 
-HannahH02Yesterday at 4:28 PM + 
-ace +wedge: hey, directories... you know something about dealing with directories... 
-CD + 
-Autocorrect again +wedge: how would you go into the pct1 directory? 
-KalebJ12Yesterday at 4:28 PM + 
-cd /pct1 +Hcd 
-wedgeYesterday at 4:28 PM + 
-no / +=====a deeper dive on paths (absolute vs. relative)===== 
-the / means "from the base of the system" +K: cd /pct1 
-KalebJ12Yesterday at 4:28 PM + 
-Okay +wedge: no leading '/' needed here; the '/means "from the base of the system" 
-wedgeYesterday at 4:28 PM + 
-var is at the base of the system, so we prefix / to var +Kokay 
-when we are doing short hops like this (known as a relative path), we just specify the name + 
-your prompt should change (pct1 should append to the end) +wedge: var is at the base of the system, so we prefix '/to var 
-KalebJ12Yesterday at 4:29 PM + 
-I'm already learning a lot lol +wedge: when we are doing short hops like this (known as a relative path), we just specify the name 
-HannahH02Yesterday at 4:29 PM + 
-What was the path called with /, I know it starts with an a +wedge: your prompt should change (pct1 should append to the end) 
-wedgeYesterday at 4:29 PM + 
-:slight_smileall it took was asking question +K: I'm already learning a lot lol 
-absolute + 
-HannahH02Yesterday at 4:29 PM +wedgeall it took was asking a question 
-Ah yes + 
-KalebJ12Yesterday at 4:30 PM +H: What was the path called with /, I know it starts with an 'a' 
-Woah so if I ls I see everyones account and the files + 
-wedgeYesterday at 4:30 PM +wedgean "absolute" path 
-absolute paths start with /, relative paths do not + 
-yep +HAh yes 
-any files of particular interest? + 
-KalebJ12Yesterday at 4:30 PM +wedgean "absolute" path is like your street address. A universal address for place (123 fourth street, city, state, zip). 
-Manifest + 
-HannahH02Yesterday at 4:30 PM +wedgewhereas a "relative" path refers to your current position (the bathroom? Down the hall, 2nd door on the left). 
-I’m only half way through the mage book and there is so much info in it lol + 
-wedgeYesterday at 4:31 PM +wedgean "absolute" path works from ANYWHERE on the system. A "relative" path only works from a certain location. 
-:slight_smile: hey, you're already well on your way + 
-considering the semester hasn't even started yet +wedge: a common clue is that absolute paths will start with '/', whereas relative paths do not. 
-EVERYONE will need to go through what you are experiencing now... making those essential connections + 
-you stand to have a much easier time, because we have so much time +K: Woah so if I ls I see everyones account and the files 
-KalebJ12Yesterday at 4:32 PM + 
-So say I wanted to be in the same place am rn on my pi is that possible? +wedge: yep 
-wedgeYesterday at 4:32 PM + 
-that directory would have to exist on your pi (it does not) +wedge: any files of particular interest? 
-HannahH02Yesterday at 4:32 PM + 
-Now I see puzzle, this is making a lot more sense +H: I’m only half way through the mage book and there is so much info in it 
-wedgeYesterday at 4:32 PM + 
-(but don't worry, when we're done you should have your puzzle on your pi) +wedge: hey, you're already well on your way 
-KalebJ12Yesterday at 4:33 PM + 
-only see manifest +wedge: considering the semester hasn't even started yet 
-HannahH02Yesterday at 4:33 PM + 
-You’ll need to go into your name +wedge: EVERYONE will need to go through what you are experiencing now... making those essential connections 
-wedgeYesterday at 4:33 PM + 
-sometimes it just takes a question to be asked :slight_smile: +wedge: you stand to have a much easier time, because we have so much time (a week out from the due date) 
-yep + 
-KalebJ12Yesterday at 4:33 PM +K: So say I wanted to be in the same place am right now on my piis that possible? 
-Got it + 
-wedgeYesterday at 4:33 PM +wedge: that directory (and the contents that drew you to it) would have to exist on your pi (by default, it does not) 
-also: have you all set up your repository on lab46 (and your pi)? + 
-KalebJ12Yesterday at 4:33 PM +wedge: but don't worry, when we're done you should have //your// puzzle on //your// pi 
-Yes + 
-did that today +H: Now I see puzzle, this is making a lot more sense 
-I submitted ntr0 and I was going to help Hannah on her ntr0 + 
-HannahH02Yesterday at 4:34 PM +wedge: sometimes it just takes a question to be asked 
-I havent done it on my pi yet but I just put it together so I will later today + 
-wedgeYesterday at 4:34 PM +K: I only see "MANIFEST" 
-I only ask so as to better calibrate my answer... + 
-okay, so yes to lab46 at least on both? +HYoull need to go into the directory named as your username 
-KalebJ12Yesterday at 4:34 PM + 
-Yes +wedgeyep 
-HannahH02Yesterday at 4:34 PM + 
-Yes +KGot it 
-wedgeYesterday at 4:34 PM + 
-good. ok +wedge: so you wander into your respective "username" directory. What is there? 
-so you wander into your respective "username" directory. What is there? + 
-KalebJ12Yesterday at 4:35 PM +Ka file called "puzzle" 
-On my pi? + 
-wedgeYesterday at 4:35 PM +Hwhen I run "ls" from within the "username" directory (under pct1), it outputs "puzzle" 
-on lab46 + 
-where we are now +wedge: yes, you should see a single (gray/white) file called 'puzzle' 
-KalebJ12Yesterday at 4:35 PM + 
-Puzzle +wedge: files that are coloured gray/white are "regular" files... which includes things like text files 
-HannahH02Yesterday at 4:35 PM + 
-Under ls is puzzle +wedge: how could we view this file, assuming it was a text file? (there are MANY ways) 
-wedgeYesterday at 4:35 PM + 
-yes, you should see a single (gray/white) file called 'puzzle' +wedgeand you both have mentioned things that could be made to accomplish this task 
-files that are coloured gray/white are "regular" files... which includes things like text files + 
-how could we view this file, assuming it was a text file? (there are MANY ways) +H: Do we use the more and less commands with this one? 
-HannahH02Yesterday at 4:37 PM + 
-Do we use the more and less commands with this one? +wedgeyes- "lessor "morecan do the job 
-wedgeYesterday at 4:37 PM + 
-and you both have mentioned possibilities +wedge: and so can a text editor, such as "nano" 
-yes: less or more can do the job + 
-so can nano +wedge: but, I'll give you one simpler 
-but + 
-I'll give you one simpler +wedge: the command known as "cat" 
-the command known ascat + 
-KalebJ12Yesterday at 4:37 PM +wedge: cat filename 
-I like nano + 
-wedgeYesterday at 4:37 PM +wedge: "cat" is like a straight up file viewer; it displays the contents to your screen and returns to the prompt (unlike nano or more/less, cat is NON-INTERACTIVE, meaning it just does its thing, without any further interaction from the user) 
-cat filename + 
-can is like a straight up file viewer +wedge: if you cat your 'puzzle' file, you should see the puzzle. Yes? 
-displays the contents to your screen and returns to the prompt (unlike nano or more/less, cat is NON-INTERACTIVE, meaning it just does its thing, without any further interaction from the user) + 
-if you cat your 'puzzle' file , you should see the puzzle. Yes? +H: Yes, so should we work on paper then just add it on nano? 
-HannahH02Yesterday at 4:39 PM + 
-Yes, so should we work on paper then just add it on nano? +wedge: yes, although, we're not quite done yet (going to add it to your repository) 
-wedgeYesterday at 4:40 PM + 
-yes +K: Mine seems like its solved 
-KalebJ12Yesterday at 4:40 PM + 
-Mine seems like its solved +wedge@K it isn't solved, you need to figure out the numeric identity of the letters 
-wedgeYesterday at 4:40 PM + 
-BUTI'll do one better +K: OHHHH okay 
-I'll now show you how to copy that puzzle file INTO your repository, into a pct1 directory of your own. + 
-@KalebJ12 it isn't solved, you need to figure out the numeric identity of the letters +=====Adding your puzzle into your lab46 repository===== 
-KalebJ12Yesterday at 4:41 PM + 
-OHHHH okay +wedge: I'll now show you how to copy that puzzle file INTO your repository, into a pct1 directory of your own. 
-wedgeYesterday at 4:41 PM + 
-ok: getting our puzzle into our repository +wedge: now, for this next step, you will need to have set up your repository on lab46: 
-KalebJ12Yesterday at 4:41 PM + 
-So do we make the directory on the pi with mkdir +KYes, did that today 
-wedgeYesterday at 4:42 PM + 
-it might be a good idea to set up a structure, so all are class data is organized +HI have done it on lab46 
-@KalebJ12 nope, we're going to make mercurial do it + 
-KalebJ12Yesterday at 4:42 PM +wedge: good. ok 
-Okay + 
-wedgeYesterday at 4:42 PM +wedgeok, getting our puzzle into our repository 
-but we ARE going to run mkdir on lab46:+ 
 +wedgefirst, it might be a good idea to set up a structure, so all are class data is organized 
 + 
 +K: So do we make the directory on the pi with mkdir 
 + 
 +wedge: @nope, we're going to make mercurial do it 
 + 
 +Kokay 
 + 
 +wedge: but we ARE going to run mkdir on lab46: 
 + 
 +wedge: run the following (from where-ever you currently are, on lab46): 
 + 
 +<cli>
 mkdir -p ~/src/unix/pct1 mkdir -p ~/src/unix/pct1
-^ type that +</cli> 
-can you then tell me, WHERE is that? + 
-KalebJ12Yesterday at 4:43 PM +wedge: can you then tell me, WHERE is that? 
-We should go back to lab46~$ first right? + 
-Or does it not matter +wedge: I mentioned the '~' symbol before. It means something to the computer, a shortcut we can use 
-wedgeYesterday at 4:43 PM + 
-nope +wedge: what is it? 
-doesn't matter + 
-but ONLY because I am giving it an absolute path +H: Nothing seemed to happen for me 
-I mentioned ~ before + 
-what is it? +wedge: correctmkdir did what was requested of it 
-HannahH02Yesterday at 4:44 PM + 
-Nothing happened for me +K: It made it but we arent in it so now we go into it 
-wedgeYesterday at 4:44 PM + 
-correctmkdir did what was requested of it +wedge: if you just get your prompt back, you were successful 
-KalebJ12Yesterday at 4:44 PM + 
-It made it but we arent in it so now we go into it +wedge: UNIX is "user friendly" like that... it doesn't go and say "SUCCESS! YOU DID THE THING. ARE YOU SURE?" 
-wedgeYesterday at 4:44 PM + 
-if you just get your prompt back, you were successful +wedge: it assumes you know what you are doing 
-UNIX is "user friendly" like that... it doesn't go and say "SUCCESS! YOU DID THE THING. ARE YOU SURE?" + 
-it assumes you know what you are doing +K: We have to copy the puzzle file to the new directory we just made 
-KalebJ12Yesterday at 4:45 PM + 
-We have to copy the puzzle file to the new directory we just made +wedge: we just made a new directory, INSIDE our home directory (~), under src (created when you set up your repo on lab46) 
-wedgeYesterday at 4:45 PM + 
-we just made a new directory, INSIDE our home directory (~), under src (created when you set up your repo on lab46) +wedge: actually it also created a "unix" subdirectory (if it didn't already exist), and inside that, "pct1" 
-actually created a "unix" subdirectory, and inside that, "pct1" + 
-we can now copy our puzzle file here, INTO that ~/src/unix/pct1 directory +wedge: we can now copy our puzzle file here, INTO that "~/src/unix/pct1directory 
-any ideas how we might do that? + 
-KalebJ12Yesterday at 4:46 PM +wedge: any ideas how we might do that? 
-cp file name + 
-HannahH02Yesterday at 4:46 PM +K: cp file name 
-Cp+ 
-Ah +H: cp
-wedgeYesterday at 4:46 PM + 
-cp source destination +wedgemore generically, cp "source" "destination" 
-here we are in the public directory... pct1... puzzle is here + 
-so 'puzzlewill be our source +wedge: here we are in the public directory... pct1... our "puzzle" file is here 
-KalebJ12Yesterday at 4:47 PM + 
-cp pct1 +wedge: so "puzzle" (in the current directory) will be our source 
-wedgeYesterday at 4:47 PM + 
-and the destination? +K: cp pct1 
-KalebJ12Yesterday at 4:47 PM + 
-Dang +wedge: and the destination? 
-cp pct1  /src/unix/pct1 + 
-wedgeYesterday at 4:48 PM +Kdang 
-carefulsrc is not at the base of the filesystem... it is in our home directory (~) + 
-HannahH02Yesterday at 4:48 PM +K: cp pct1  /src/unix/pct1 
-How do we get the puzzle in there though, do we use the name puzzle? + 
-wedgeYesterday at 4:48 PM +wedge: carefulsrc is not at the base of the filesystem... it is in our home directory (~) 
-cp puzzle ~/src/unix/pct1 + 
-HannahH02Yesterday at 4:48 PM +H: How do we get the puzzle in there though, do we use the name puzzle? 
-Gotcha + 
-KalebJ12Yesterday at 4:48 PM +wedge: cp puzzle ~/src/unix/pct1 
-I was so close dang + 
-wedgeYesterday at 4:48 PM +HOh, okay 
-yes: puzzle is the source + 
-~/src/unix/pct1 is the destination +K: I was so close dang 
-again: you should get your prompt back if you did it correctly + 
-yes? +wedge"puzzleis the source (what we want to copy) 
-KalebJ12Yesterday at 4:49 PM + 
-Yes +wedge: "~/src/unix/pct1is the destination (where we want to put that copy) 
-wedgeYesterday at 4:49 PM + 
-now: CHANGE DIRECTORY to that destination +wedgeagain, you should get your prompt back if you did it correctly 
-KalebJ12Yesterday at 4:49 PM + 
-Done +wedge: yes? 
-wedgeYesterday at 4:50 PM + 
-prompt should change to: lab46:~/src/unix/pct1$ +K: Yes 
-yes? + 
-HannahH02Yesterday at 4:50 PM +wedgenow, CHANGE DIRECTORY to that destination (that path) 
-Got it + 
-wedgeYesterday at 4:50 PM +Kdone 
-ok. an 'ls' should confirm our file is there + 
-HannahH02Yesterday at 4:50 PM +wedgeyour prompt should change to: 
-Yes + 
-KalebJ12Yesterday at 4:50 PM +<cli> 
-Yup +lab46:~/src/unix/pct1$  
-wedgeYesterday at 4:50 PM +</cli> 
-a 'cat' should confirm that the contents are still there + 
-KalebJ12Yesterday at 4:50 PM +wedge: yes? 
-Yes + 
-HannahH02Yesterday at 4:50 PM +H: Got it 
-Yes + 
-wedgeYesterday at 4:50 PM +wedge: ok. an 'ls' should confirm our file is there 
-but nowanything under ~/src/ is trackable by mercurial, in our repository + 
-so, go and ADD puzzle to your repository (that hg thing) +H: Yes 
-hg add puzzle + 
-it may say "added puzzle" or some such thing +K: Yup 
-yes? + 
-KalebJ12Yesterday at 4:52 PM +wedge: a 'cat' should confirm that the contents are still there 
-Mine didnt say anything but I did it again and said that its already there + 
-wedgeYesterday at 4:52 PM +Kyes 
-ok, good + 
-KalebJ12Yesterday at 4:52 PM +Hyes 
-So it worked + 
-wedgeYesterday at 4:52 PM +wedgeand now, as anything under ~/src/ is trackable by mercurial, in our repository 
-actuallyhg status + 
-it should also show 'puzzle', with a green capital A to the left of it +wedge: we go and ADD puzzle to your repository (that hg thing): 
-KalebJ12Yesterday at 4:53 PM + 
-A unix/pct/puzzle +<cli> 
-wedgeYesterday at 4:53 PM +lab46:~/src/unix/pct1$ hg add puzzle 
-hg status shows us the state of the current snapshot +</cli> 
-yes + 
-HannahH02Yesterday at 4:53 PM +K: So it worked
-Sweet got it + 
-wedgeYesterday at 4:53 PM +wedge: actually, run "hg status" 
-okay, now COMMIT it: + 
-hg commit -m "adding my pct1 puzzle" +wedge: it should also show 'puzzle', with a green capital A to the left of it 
-HannahH02Yesterday at 4:54 PM + 
-What does commiting it do? +K: A unix/pct/puzzle 
-wedgeYesterday at 4:54 PM + 
-takes a snapshot +wedge: "hg statusshows us the state of the current snapshot 
-KalebJ12Yesterday at 4:54 PM + 
-Like a log? Of what's happening +wedgeyes, that's it 
-wedgeYesterday at 4:54 PM + 
-the current state of all the files listed in 'hg status' +H: Sweet got it 
-like it saves the current instance of the file + 
-but yes, in log-like fashion +wedge: okay, now to COMMIT it (aka take a snapshot of it)
-KalebJ12Yesterday at 4:55 PM + 
-So should we hg push? +<cli> 
-wedgeYesterday at 4:55 PM +lab46:~/src/unix/pct1$ hg commit -m "adding my pct1 puzzle" 
-yes + 
-push sends the snapshot to the server +H: What does committing it do? 
-which for the purposes of getting it on the pi, definitely something we want + 
-so do that. +wedge: takes a snapshot 
-at this point, @HannahH02 since you haven't set it up on your pi yet, will be something to check out later + 
-but basicallyonce you have added, committed, and pushed it +K: Like a log? Of what's happening 
-HannahH02Yesterday at 4:56 PM + 
-In the future do we work more on the pi or lab 46? +wedge: the current state of all the files listed in 'hg status' 
-wedgeYesterday at 4:57 PM + 
-you can switch over to your pi, go into your ~/src directory on your pi +wedge: like it saves the current instance of the file 
-(the intent is, yes, that you do the bulk of the work on the pi) + 
-mainly getting files from and putting finished files to submit back on lab46 +wedgelike a sort? Sort of. There is a log. 
-@KalebJ12 in your ~/src on your pi? + 
-KalebJ12Yesterday at 4:57 PM +K: So should we hg push? 
-Yed + 
-Yes +wedge: yes, after you've committed, you want to push the snapshot to the server. "hg push" does that. 
-wedgeYesterday at 4:57 PM + 
-hg pull +wedge: which for the purposes of getting it on the pi, definitely something we want 
-then: hg update + 
-then, do an 'ls+wedge: so do that. 
-KalebJ12Yesterday at 4:58 PM + 
-Unix shows up +=====Retrieving your puzzle on your pi===== 
-wedgeYesterday at 4:58 PM + 
-go in there +wedge: nowwe switch over to the pi. If you haven't set up your lab46 respository yet on your pi you will need to do that first. 
-run 'ls' + 
-KalebJ12Yesterday at 4:58 PM +wedgebut in general, for this to work, you will have needed to have added, committed, and pushed it (on lab46) 
-ntr0 and pct1 + 
-wedgeYesterday at 4:59 PM +H: In the future do we work more on the pi or lab 46? 
-go into pct1 + 
-run 'ls' +wedge: the intent is, yes, that you do the bulk of the work on the pi 
-KalebJ12Yesterday at 4:59 PM + 
-Hey puzzle is there +wedge: as for lab46: mainly getting files from and putting finished files to submit back on lab46 
-wedgeYesterday at 4:59 PM + 
-:slight_smile: +wedge: you can switch over to your pi, go into your ~/src directory on your pi 
-there you go + 
-now, to get things from your pi back to lab46-- add/commit/push on the pi +K: in your ~/src on your pi? 
-then on lab46: pull, update + 
-back and forth, whichever way you need at the moment +wedge: Yes 
-KalebJ12Yesterday at 4:59 PM + 
-Yeah I had to do that with ntr0 +wedge: now, run "hg pull" 
-wedgeYesterday at 5:02 PM + 
-so there you go: I hope that helped clarify things somewhat :slight_smile: +wedgefollowed by, "hg update" 
-HannahH02Yesterday at 5:02 PM + 
-Thank you for all your help! +wedge: as a bonusif you'd like to see the log, you can now do "hg log" (if it doesn't let you out, 'q' to get out) 
-wedgeYesterday at 5:02 PM + 
-no problem! Thank you for asking questions +wedgethen, when back at a prompt, do an "ls" 
-KalebJ12Yesterday at 5:03 PM + 
-So 9 = K is the highest number? +K: a directory called "unix" shows up, that wasn't there before! 
-wedgeYesterday at 5:04 PM + 
-maybe +wedge: go in there, and run "ls" 
-um... you don't have a K + 
-KalebJ12Yesterday at 5:05 PM +K: directories! "ntr0and "pct1" 
-I was looking at the chart on the lab46 website + 
-wedgeYesterday at 5:06 PM +wedge: go into the "pct1" directory, and run "ls" 
-oh, the puzzle I walk through on the project page? + 
-KalebJ12Yesterday at 5:06 PM +K: Hey, my "puzzle" file is there 
-Yes + 
-Do we ever go above the letter k? +wedge: there you go 
-wedgeYesterday at 5:06 PM + 
-yes, in that puzzle, K is 9 +=====The reverse, sending from pi to lab46===== 
-Yes: when we work on a puzzle in a base higher than 10 + 
-KalebJ12Yesterday at 5:07 PM +wedge: now, to get things from your pi back to lab46-- do any add/commit/push commands on the pi 
-Oh no lol + 
-wedgeYesterday at 5:07 PM +wedge: then, back on lab46 (in ~/src), do your pull, update in hg (in that order: pull, followed by update) 
-for the foreseeable future, we'll be working in base 10 + 
-but we will dabble in other bases... 8, 9, 11 +wedge: back and forth, whichever way you need at the moment 
-in 8, there is no 9 (or 8!)... we go from 0-7 + 
-but, nothing to fret about at present... just focus on base 10 :slight_smile: +K: Yeah I had to do that with ntr0 
-KalebJ12Yesterday at 5:08 PM + 
-Okay +wedge: so there you go: I hope that helped clarify things somewhat 
-wedgeYesterday at 5:11 PM + 
-by the way: the point of pctX is to get you to strengthen your abilities to describe a process (and think critically)... since we'll eventually be writing shell scripts, it helps if you've got some experience tending to details from start to finish of a particular task +H: Thank you for all your help! 
-because if you cannot specifically describe from start to finish a process you are personally doing by hand, you're going to have a heck of a time instructing the computer to do something. + 
-plus, they're super fun, and you'll eventually want to do them all the time! +wedge: no problem! Thank you for asking questions
-KalebJ12Yesterday at 5:16 PM +
-So with the puzzle if we submit the wrong answers do we get points off lol +
-wedgeYesterday at 5:16 PM +
-yes +
-KalebJ12Yesterday at 7:46 PM +
-On the pct1 our answer do we submit it as numbers or letters? +
-wedgeYesterday at 8:08 PM +
-You submit the letters in order from least to greatest +
-There is an example on the projects page +
-KalebJ12Yesterday at 8:10 PM +
-No for the verify part where it shows the example of there being a remainder +
-wedgeYesterday at 8:11 PM +
-Oh, you don’t have the remainder. So you do a different verification (there is also an example on the project page) +
-wedgeYesterday at 8:22 PM +
-Basically switching out to numbers, solving, then switching back to letters to see if they match. +
-The example is probably more helpful in showing what I mean+
  
haas/fall2020/common/helpances/startingpctx.1597321860.txt.gz · Last modified: 2020/08/13 12:31 by wedge