Tuesday, December 14, 2010
Monday, January 19, 2009
般若波羅密多心經
觀自在菩薩 行深般若波羅密多時 照見五蘊皆空 度一切苦厄
舍利子 色不異空 空不異色 色即是空 空即是色 受想行識 亦復如是
舍利子 是諸法空相 不生不滅 不垢不淨 不增不減
是故空中無色 無受想行識 無眼耳鼻舌身意 無色聲香味觸法
無眼界 乃至無意識界
無無明 亦無無明盡 乃至無老死 亦無老死盡
無苦集滅道 無智亦無得 以無所得故
菩提薩埵 依般若波羅密多故 心無罣礙 無罣礙故 無有恐怖
遠離顛倒夢想 究竟涅槃
三世諸佛 依般若波羅密多故 得阿耨多羅三藐三菩提
故知般若波羅密多 是大神咒 是大明咒 是無上咒 是無等等咒
能除一切苦 真實不虛
故說般若波羅密多咒 即說咒曰
揭諦揭諦 波羅揭諦 波羅僧揭諦 菩提薩婆訶
Friday, October 3, 2008
Backup MySQL Database
echo "============================================================"
echo "Backup $dbName database to $dbFile"
# The following commands will be put to the beginning of the database dump file.
echo " 1. Creating header.tmp temporary file"
echo "SET AUTOCOMMIT = 0;SET FOREIGN_KEY_CHECKS=0;" > $dbDir/header.tmp
# Dumping the database.
echo " 2. Creating $dbName.tmp temporary file"
mysqldump --opt --user=$dbUSER --password=$dbPASSWORD $dbName > $dbDir/$dbName.tmp
# The following commands will be put to the end of the database dump file.
echo " 3. Creating tailer.tmp temporary file"
echo "SET FOREIGN_KEY_CHECKS = 1;COMMIT;SET AUTOCOMMIT = 1;" > $dbDir/tailer.tmp
echo " 4. Create today's backup file : $dbFile"
cat $dbDir/header.tmp $dbDir/$dbName.tmp $dbDir/tailer.tmp > $dbDir/$dbFile
Backup Schema Only:
$ mysqldump --no-data --user=$dbUSER --password=$dbPASSWORD $dbName > Schema20081003.sql
Tuesday, August 26, 2008
Tuesday, August 19, 2008
Jim Cramer's HOG vs Leonard the Wonder Monkey
’We record his Lightning Round recommendations as he makes them on TV, and then we have our monkey make recomendations at random on the same stocks. We then wait 30 days, and see who came out on top.‘
Do you really believe their tracking results? If you do, then you'll be a "PIG" or a "HOG". Because Jim Cramer never told us to buy and hold on any stocks for 30 days. He told us to do your homeworks and make your own trading decision on buying more or jumping out of a train.
Cramerwatch.org does not compare Jim Cramer with the Monkey. After Jim Cramer's Lighting Round in his Mad Money show, Cramerwatch.org is doing a comparison between a "PIG"/"HOG" and Leonard the Wonder Monkey.
Thursday, July 31, 2008
vi commands
ESC | start command mode ( it starts in command mode ) |
i | change to insert mode |
:q | quit |
:wq | write and quit |
:w | write the file |
:# | goto line # |
/str | search down for "str" |
?str | search up for "str" |
dd | delete line |
x | delete character |
dw | delete word ( cut ) |
yy | yank line ( copy ) |
yw | yank word |
p | paste |
u | undo ( only limit is the last write ) |
. | repeat last change |
cw | change word |
Go to line number ## :##
Undo previous command: u
Undo all changes to line: U
Search backward for string: ?string
Search forward for string: /string
% (entire file) s (search and replace) /old text with new/ c (confirm) g (global - all): %s/oldstring/newstring/cg
Delete 5 lines (to buffer): 5dd
Delete lines 5-10:5,10d
string replacement
Sometimes you want to replace one string with another. This is done with the ex command "s". The form of the replacement is :: line_range s/old/new/gex ( replace foo with bar from line 10 to 20 ) :
:10,20s/foo/bar/gYou can use visual mode to select the lines, when you type the colon to start the command it will use symbols for the visual line range.
Wednesday, June 4, 2008
Increment a variable in for-each loop
XSLT is a declarative programming language. You can bind a value to a variable only once, you cannot change it later. <link>