梁啟超:最苦與最樂
人生什麼事最苦呢?貧嗎?不是。失意嗎?不是。老嗎?死嗎?都不是。我說人生最苦的
事,莫苦於身上背著一種未了的責任。人若能知足,雖貧不苦;若能安份(不多作份外希
望),雖然失意不苦;老、死乃人生難免的事,達觀的人看得很平常,也不算什麼苦。獨
是凡人生在世間一天,便有一天應該的事。該做的事沒有做完,便像是有幾千斤重擔子壓
在肩頭,再苦是沒有的了。為什麼呢?因為受那良心責備不過,要逃躲也沒處逃躲呀!
peicheng 發表在 痞客邦 留言(1) 人氣()
在windows下有flashget的批次下載功能,
那在Linux下呢。
舉個例子
http://pc.com/xxx001zzz.jpg
http://pc.com/xxx049zzz.jpg
wget http://pc.com/xxx{001..049}zzz.jpg
wget http://pc.com/xxx0{01..49}zzz.jpg
peicheng 發表在 痞客邦 留言(0) 人氣()
peicheng 發表在 痞客邦 留言(0) 人氣()
peicheng 發表在 痞客邦 留言(0) 人氣()
到了研究所,才知道之前都沒在念書阿!!
以前有兩點需要改進,
第一沒有實踐力。
第二沒有實踐的能力。
跟著強者,真的能夠成長不管是什麼好像都有同樣的道理。
難怪以前說近朱者赤,近墨者黑,
在還沒吸取足夠養分的時候,自己會一直吸收。
peicheng 發表在 痞客邦 留言(0) 人氣()
Linux下chrome吃系統的proxy設定
ssh 連線後
ssh -D 12348 peicheng@yourserver
peicheng@PCsNB ~/ $ export SOCKS_SERVER=localhost:12348
peicheng@PCsNB ~/ $ google-chrome
這樣就成功了。
peicheng 發表在 痞客邦 留言(0) 人氣()
peicheng 發表在 痞客邦 留言(0) 人氣()
沒錯,
揮別了從2006到2011的無名,
我也想搬家到pixnet了。
定了,
不知道會不會改,
這次就是先試看看了。
我不是要搬,
我只是找不到留下的理由。
peicheng 發表在 痞客邦 留言(0) 人氣()
[武術]拳兒
前陣子,又提到了拳兒這部漫畫,我之前只看了兩集,
但是這次一看下去就,愛不釋手。
松田隆智真的學到了裡子的東西了,
從他的敘述跟他的心得,
他比很多學習中國武術的人還要像是中國人。
節錄兩段
把武術當作精神休養或是興趣,那是安於和平生活的人,所說的話。對於生活於都市底層的人而言,是種為了求生的手段!
peicheng 發表在 痞客邦 留言(2) 人氣()
How do I read a huge file line by line in Python, without loading the entire thing into memory first?
http://www.yak.net/fqa/171.html
by rupe
How do I read a huge file line by line in Python, without loading the entire thing into memory first?
In Python, the most common way to read lines from a file is to do the following:
for line in open('myfile','r').readlines():
do_something(line)
peicheng 發表在 痞客邦 留言(0) 人氣()
[電影]訓龍高手 How To Train Your Dragon
不錯的一部動畫片,
愈來愈細緻,現在看BD的片源,連毛細孔都看的一清二楚。
嗝嗝最後還是順從了自己的渴望,
做了自己擅長的事情,
成為了自己想成為的人。
今天下午看拳兒,
peicheng 發表在 痞客邦 留言(0) 人氣()
九把刀說
我要搬去痞客邦了 http://www.giddens.tw/blog
http://www.wretch.cc/blog/Giddens/9345685
那我勒~他講的真的滿真切的。
peicheng 發表在 痞客邦 留言(0) 人氣()
[Gentoo]auto mount pcmanfm
安裝完gvfs,
在pcmanfm下會出現permission denied
PCsNB peicheng # vim /etc/PolicyKit/PolicyKit.conf 加入
peicheng 發表在 痞客邦 留言(0) 人氣()
之前想解析bitext 找了找一些作法找到python example
Pybtex! http://pybtex.sourceforge.net/
from pybtex.database.input import bibtex from operator import itemgetter, attrgetter import pprint parser = bibtex.Parser() bib_data = parser.parse_file('ref.bib') def sort_by_year(y, x): return int(x[1].fields['year']) - int(y[1].fields['year']) bib_sorted = sorted(bib_data.entries.items(), cmp=sort_by_year) for key, value in bib_sorted: print key print value.fields['year'] print value.fields['author'] print value.fields['title']
peicheng@PCsNB ~/project/python/pybitex $ python bitex.py wu1992fast 1992 Wu, S. and Manber, U. {Fast text searching: allowing errors} peicheng@PCsNB ~/project/python/pybitex $ cat ref.bib @article{wu1992fast, title={{Fast text searching: allowing errors}}, author={Wu, S. and Manber, U.}, journal={Communications of the ACM}, volume={35}, number={10}, pages={83--91}, issn={0001-0782}, year={1992}, publisher={ACM} }
peicheng 發表在 痞客邦 留言(0) 人氣()
上次卸除了halevt
再次想要emerge 時發現他被mask,
加到keywords之後又有個提示。
Calculating dependencies... done!
!!! All ebuilds that could satisfy "sys-apps/halevt" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/halevt-0.1.6.2-r1 (masked by: package.mask)
/usr/portage/profiles/package.mask:
peicheng 發表在 痞客邦 留言(0) 人氣()