preload
Dec 28

拍決acPorts憟隞嗥頂蝯曹摰鋆 http://www.macports.org/

sudo port install global

隞 trace lftp source code 箔

銝tarball

wget -c http://ftp.yars.free.net/pub/source/lftp/lftp-4.1.1.tar.gz

閫憯蝮

tar zxvf lftp-4.1.1.tar.gz

source code folder

cd lftp-4.1.1

瑁 htags 靘Y source code 蝬脤

htags -g -Fnsa

screenshot:

閬撠質 HTML 桅銝剖銝 cgi-bin 摮桅啣 .htaccess嚗

Options +ExecCGI
AddHandler cgi-script .cgi

ps. 雿 Mac OS X 10.6 銝曆箸暻潭迤蝣箄 CGI-BIN 函寞嚗隞交急⊥撠皛踹舀嚗瘝脩仿閰脫暻潔g

ref1: http://chunchaichang.blogspot.com/2010/05/gtags-trace-code.html
ref2: http://williewu.blogspot.com/2007/02/gnu-global-souce-code-tag-system.html
ref3: http://welkinchen.blogspot.com/2009/10/gnu-global.html

Tagged with:
Jun 25
<TextView android:text="蝚砌銵\n蝚砌銵\n蝚砌銵"
		android:id="@+id/newline"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:textSize="16sp"
		android:textColor="#FFF" />

嚗瘜冽瘀汞clipse鋆∠layout閬賣臭憿舐內箸嚗閬曉蚩mulator銝箔

Tagged with:
May 19

瘥撱箸撘蝚砌銵敹 this call嚗 super call嚗嚗交摰 constructor call嚗蝺刻陌冽芸撟思撱箸銝瘝貊 superclass constructor
this() 澆怠銝 class嗡 constructor
super() 澆 superclass constructor

瘥 constructor 臭誑豢澆 super() this()嚗雿銝賢怎具

雿輻 this() 靘敺 constructor 澆怠銝 class 虫 constructor

this() 芾賜典 constructor 銝哨銝敹舐洵銝餈啣乓

super() this() 銝臬澆銋

Head First Java

銝砌隤迎冽貊 constructor 銝剔湔乩蝙 this() 靘澆怠虫貊撱箸寞嚗臭誑撠撖思鈭銴蝔撘蝣潦

Constructor Chain Exercise

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// File   : ConstructorChain.java
// Purpose: Illustrate constructor chaining.
// Author : Fred Swartz
// Date   : 5 May 2003
 
class ConstructorChain {
    public static void main(String[] args) {
        Child c = new Child();
    }
}
 
class Child extends Parent {
    Child() {
        System.out.println("Child() constructor");
    }
}
 
class Parent extends Grandparent {
    Parent() {
        this(25);	//澆怎桀瑟詨貊撱箸摮
        System.out.println("Parent() constructor_CodeFirstLine");
//CodeFirstLine其璅蝷粹摨隞仿皜雿
    }
 
    Parent(int x) {
        System.out.println("Parent(" + x + ") constructor_CodeSecondLine");
//CodeSecondLine其璅蝷粹摨隞仿皜雿
    }
}
 
class Grandparent {
    Grandparent() {
        System.out.println("Grandparent() constructor");
    }
}

瑁蝯嚗
Grandparent() constructor
Parent(25) constructor_SecondLine
Parent() constructor_FirstLine
Child() constructor

Ref1: Java: Constructor Chaining Exercise 1
Ref2: Java thissuper冽 – 銝撽暸帕頧 – BlogJava
Ref3: 撱箸寞嚗Constructor嚗

Tagged with:
Apr 17

頠擃皜祈岫嚗1983撟 IEEE 嗅蝢拍綽雿輻其犖撌交芸畾萎瑁皜砍蝟餌絞蝔嚗嗥桃冽潭炎撽摰臬行遛頞唾摰瘙臬皜蝯撖阡蝯銋撌桀乓

皜祈岫撌亦撣恍閬瑕銵抒鞈迎

    1. 皞賢
    2. 芯縑敹
    3. 撟賡
    4. 頞撘瑞閮嗅
    5. 頞喳敹
    6. 瑞蝎曄
    7. 芣靽
    8. 瘣撖
  • Tagged with:
    Apr 14

    詨蝔撘桀 kernel.org 蝞∠蝬剛風

    祈隞 A.B.C.D A.B.C-D 靘銵函內

    Example:2.6.25.11

    A: 銝餉祈蝣

    B: 銝餉祉甈∟祈蝣潘舐其斗瑟臬衣箇帘摰研銝祈閮嚗憟貊粹潔葉嚗development嚗穿嗆貊箇帘摰嚗stable嚗研

    C: 隞銵 A.B 箸活賂憒嚗2.6.10嚗 2.6 蝚砍甈⊿箇研

    D: kernel.org 撣詨芾蝭 A.B.C 嚗撱撣豢寞閬靽格寞詨皞蝣潦撣貊 .D -D 銵函內嚗隞銵其耨甇甈⊥詻

    Tagged with:
    Apr 14
    • logout嚗 Linux 皞餃綽桀 shell銝餅批唳蝯蝡舀
    • exit嚗蝯撌脤 shell 啣
    • CTRL+D嚗蝑 logout 隞扎
    Tagged with:
    Apr 12

    蝯蝡舀Terminal嚗

    蝯蝡舀舀靘銝砌蝙刻蝯雿輻刻雿輻函萇方W蝯嚗蝥蝺芸楛獢VW萇斗亙唬撩銝餅銝嚗臭誑其蜓璈銝脰雿Linux靘鈭銝蝔桀怠祉蝡舀嚗Pseudo Terminal嚗鋆蝵殷憒TelnetSSH蝺唬撩銝餅扳嚗撠望祉蝡舀鋆蝵株雿輻刻脰雿

    銝餅批蚓onsole嚗

    銝餅批唬蜓閬舀靘蝯衣頂蝯梁恣鈭箏⊿脰雿雿輻函嚗撣豢舀湔亙其撩典W萇斤嚗撣訾撩冽曄蔭冽蹂葉嚗蝟餌絞蝞∠鈭箏∪臭誑敺雿雿輻具Linux銝雿輻函鈭粹餉阡撣訾瑕喟絞UNIX銝餅璅銝餅批啗蝵殷箔詨踝Linux靘蝔梁箄砌蜓批堆Virtual Console嚗璈塚Linux詨祉孵Y憭銝餅批唬g雿梁典銝蝯萇方W璅⊥砍銝餅批啁嗆Linux閮剜啣鈭粹餉虫靘12砌蜓批啗蝵殷瘥砌蜓批圈賜策鈭銝鋆蝵桀蝔 ttyN嚗 N 隞銵函洵撟曉砌蜓批啁楊

    • tty1 ~ tty6嚗Linux閮剜靘剖摮隞Yconsole嚗 Ctrl+Alt+Fn (F1~F6)
    • tty7嚗閮剜靘敶VY console 嚗交摰鋆 X 銝血嚗靘踵砌蜓批啗蝵柴Ctrl+Alt+F7

    嚗桀Linux撣詨芣靘7 console嚗交閬典啣5嚗閬靽格寧頂蝯梯身摰賢

    Tagged with: