公告版位
新版Blog peichengnote

廣州亞運得牌數統計
http://www.gz2010.cn/info/medal/jmedal.json

內容為:
 

var json_medal={"medal_chi":"
排名<\/th> 国家/地区<\/th> 金<\/th> 银<\/th> 铜<\/th> 总数<\/th><\/tr>
1<\/td> 中国<\/a><\/td>105<\/a><\/td>40<\/a><\/td>36<\/a><\/td>181<\/a><\/td><\/tr>韩国<\/a><\/td>29<\/a><\/td>23<\/a><\/td>36<\/a><\/td>88<\/a><\/td><\/tr>日本<\/a><\/td>18<\/a><\/td>42<\/a><\/td>37<\/a><\/td>97<\/a><\/td><\/tr>朝鲜<\/a><\/td>5<\/a><\/td>7<\/a><\/td>10<\/a><\/td>22<\/a><\/td><\/tr>伊朗<\/a><\/td>5<\/a><\/td>4<\/a><\/td>8<\/a><\/td>17<\/a><\/td><\/tr><\/table>"};GameMedal.show_medal();-------------------------------

為了想把它濾的的好看點。
其實應該直接取得json就可以了。
使用土炮法練習。
2<\/td>
3<\/td>
4<\/td>
5<\/td>

peicheng 發表在 痞客邦 留言(0) 人氣()


awk 在public_html下為資料夾的檔案變成網頁連結
滿有趣簡單實用的小應用。
  
 

 ls | awk '{print ""$0"
"}' > index.html


有些publc_html是不能直接瀏覽的
所以這樣可以快速一個html a href list。


peicheng 發表在 痞客邦 留言(0) 人氣()




 作者  peicheng (PC)                                        看板  peicheng_tran
 標題  [佳句]事情跟話
 時間  2010/11/11 Thu 22:52:28




peicheng 發表在 痞客邦 留言(0) 人氣()



 作者  peicheng.bbs@pcarea.twbbs.org (PC)                      看板  peicheng
 標題  焦點新聞 》 四湖參天宮慶祝五年千歲庚寅年聖誕
 時間  PC AREA (2010/11/11 Thu 22:44:27)

【記者蘇智勇/雲林報導】您有多久未曾在鄉下車水馬龍的十字街口上目睹舞獅陣頭精彩\
演出,今年四湖參天宮在國曆十一月七、八日(農曆十月二、三日)五年千歲庚寅年聖誕\
時,當地振興社將廣招近百名壯漢分扮六支台灣獅及十組刀盾對打的陣容,讓大家重溫舊時
封街看熱鬧的盛況。

peicheng 發表在 痞客邦 留言(0) 人氣()





 crontab -lcannot chdir(/var/spool/cron), bailing out.

 /var/spool/cron: Permission denie


把一般user pc 加入cron群組

peicheng 發表在 痞客邦 留言(0) 人氣()

[Gentoo]BSD 切換locale zh_TW.UTF-8 

in Linux  and BSD
$ locale 
你可以看到你現在的 LC的相關設定

LANG=

LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"

peicheng 發表在 痞客邦 留言(1) 人氣()



基于PYTHON的CRAWLER 
http://www.yeeach.com/2009/05/16/%E5%9F%BA%E4%BA%8Epython%E7%9A%84crawler/

因為之前老師有提說一個人才DB的建置,
我大概把它分成三部分。
第一爬資料 crawler
第二build db format (parser
第三 how to display

peicheng 發表在 痞客邦 留言(0) 人氣()

bind named could not configure root hints from 'named.ca': file not found

/etc/bind/ 下面有沒有named.ca這個file 
沒有 

dig @a.root-servers.net . ns > named.ca

/etc/init.d/named restart
還是error

peicheng 發表在 痞客邦 留言(0) 人氣()

http://www.netalive.org/tinkering/serious-perl/

http://www.netalive.org/tinkering/serious-perl/

The absolute minimum you need to know

 Perl's extremely flexible syntax makes it easy to write code that is harder to read and maintain than it could be. This article describes some very basic practices I consider necessary for a clear and concise style of writing Perl.
Table of contents

    * Namespaces

peicheng 發表在 痞客邦 留言(0) 人氣()


下午回家的時候,到了吳厝朝興宮七崁迓媽祖,
 吳厝的陣頭真多,還鑽了一下轎。

開口獅的技藝有特別之處。

遶境的時候,武館總是走再最前頭的。
在西螺吳厝這邊(二崁)的武館,是武夜館,所習的是布雞拳 ,獅陣是開口師,
異於一般的青面獅跟廣東獅。

peicheng 發表在 痞客邦 留言(0) 人氣()

Gentoo安裝與配置NFS
http://hi.baidu.com/zkheartboy/blog/item/b4fdff242d0e79064d088d09.html

http://en.gentoo-wiki.com/wiki/NFS 

peicheng 發表在 痞客邦 留言(0) 人氣()

這個禮拜因為金盾獎的關係,所以星期六回台中,
本來想說安排長一點的時間到台中,
不過老師在星期四下午個別的meeting。

本來想殺到,台中去參加一下台灣武藝的討論。
不過後來去了電話原來這禮拜改星期三下禮拜開始才星期四。

星期五早上到了台中,
跟郭老師zore蓋特吃飯,順便把蓋特介紹給郭老師,
把手邊的東西都交接一下。

peicheng 發表在 痞客邦 留言(0) 人氣()

這個問題以前就碰過,不過在這裡找不到資料,
我就想出奇怪了....
從blogspot把舊文轉過來。
 
 vi /etc/X11/xorg.conf
 
 在xorg.conf加入Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"

peicheng 發表在 痞客邦 留言(0) 人氣()


 作者  peicheng (PC)                                              站內  INF29
 標題  Re: 大家說 賊賊 休學 好嗎?
 時間  2010/10/20 Wed 16:04:52


難得來發一篇認真文...
只是提供一點想法而已。


peicheng 發表在 痞客邦 留言(0) 人氣()





剛好跟某Z學長聊到大度山的近況

又翻起了    Outian學長的 徵任系統站務 (1) ~ (3) 系列

http://blog.outian.net/archives/331
(文很長,就不直接轉了,前往朝拜一下)

peicheng 發表在 痞客邦 留言(0) 人氣()