Monday, November 17, 2014

Linux/Unix Resources


Books

Programming Interface:

Kernel:

Links

Colors:

[Done Reading] [Progressing] [Action needed]

Digest

The Linux Programming Interface: A Linux and Unix System Programming Handbook

Sample Code:
  • How to learn:
    • Useful: reading and experiment with the example program
    • Most effective way is to write code, 1) modifying the example to try out my own ideas 2) writing new programs
    • Take the time to read the documentation(if it exists) and write small (but increasingly large) test programs until you become confident of your understanding of the software. I have found that, in the long run, this kind of self-training more than pays for itself in terms of saved time. 

Linux / Unix System Developer Required Knowledge

Core Knowledge

  • Hardware / Assembly Language
  • Operating System

Languages

  • C / C++ / Java
  • Perl / Python
  • Lisp: Common Lisp / Emacs Lisp
  • Command Line: Bash Scripting

Tool Chain:


    -----C++-----

    find the include path: gcc -xc++ -E -v -

    -----GDB-----

    GDB Documentation
    Commands of GUD/GDB
    • @ = C-x C-a / C-c
    • @C-b: (gud-break)
    • @C-d: (gud-remove)
    • @C-t: (gud-tbreak)
    • .
    • @C-l: (gud-refresh) last line
    • .
    • @C-s: (gud-step)
    • @C-n: (gud-next)
    • @C-i: (gud-stepi)
    • @C-p: (gud-print)
    • @C-r: (gud-cont)
    • @   <: frame (gud-down)
    • @   >: frame (gud-down)
    • @C-u: Continue execution to the current line (gud-until)
    • @C-t: Run the program until the selected stack frame returns or stops for some other reason (gud-finish)
    • @C-j: (gud-jump)
    • C-c C-c: send SIGINT to gdb 
    Jump in C:

    • C-c , j: goto variable
    • C-u, C-Space: Goback
    • C-c, g: display reference

    GDB User Interface:

    • gdb-many-windows
    • gdb-restore-windows

    Links


    Labels: ,

    Thursday, November 13, 2014

    Emacs && Lisp

    -----ELisp-----

    Emacs Lisp Manual - one page
    Emacs Lisp Manual - Index

     ELisp Interactive Mode:

    • `C-j' inserts the result of the evaluation in the buffer
    • `C-xC-e' displays the same result in Emacs bottom line
    • Tags

    ELisp Examples & Exercises

    -----Emacs-----

      • .emacs.d: emacs initialization process
      • Emacs 24.4 installation on ubuntu:
        • sudo apt-get install build-essential
        • sudo apt-get build-dep emacs24
        • download: cd ~/Downloads && tar -xf emacs-24.4.tar.* && cd emacs-24.4
        • ./configure
        • make
        • sudo make install
      • Shortcuts
        • c-h, m: list all current modes
        • C-M-v: scroll bottom window
        • C-x o: move to bottom window
        • C-h c C-p
        • C-h k C-p
        • C-h k previous-line
        • C-h v
        • C-h a: command apropos
        • C-x C-+ C--: increase and decrease font
    • digest of tuhdo
      • .

    Labels: ,

    Saturday, November 1, 2014

    How to bind a book

    There are many ways to make a book:

    1. Heavy Duty Stapler


    Labels: