<p>I still can't figure out how I can turn in my homework online, although I have downloaded putty and connected to Cory Hall. After logging in, I don't know what I can do. Can anyone explain what I should do to turn in my homework? Thank you.</p>
<p>Hi, I’m actually a reader for cs61a and the PAPER turn ins for this week are more important. But anyways, the most important question is this: did you do your homework on your own computer or on the computer science computers?</p>
<p>Also, did you go to lab? I think they should’ve told you how to turn in homework electronically. If they didn’t/you didn’t go because of a valid reason I’m sure, I could probably help you still.</p>
<p>Are we graded if we turn in an online version at all?</p>
<p>Do we use OUR account, or the class account “cs61a-XX”?</p>
<p>Why is a matter of where we did our homework important? I did my homework on my own computer, but I can connect to my cs61a-XX account via putty. I don’t know what to do from there.</p>
<p>Ditto Castel. Why are paper turn-ins important this week? </p>
<p>The lab didn’t cover anything regarding homework. There was a brief mention that we needed SSH to connect to servers, but that was it. </p>
<p>Thanks! I’m really glad a reader is on this forum to help us out :D</p>
<p>Well, you won’t be graded because the paper submission is how we establish who is in our section and who isn’t. If you just turn it in electronically, we won’t grade you. Why isn’t this done automatically? So that we can make the above excuse to get you to turn in stuff on paper so that when you turn in projects (which must also be on paper) you’ll know where the turn in box is ;)</p>
<p>Also, connect to the cs servers (any one of them is fine but some are faster than others) with your cs61a-XX accounts.</p>
<p>And, where you did your homework is important because to turn in your homework, the homework file MUST BE ON THE SERVERS. So you have to somehow transfer your file TO your class account. If you use Linux (most likely not) or Max OS X (more likely) this is pretty straightfoward. However, you two seem to be on windows so what you have to do is download PSFTP from [PuTTY</a> Download Page](<a href=“http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]PuTTY”>Download PuTTY: latest release (0.83)) . Now, I don’t use windows so I have no idea how this works, but if it’s anything like the Unix equivalent, you can find more info on it online (anything I tell you here will just be second hand internet explanations anyway). EDIT: [PSFTP</a> tutorial](<a href=“http://www.math.tamu.edu/~mpilant/math696/psftp.html]PSFTP”>http://www.math.tamu.edu/~mpilant/math696/psftp.html) might help. </p>
<p>So now that you’ve managed to get your homework file loaded, type in the command:</p>
<p>mkdir hw1</p>
<p>This will create a directory named hw1 inside your class account. You can type “ls” to see it. </p>
<p>Now type in </p>
<p>cd hw1</p>
<p>This changes your directory to the hw1 directory. This is where your file should go. I’m assuming you didn’t save your homework file here. So now type in</p>
<p>cd ..</p>
<p>To go up one level. Your homework file should be here. Now type in:</p>
<p>mv THENAMEOFYOURHOMEWORKFILE hw1</p>
<p>This will move your homework file into the directory hw1.</p>
<p>Now type in</p>
<p>cd hw1</p>
<p>again. Then type in</p>
<p>submit hw1</p>
<p>The reason you have to create a directory is that the submit command will try and turn in EVERYTHING in the current directory (this is mostly a feature useful for later CS classes and your projects).</p>
<p>If you want to check your submission, type in:</p>
<p>glookup -t</p>
<p>EDIT: I strongly recommend you guys install cygwin. You can ask your TAs about it ;)</p>
<p>The problem with a paper turn-in is that we need a cardkey to get to the second floor…I tried going there yesterday without any luck. </p>
<p>Can we use WinSCP instead of PSFTP?</p>
<p>Edit: For those of you who care, WinSCP works just fine. Also, what format is acceptable for homework? Would it make a difference whether we use a .txt file or a .docx file to answer questions?</p>
<p>I understand your card key access probably isn’t turned on yet, so you COULD turn it in on tuesday anytime sane. I know I probably won’t be looking inside the bin till around 3ish. Really, the electronic submission is what determines whether or not you’re late.</p>
<p>EDIT: Your file can be anything as long as it’s an ASCII text file
So basically, save it as a txt. Also, I recommend you use notepad or some sort of IDE. Ideally, you should use emacs or vim…</p>
<p>EDIT2: Yes, it does matter if you save it as a doc. You see, text files are aligned so that each letter takes up the same amount of space, whereas with Word and other word processing software, an “E” takes more space than an “I”. Essentially, you want collumns to line up and the best way to gaurantee that is by saving it as a plain-text file.</p>
<p>Is it ok if I just typed everything inside a .scm file using emacs? For questions involving explanations, I just commented it out and typed it up.</p>
<p>That’s actually the BEST way to do it in fact ;)</p>
<p>@mofmog: You are the savior of all worried CS61A freshmen. <3</p>
<p>Yeah, seriously. Thanks a ton :)</p>
<p>The homework is so bloody difficult! I’ve done C++ before; just had two lectures of LISP and I’m expected to solve all these problems!? :S</p>
<p>Actually, don’t think of it like C++. C++ and Lisp are on different ends of the programming paradigm spectrum.</p>
<p>Are you having trouble with recursion?</p>
<p>Basically, for a fair few of the problems, you need to scan all words from a sentence. I know how to do that in C++, but there are no loops in LISP. So.. :S</p>
<p>There ARE loops, but they want you to use recursion. </p>
<p>So, give me a recursive procedure that takes a sentence, say '(1 2 3 4 5) and gives the sum of all the numbers in the sentence. Try that and everything else should be easier. Remember, you want to take a part from the beginning of the sentence, do something to it, and then recursively call your procedure again with a subset of the sentence.</p>
<p>Problem #3 sucks. >:[</p>
<p>It’s not so bad :/</p>
<p>It’s the worst, by far.</p>
<h1>1 sucks. #3 isn’t so bad.</h1>
<p>Problem 3 is alright, I just made a bunch of mini procedures to handle all the cases. It’s not the most elegant way but it works :-D</p>