preload
Oct 20
mp4box -split time_sec foo.mp4 
#扳清P4隞
 
mp4box -split-size size foo.mp4 
#扳獢憭批清P4隞塚桐涔B
 
mp4box -split-chunk S:E foo.mp4 
#箏蔣銝剜摰畾菜
mp4box -cat foo1.mp4 -cat foo2.mp4 -new foo.mp4 
#雿蛛閬瘙蝺函Ⅳ訾
 
mp4box -force-cat foo1.mp4 -force-cat foo2.mp4 -new foo.mp4 
#撘瑕嗅雿蛛航賜⊥剜
 
mp4box -add video1.264 -cat video2.264 -cat video3.264 -add audio1.aac -cat audio2.aac -cat audio3.aac -new muxed.mp4 -fps 24 
#雿萄畾菔脤喳敶梁銝虫甇
Tagged with:
Feb 21

Vim Commands and Shortcuts

Tagged with:
Jan 06

sed 湔亙瑼獢批捆靽格對剁
OSXsed銝祆銵砍貊敺桐憭芯璅

sed -i "" 's/targetString\replaceString//g' targetfile
sed -i -e 's/targetString\replaceString//g' targetfile
sed -ie 's/targetString\replaceString//g' targetfile
sed -i "" -e 's/targetString\replaceString//g' targetfile

剝 find 隞斗撠瑼獢

find ./ -name "*.xml" -type f -exec sed -ie 's/package="com.android.launcher"/package="com.android.launcher2"/' {} \;

ps. 隞敺嚗瑼隞賣冽敺W銝”e”

Tagged with:
Jan 05

Advanced Linux Programming

銝剜蝧餉陌
Linux 蝟餌擃蝥抒蝔

Tagged with:
Jan 03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/perl -w
 
@isbn = ( 
"9789861058092",
"9789861053134",
"9789861050355",
"9789861044965",
"9789861039855",
"9789861036182",
"9789861031958",
"9789861027364",
"9789861022499");
@s = reverse @isbn;
print join "\n",@s,"\n";

result:
9789861022499
9789861027364
9789861031958
9789861036182
9789861039855
9789861044965
9789861050355
9789861053134
9789861058092

Tagged with:
Dec 29

雿甇券 Android 憳 Eclipse 蝚券甇 VIM 嚗

豢嚗雿輻 eclim嚗X Eclipse code-completion VIM 頛撌抒蝺刻摩隞g

鈭銝 eclim 摰蝬拍蝡嚗Insert smart title here (bizkit) – 蝝摮隞/ndroid蝔撘eclimAndroid蝥臬賭誘銵撘瘚蝔 | Windstorm嚗芸楛銋撘憟賭銝潛啣

閰衣冽芸嚗

So Cool!

Tagged with:
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: