2013-04-04

CSC 104 Slog-Week Twelve (Apr 1st – Apr 7th)


CSC 104 Slog-Week Twelve (Apr 1st – Apr 7th)
Security
Something new learned in the class:
Security
Some standard measure to reduce your exposure to either malicious or inadvertent harm to your computer's security:
Use good passwords
Be sure you know the person or corporation you are downloading software from
Be sure you know the person or corporation you are divulging identifying information to
Apply security patches to your software
Avoid opening dubious email
investigate various spam filters



Property】          
 ❀Categories of property:
Land Ownership
Land
Human bodies, body parts
Life forms
Tunes
Ideas
Traditional knowledge

Rationales for property
※Natural right to property
- Everything we mix our labour with becomes our property
※Property helps society
- Any resource that doesn't have an owner is used inefficiently. In this argument, as things become scarce (and desirable) we need to assign owners to them so that they aren't squandered, and the ownership can be passed around using the market.

Critiques
※Mixing your labour with nature assumes a large supply of commonly-owned raw materials (trees, land), and runs into difficulty as these things become scarce.
In practice we mix our labor with materials that are partly the result of other's labor. The calculation of which part of the result belongs to whom is controversial.
The result of mixing labor with nature, in Locke's example, was an instance of some product that could be used exclusively by the producer or sold to somebody else for their exclusive use. How does this notion of property extend to property where exclusive use defeats the (commercial) purpose of the property?
※Ownership may impede innovation. Imagine the consequences of important algorithms having private owners.
Critiques for ownership














Computers haven't changed the nature of intellectual property but only highlighted some of the issues since computers have made it cheaper and easier to make copies of products whose main content is intellectual rather than material.
Copyright protection of music and software has become two hotspots.
Copyright


Open-source
You may use and modify the program in any way you see fit, including selling it to someone else. The strength of open-source software is the potentially large community of developers writing software, and the speed with which bugs can be fixed and features added. For certain applications, for example http web servers; the open-source version is also the leading version. In some other applications (many desktop environments) proprietary software dominates.


Challenges I met this week
I encountered some problems when doing the project 2.
Contrast
When writing the check-expect function, I wrote a general function which is the same as the definition before but soon I found that I should write by the specific number. For example, by assuming make-color 56 225 225 225
When I just made a random color by pick a random number for make-color function, I cannot always get an integer by running the “sharpen-r”, which became a bug. So I looked it up on the internet about how to get an integer: it should be (quotient n1 n2) instead what I wrote: (/ n1 n2)


Fractal
Everything went on well, until I clicked the “run” button to run the program, the bug appeared. The “down” and “left” button didn’t work.
The function I wrote was:
(define (key-press rp k)
  (cond
    ; !!! write four more [question answer] pairs for this condition!
    [(equal? k "up") (make-param (+ 1 (param-depth rp)) (param-base rp))]
    [(equal? k "down") (make-param (- 1 (param-depth rp)) (param-base rp))]
    [(equal? k "right") (make-param (param-depth rp) (+ 1 (param-base rp)))]
    [(equal? k "left") (make-param (param-depth rp) (- 1 (param-base rp)))]
[else rp]))
And then I went to the office hour in CSC Help Centre and I found that it did not go well was because I transposed “(param-depth rp)” and “1” in the “donw” and “left” function. Since at that time, (param-depth rp) is already bigger than 1.
So the right function should be:
(define (key-press rp k)
  (cond
    ; !!! write four more [question answer] pairs for this condition!
    [(equal? k "up") (make-param (+ 1 (param-depth rp)) (param-base rp))]
    [(equal? k "down") (make-param (- (param-depth rp) 1) (param-base rp))]
    [(equal? k "right") (make-param (param-depth rp) (+ 1 (param-base rp)))]
    [(equal? k "left") (make-param (param-depth rp) (- (param-base rp) 1))]
    [else rp]))
This one goes well.

The test/quiz/assignment
We had a quiz this week and it was mainly about map a list and then apply a function to it. It was kind of tricky but when you totally understand how the "map" work, everything becomes easier. 
Also, the slog and project two are due this week! It is kind of tricky but I KNOW I CAN FIND THE ANSWER!


Feedback for the orther’s slogs
I read 's blog about the problem solving about The Diagonal Problem. It was a really awesome plan! The blogger did a really good job in solving the problem and also concluding it into a plan. So I left a comment "That's a really awesome one!"  =D

No comments:

Post a Comment