Monday, May 13, 2013
Sunday, May 12, 2013
Monday, May 6, 2013
Thursday, May 2, 2013
Wednesday, May 1, 2013
Monday, April 22, 2013
Monday, April 15, 2013
Marks for homework 7 and midterm 2 are available in Subversion now.
Saturday, April 13, 2013
Tuesday, April 9, 2013
Wednesday, April 3, 2013
Monday, April 1, 2013
Saturday, March 30, 2013
- Homework 7 has been posted. It is due Monday, April 8.
- Homework 6 has been graded. Marks are in your Subversion directory. A solution will be posted Monday.
- Mid-term estimated grades have been sent to the registrar. They don't count for anything official; they are a way to let you know how you are doing. If you are considering withdrawing from the class, the CAS deadline is Friday, April 5.
- The course information is inconsistent on the date of the second midterm. It will be on April 10, not April 15.
Monday, March 25, 2013
If you want to try out Eclipse, here are CSCI 0101-specifc Eclipse instructions. General documentation is available in many places on the web. Use a search engine to find instructions on editing, debugging, etc. Lars Vogel has a good Eclipse tutorial.
Sunday, March 24, 2013
This week and next will have limited lab hours. They will be:
Monday March 25: 10:00am–1:00pm and 4:00pm–7:00pm
Tuesday March 26: 10:30am–3:30pm
Wednesday March 27: none
Thursday March 28: 11:00am–7:30pm (unchanged)
Friday March 29: 2:00pm–6:00pm (unchanged)
Monday April 1: 10:00am–1:00pm and 4:00pm–7:00pm
Tuesday April 2: 10:30am–3:30pm
Wednesday April 3: 2:15pm–4:30pm (unchanged)
Thursday April 4: 11:00am–7:30pm (unchanged)
Friday April 5: 2:00pm–6:00pm (unchanged)
Thursday, March 14, 2013
Tuesday, March 5, 2013
Saturday, March 2, 2013
Monday, February 25, 2013
I uploaded a possible solution to the second midterm review question, MidtermReview2.java.
If you're curious, func() in the first question returns the (k+2)th Fibonacci number or -1 when k is not positive, but you don't need to have seen that to work through the loops and get an answer.
Thursday, February 21, 2013
Wednesday, February 20, 2013
Sunday, February 17, 2013
Saturday, February 16, 2013
Thursday, February 14, 2013
- What goal are you trying to accomplish?
- What did you do? If you have a Subversion question, send the command. If you have a Java question, send the source or a location in Subversion.
- What happened? What output or errors did you see?
- What relevant documentation have you read?
- Are you using a Mac or Windows? What editor, if it's relevant?
Monday: 10:00am–1:00pm and 2:30pm–7:00pm
Friday: 2:00pm–6:00pm (except Feb. 22)
Monday, February 11, 2013
Some people are confused about the distinction between "svn checkout" and "svn update."
"svn checkout" creates a working copy based on data from the repository where no working copy previously existed. You only need to run it once on any given computer.
Saturday, February 9, 2013
Wednesday, February 6, 2013
Update: As of 10:09AM Thursday, it is back up.
Monday, February 4, 2013
Java convention is that classes begin with an uppercase letter. Suppose you create a file "foo.java" and want to rename it to "Foo.java". If you look at the Subversion documentation, you might find the "svn move" command and try something like this:
$ svn move foo.java Foo.java
svn: E155007: Path '.../Foo.java' is not a directory
The problem is that Mac OS X and Windows do not respect case differences in filenames, so it looks like you're asking to rename a file to its own name, which doesn't work. (What that error message means, I have no idea.)
The solution is to rename it temporarily to something different, commit it, then rename it back to the properly cased name:
$ svn move foo.java TempFoo.java
$ svn commit -m "temporary rename"
Committed revision 1145.
$ svn move TempFoo.java Foo.java
$ svn commit -m "rename back"
Committed revision 1146.
set expandtab shiftwidth=4 tabstop=4 autoindent
Sunday, February 3, 2013
UPDATE: As of 1:40 PM EST 2013–02–03, it's back up.
Friday, February 1, 2013
- Read the first three chapters of Version Control by Example (VCBE).
- Obtain the required textbook and, optionally, the optional textbook. See the course notes for details.
- Set up the JDK and Subversion on your computer. Add the JDK to your path if you're using Windows. See sections 2.2–2.4 in the lecture notes for details.
- Set up a text editor suitable for editing source code. Set the EDITOR (Mac) or SVN_EDITOR (Windows) environment variables so that the editor opens automatically when it is necessary. See sections 2.5–2.7 in the lecture notes for details.
- Make sure all of the above worked by completing homework 1.
Thursday, January 31, 2013
The task of homework 1 is to get used to the tools we'll be using for the class by replicating Subversion Demo #2 from the Jan. 30 lecture. You should create a Java program in your area of the Subversion repository in the directory "inclass" named "Hello.java". If you type "javac inclass/Hello.java", then "java inclass.Hello", it should print out "Hello, World!" You can find a program that does this in section 6.2 of the lecture notes.
You can check that it works as expected by:
- Open Terminal (Mac) or PowerShell (Windows).
- cd into the top level of your working copy, which has the same name as your netid.
- Run "testing/test.sh HelloTest" (Mac) or "testing\test.ps1 HelloTest" (Windows).
By the way:
If you want Checkstyle to quiet down about tabs in your files and you're using Notepad++, go into the "Settings > Preferences", click on the "Language Menu/Tab Settings" tab, then check "Replace by space" in the bottom right corner. This won't affect existing files, just new files and changes to old ones. If you're using XCode, the default tab settings are fine.