From leavens@larch.cs.iastate.edu Tue Jan 10 22:30:27 2006 Date: Tue, 10 Jan 2006 22:30:27 -0600 (CST) From: Gary T. Leavens To: cnc@cs.iastate.edu Cc: Com S 342 , Ru He Subject: Re: cs342 - Hw0 - Exercise 3 (DrScheme installation problem) Hi Chris, (and all students) On Tue, 10 Jan 2006, Chris Cornelison wrote: > In part Exercise 3 part b, when I try to evaluate... > > (test-hw0 "setup") > > I get the following error > > Welcome to DrScheme, version 300. > Language: Typedscm, typed extension to EoPL(2e). > Teachpack: /usr/local/plt/teachpack/drscheme-342-teachpack.scm. >> (test-hw0 "setup") > . open-input-file: cannot open input file: > "/home/chris/.plt-scheme/300/collects/homework/hw0/setup.tst" (No such file > or directory; errno=2) >> > > I have tried this on both my home machine and the departmental ones with the > same result. The problem you are experiencing on the department machines is because I didn't get ssg to set up the homework directory as part of /opt/plt on the department machines. It wil take until tomorrow (Wednesday), perhaps, to get the permission problem fixed on the department machines. My apologies for this oversight. For your home machine, make sure that you have downloaded and installed both lib342.zip and hw342.zip from the course web page. The directory in which you should unzip the files is not $HOME/.plt-scheme, but instead something corresponding to /usr/local/plt. On a UNIX (e.g. Mac) system, $HOME/.plt-scheme contains preference files and is *not* the main installation directory. It might be that you need to reinstall DrScheme into some place other than ~/.plt-scheme if you have done that... Let me know if that doesn't fix the problem on your home machine. Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 -------------------------- From leavens@larch.cs.iastate.edu Fri Jan 13 00:07:08 2006 Date: Fri, 13 Jan 2006 00:07:08 -0600 (CST) From: Gary T. Leavens To: Nick Retzl Subject: Re: CS 342 HW0 Question Hi Nick, On Thu, 12 Jan 2006, Nick Retzl wrote: > I'm a bit confused on what you want from question 11. For instance part b > and c are a bit confusing. I think I understand part a but I am not sure. Any > clarification will be appreciated. Thank you. Look at the reading in the Abelson and Sussman book for the term "means of combination". Read the Revised Report on Scheme for the Scheme expressions, and then think about what they resemble most in Java or C++. Gary T. Leavens Department of Computer Science, Iowa State University 229 Atanasoff Hall, Ames, Iowa 50011-1041 USA http://www.cs.iastate.edu/~leavens phone: +1-515-294-1580 ---------------------------- From mekstran@iastate.edu Tue Jan 17 11:38:33 2006 Date: Tue, 17 Jan 2006 11:38:33 -0600 From: Michael Ekstrand To: leavens@cs.iastate.edu Subject: CS342 Scheme and system operation notes Dr. Leavens: Not really a Q&A, but a problem I encountered and solved that may be of benefit to other students. Ubuntu Linux ships an old version of DrScheme and MzScheme (Debian may also do this, I haven't been able to check). The CS342 library and homework files use features not present in the version shipped (version 209). The solution is to download the latest version of the DrScheme sources from and build them. It requires the xbitmaps, build-essential, and X11 development packages to be installed; having libcairo2-dev and libxft-dev installed is beneficial. Also, I was reading the Running Scheme page, and noticed its notes on vi. It may be worth noting, for the benefit of other vi users in the class, that Vim does a very good job of indenting Scheme files. As long as filetype detection is on, Vim will load the scheme syntax and indentation files, and automatically indent Scheme code exactly as DrScheme does. It also has good parentheses matching (the 'showmatch' option). Cheers, - Michael