Here is our FAQ, updated daily, most recent items at the top. --| 7 |------------------------------------------------------------ From Jeffrey Whitlow Date Jan 20 Subject error on handin > I'm having a slight problem with the handin script to create the >pdf. I've tried running it on my work machine, laptop and through >the csee shell server and I get the same result so I'm not really >sure what's going on. Here's the error I get after running handin (K) Error: /undefined in Todd Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1151/1684(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- Current allocation mode is local Current file position is 53 GPL Ghostscript 8.64: Unrecoverable error, exit code 1 > It creates the 2print.pdf, but it's blank even though when I cat > the file, it has contents. I've tried opening it through gs, gimp, > acrobat, et. al. but no luck. Could it be something wrong in my > code? Not sure, but to simply the test, just use "bash run" to see what is happenning BEFORE the pdf is generated. If "bash run" crashes, sometimes everything else crashes after that Enjoy! :-) 'timm --| 6 |------------------------------------------------------------ From Joe Krall date Tue, Jan 19, 2010 at 6:36 PM subject Re: Homework 3/1C > Can anyone supply the defuns from Graham's book in 2.6 and 2.7? > (pdf-scan of the pages or typed out.) Julaun Breyer replied: There you go, found the entire chapter on the author?s website. http://lib.store.yahoo.net/lib/paulgraham/acl2.txt --| 5 |--------------------------------------------------------------- From Joe Krall To Tim Menzies date Mon, Jan 18, 2010 at 5:58 PM subject CS572 > Can you explain what is/should be in the 2print.pdf file? The 2print.pdf file is autogenrated by the command "~timm/bin/handin". What happens next is a little arcane but here goes: 1) "handin" expects a file in the current directory called "run" 2) "run" expects a file called "lisp" 3) "lisp" expects a file called "main.lisp" (note that you can get your own run, lisp, main.lisp by downloading my code) "handin" calls "run" (to handle any shell stuff), then run calls "lisp" (to handle calling sbcl), which in turn loads "main.lisp" so 2print.pdf contains whatever is printed out by "main.lisp" and "run". If you look at the homework spec, you'll see some details on where to write what. Usually, everything you write goes into "main.lisp" Enjoy! :-) 'timm --| 4 |---------------------------------------------------------------- From : Julian Breyer Date Mon, Jan 18, 2010 at 10:30 AM Subject Re: homework for week2 >For some reason I can't copy the repository to my home: >>jbreyer@shell004:~/x72$ svn co https://websvn.lcsee.wvu.edu/csx72gp11 >>Authentication realm: csx72gp11 Subversion Repository >>Password for 'jbreyer': >>svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'https://websvn.lcsee.wvu.edu/csx72gp11' > (the x72 directory already exists in my home dir that's why I didn't > include it in the command). Any idea why it doesn't let me download > the rep? Sad to say, the repos are still missing in action. They will come on line next week. In the meantime, see [2], below. Enjoy! :-) 'timm --| 3 |---------------------------------------------------------------- From Chandana Nannapaneni Date Jan 17, 7:35 pm Subject Missing .emacs file > I cannot find $HOME/.emacs file on the CSEE Linux machine. How can > I get SLIME to work? I used "ls -al" in my Home directory but still > cannot find it. w.t.Sica was kind enought to reply: The .emacs file is not there by default, you will need to create it. When you are in the home directory, you can type emacs .emacs And emacs will create a file .emacs You can then copy and paste the svn: '/Users/timm' is not a working copy --| 2 |---------------------------------------------------------------- From jhooks Date Mon, Jan 18, 2010 at 1:02 AM Subject Re: cs310,cs472,cs572: FAQ for Sunday Jan 17 > What all is due at the start of next class? If you export my code to some directory (using svn export http://unbox.org/wisp/var/timm/10/ai/etc/proj/1/a) you will find a file called "run" and a file called "main.lisp". So, you must 1) Add your code to main.lisp 2) Add the line "cat main.lisp" to the start of "run" 3) Execute my handin generation code: see ~timm/bin/handin Note that there may be an error message when you run ~timm/bin/handin when it tries to use the svn repos- for now, we'll just ignore it. This produces an output file in $HOME/tmp/2print.pdf. This is what you must: a) print out b) staple 4) Hand in the stapled output. Enjoy! :-) 'timm --| 1 |---------------------------------------------------------------- From Joe Krall TO Tim Menzies Date Sun, Jan 17, 2010 at 7:01 PM Subject CS572 > We're asked to create the function rmult...I understand the question > well, but I'm not sure how to work with using lists to make rmult > work. Did you want us to make a slight tweak on the rcount function? > Should it even be done with recursion, or is it much simpler? My > idea is to iterate the list...grab the value, update it, and put > it back into the list. But I'm not sure how to do that, or if its > the idea you had in mind. Yes, start with rcount. (defun rcount (l) (if (null l) 0 (+ (first l) (rcound (rest l))))) You'll need to use "cons" to collect the result. (cons 'a nil) ==> (a) (cons 'a '(b c d)) ==> (a b c d) Enjoy! :-) 'timm