2013-04-03

CSC 104 Slog-Week Eleven (Mar 25th - Mar 31th)


CSC 104 Slog-Week Eleven (Mar 25th - Mar 31th)
Something new learned in the class:
[Network]
Network
Computer networksMessages must be passed to reveal information contained in one machine's memory to another, or to request that some action be taken on a remote machine.
Examples:
Token ring
There must be just one sender at a particular time. They pass a signal, a bit pattern called a token, around the ring. A machine that has messages to send retains the token until it can confirm that its messages have been received, and then passes it along. Machines that have no messages to send pass along the token as soon as they receive it.
Star configuration
Failure of the hub machine breaks the star. A disadvantage of the star configuration is that if the main machine goes down, they will all go down.
Bus (e.g. Ethernet) configuration
Able to transmit messages at any time. If a machine detects that another machine is transmitting at the same time (a collision), it waits for a random interval of time before re-transmitting. The success of the protocol depends on the random intervals being (on the average) different for different machines. Failure of a single machine doesn't break the network, although other machines may re-transmit many messages to it.
Internet
 By connecting two or more networks, an internet is created.
The address space for this network of networks is comprised of four bytes, the dotted quad, which divides into a portion to identify the network, and a portion to identify the particular machine (or host) on that network. These four bytes are to decide whether the recipient of a message is on the local network (in which case it sends the message directly to it) or whether it is on some other network (in which case it forwards the message to another router, and eventually it reaches the network hierarchy responsible for that network).
There is a translation between the dotted-quad and symbolic names. The symbolic names indicate the top-level domains (.org, .com, .net, .edu, and two-character country codes) that group many networks under them.
The hierarchy of domains and sub-domains in the symbolic name indicate the chain of responsibility for keeping track of the mapping between symbolic and numeric addresses, and (for example) which machines handle mail for other machines.
Capabilities of the Internet
Email
Execution of programs on a remote machine
Sharing of resources, such as disk drives and printers between dispersed machines
Transfer of files between dispersed machines
Online shopping
Hypertext Markup Language (HTML)
Web-pages containing files in HTML format are specified/located through a Uniform Resource Locator (URL).
Programs ran by the browser are restricted by (a) the size of file that can reasonably be transmitted over the net, and (b) caution about allowing a program from a remote site to carry out certain functions --- for example accessing your hard drive.
Programs
[Computers and work]
On the one hand, the amount of textiles and metal goods that could be produced in a day increased dramatically during the Industrial Revolution, due to both the use of power (first steam, and later oil, and electricity), and division of labor. On the other hand, the land and resources used for older forms of production were taken over (in some cases by military force), first in Europe and then throughout the world. Increasing production required ever-expanding markets, and those who produced goods using older forms of production were thrown out of work. Some of them (for example, traditional weavers in the north of England) responded by smashing the machinery that deprived them of a livelihood. Those who did gain employment with the new machinery (often children) were often pushed to work 12, 14, or even longer shifts each day.

Measures of personal wealth (the number of square feet of housing, cars, or the amount of food, per capita) have similarly increased. Entirely new categories of jobs (e.g. webmaster) have been created, as well as new ways of working (telecommuting).
Early in the era of automation there were both dire and rosy predictions: some predicted overwhelming unemployment and social dislocation, while others predicted a utopia with plenty of wealth and leisure time. Neither has come to pass (yet). We have traded more stuff for less time: the average home has more floor space and more cars parked in front of it than half a century ago, and the price is that we have to work more hours, or perhaps a second job. On the other hand, unemployment rates seem to ebb and flow with the business cycle (cyclical recessions and recoveries) rather than showing a massi
ve increase as automation takes jobs from humans.
Telecommuting
Telecommuting
Benefits of telecommuting include flexible work hours (so work may be combined with other responsibilities, such as daycare), lower costs for office infrastructure, and a smaller social impact of commuting (good for the environment.
Drawbacks of telecommuting include intrusion into home life (flexible hours are often longer), reduced impact with co-workers, and less "visibility" to superiors.








Challenges I met this week
Understanding three types of networking and their characteristics is kind of difficult. However by looking it up on the internet and searching examples of photos of them, I got to well understand them.

The test/quiz/assignment
We had a test this week so we do not have any tutorial this week which is a good thing. However, I found some things that I did not command really well. For example, I made mistake in (list-ref n) function. I thought it represented the rest of the list but actually it means the stuff on the nth position of the list.

Feedback to the other’s slogs
I read Emily Zhang’s slog ths week. She mentioned the privacy problem in the lecture. And I left a message: “Indeed the privacy problem is really annoying :( ".
Internet and privacy

CSC 104 Slog-Week Ten (Mar 18th - Mar 24th)


CSC 104 Slog-Week Ten (Mar 18th - Mar 24th)
Something new learned in the class:
[Operating Systems]
  Operating Systems came after human operators, preparing a sequence of computer jobs to be run on computers.
  Job control software (a precursor of what we now think of as an operating system) was developed and could provide the users with output in real time (nearly instantly).
  A single CPU "slice" time is about 1/20 second.
  With the arrival in the 1970s of single-user personal computers, the resources were not shared among human users. Initially this often meant that no operating system was required, so no time-sharing was required.
  Rudimentary operating systems for personal computers meant that the details of interacting with hardware could be delegated to hardware drivers, so that applications (games, word processors) could more easily be written to run on different machines.
  With any flavour of operating system, we expect:
A kernel which provides access to hardware, while shielding application software from the gory details, launches applications, shares CPU cycles among applications, a graphical shell for the user to interact with.
System utilities that aren't of interest other than for computer maintenance, and are often considered part of the operating system: file compression, disk defragmentation or formatting hardware.
  Operating systems are often closely associated with the CPU (or family of CPUs) they were developed to work with. They are also often associated with an application that was first, or best, developed and bundled with a particular OS.

[DR.RACKET]
  Recusion
; k : number -> image
(define (k d)
  (cond
    [(> d 0)
       (beside/align
        "bottom"
        (k (- d 1))
        (rotate 60 (k (- d 1)))
        (rotate -60 (k (- d 1)))
        (k (- d 1)))]
    [else (line 5 0 "blue")])


Challenges I met this week
  Editing Wikipedia!!! The most difficult assignment to finish in CSC104. I translated the corresponding article of Chu Mei-feng in Chinese Wikipedia but I forgot to attach the links for it. Therefore, the committee deleted my article at first, which made me really sad. Fortunately my friend reminded me of adding references to the article which made the article more reliable. I did so and the article I translated was saved until now. :D Thanks for my friends!








The test/quiz/assignment
  Assignment WIKI is due this week. I translated two whole corresponding Chinese articles in Chinese Wikipedia and added links to one article. It took me a whole night. Translating articles is a really hard job. I didnt expect it to be that difficult at first. Anyway it is a good chance to practicing my English!


Feedback to other’s slogs
  I read the slog from http://virumandi2004.blogspot.ca/ this week again because his/her slog is really interesting. He/she said that “It was just the Sierpinski triangles where you had a condition but this was way more interesting since this time we learned to make it do so many cooler things!” I totally agree with he/she, so I left a comment: “Yea! Sierpinski made of random colors is really interesting! The magic of computing LOL!” I love computer science when I work out something!