View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

MP3 Discussion

Q. An-Hoe Shih 9-June-2007 - Since I have enabled the change set tracking, I noticed that my .st file includes the change set stamps. Is there a way to exclude such info? Also, how do I turn the change set tracking off? Thanks.

A: Nicholas Chen - June 9, 2007 - Do you mean lines like

!BlocksControl methodsFor: 'as yet unclassified' stamp: 'N.C. 6/1/2007 21:18'!


I don't think there is a way to remove them. It is part of the .st file format. Just like the ! symbols to separate the different sections.


Q. Elaine Savino 9-June-2006 - I'm trying to run this code (which was in Homework 1 tutorial) and am getting back the same array.
#(1 2 3 4) do: [:each | each squared]
Why is this not working?

A: Paul Adamczyk 9-Jun-2006 - Unlike some other Collection methods, like collect:, the method do: does not return the result of the traversal, so the return value of the code above is the original array.


Q: Elaine Savino 9-June-2006 - In regard to below... I understand that we need to write our own method maxArray: but can that method utilize a combination of existing methods in the class library or do we need to write the algorithm to find the max element ourselves using blocks?

A: Paul Adamczyk 9-Jun-2006 - I meant to say, write the code from scratch, don't use any existing methods. This goes for the entire homework.




Q: Elaine Savino 8-Jun-2006 - For problem 1.5 can we use methods for the class Array or do we need to use a block structure to find the max element of anArray?

A: Paul Adamczyk 8-Jun-2006 - You need to write your own method.


Q: Elaine Savino 8-Jun-2006 - How can we test individual test cases without running the entire SUnit test?

A: Paul Adamczyk 8-Jun-2006 - Highlight the class which has the tests in SUnit (the class name turns red), then select "Run One." It will run only tests in that one class. (To find the class faster, type in the first letter of the name and the cursor will advance to the first class that starts with that letter). If you want to run only one test, copy it to a new class and run tests in that class.

Q: Nevedita Mallick 7-Jun-2006 - In Exercise 2.2 we have to explain how raisedToInteger works, do we have to explain the whole process, i mean why count is set in such a way, how the bit manupulation is happening etc ?

A: Paul Adamczyk 7-Jun-2006 - A simple 1-2-sentence high-level explanation is enough.


Link to this Page