3/30/2008

words, not again~

bibliography: a list of books for reference

firefox

check plugin by typing
about:plugins
to the address bar

3/29/2008

vim tips

General
ref

Block Select
ref

3/11/2008

bash programming

ref

Linux assembly programming

ref
you can use
$gcc -S test.c
to compile c code to assembly code(might be at&t style)
then will transform into test.s file
$as test.s
can compile test.s to machine code for execution

3/10/2008

compiz

ref

I think I had better figure out what happen to my graphic card first
and sound card, too, my microphone works pretty suck

3/09/2008

ssh & sftp

$ ssh username@abc.efg.ijkl

$sftp username@abc.efg.ijkl
$mkdir downloads
sftp> mget * downloads

ref

3/07/2008

evolution of OS and Computer Generation

Generations:
  1. 1945 ~ 1955: Vacuum Tube, Plug boards
  2. 1955 ~ 1965: transistors
    the primitive concept of OS appeared, known as Batch System
    actually, the concept of batch system originally are from the assembly line
    and was first implemented to punched card systemthen came to the
    popular command line interface today on workstations, but the difference
    is that only one process, one shell running, tasks must be done
    one after another(batch)
  3. 1965 ~ 1980: ICs
    since the complexity of computing is rising ICs became more and
    more popular after it's creation

    the concept of OS, has evolved almost completely at this stage:
    batch -> Multiprogramming -> Time Sharing
    Multiprogramming:
    • on Batch system, we can only do one thing at a time, then people
      came to think about the possibility to do several things altogether
      the concept of scheduling appeared.
      we create several processes and use scheduler take turns
      to running each of them. Since the CPU is so fast that it seems
      that they are running concurrently.
    Time Sharing:
    • the evolution is the appearance of Round-Robin algorithm
      in the past, processes are non-preemptive(cannot be interrupt)
      so once u encounter a long job, user will be hanging. Round-Robin
      introduce the concept of Time Quantum. once Quantum
      expired, contex switch
  4. 1980 ~ present: PC
    at this time Main Frame computer being replaced by Personal Computer
    the concept of Operating System are the same but the resources are
    different
    eg. in the past, Main Frame Computer can assign special resource like
    graphic card to some special user

Edsger W. Dijkstra

ref
  1. The title of his 1972 book Structured Programming, coauthored with C.A.R. Hoare, became the term used to describe a major style of programming in computer software.
  2. He was also known for his low opinion of the GOTO statement in computer programming, writing a paper in 1965, and culminating in the 1968 article "A Case against the GO TO Statement"

3/06/2008

image viewer

comix is good to view comic books
ref
"comix, cbrpager, or evince. evince only got cbz
support as of Feisty Fawn." by stylishpants

mirage is a fast light image viewer

gthumb is good to browse sets of images

3/05/2008

POSIX threads

ref

Models

"All models are wrong, but some models are useful"
... George Box, statistician

3/03/2008

StarDict

  1. software download
  2. dictionaries download
  3. tar xvf dictionary-you-download.tar.bz2
  4. mv dictionary-you-download /usr/share/stardict/dic
  5. re-exec. stardict will load the dictionary you download automatically

Mutex and Semaphore

concep ref

implementation ref1

so mutex is more efficient, in other words, it takes less overhead!

and there's sth about semaphore ref

semaphores
A semaphore is a special counter. It has an initial value and two
operations, P and V, for changing that value. (P and V are
initials for words in Dutch; think of them as Pause and something
else [Voice maybe?]). A semaphore keeps track of the difference
between the number of P and V operations that have occurred. A P
operation is delayed (the process is de-scheduled) until #P-#V <=
C, the initial value of the semaphore.

3/02/2008

picasa

1. download
2. $ sudo dpkg -i /tmp/picasa_2.2.2820-5_i386.deb

maybe cause it is implemented using wine
so the functionality is not very good though

mic and speaker

gnome-volume-control // for gnome session
or
alsamixer // command line
use "left right key" to choose from different options and up and down to control the magnitude
"m" to turn on/off
"Tab" to change different pages of setting

ref

dangerous code !!

ref

3/01/2008

RHET 105


1. representing readings
learned rhetoric triangle: rhetor(author, eyerman),
text(subject) and audience. we need to think about this
relationship while reading or writing
from Consumer's gazes, there's three rhetorical
practices:
Logos: logical argument, appeal to reason
Ethos: ethical argument, appeal to rhetor's ethical character
Pathos: emotional argument, appeal to audiences' emotions
the point is to sell their ideas!
2. representing your world
the example of making a map, told us that the world are
representing in the way the maker wants it to be.
from Familial Gazes toward photographs, we know
that beyond description, interpretation is also important
and the interpretation will change over time.
we also looked through some photos using
Documentary Gazes and found out that the world are
documented in the way the documentarians want it to be.
what is truth? truth are hided behind different aspects
and you have to discover it by yourself. :P
3. Film Analysis