4/30/2008
直接在linux 上面開發windows程式
for windows還蠻順的.
http://www.clam.iua.upf.edu/wikis/clam/index.php/Devel/Windows_MinGW_cross_compile
4/28/2008
glow text
"glow" 在字面上是比 "shadow" 精確的, 因為我們要的是全部周圍的閃閃金光,
而不是偏某個角度光線照射後的陰影.
以後稱這個效果叫 glow text吧
the comments of check_disk_change() in Linux kernel source.
注意最後一句....
/*
* This routine checks whether a removable media has been changed,
* and invalidates all buffer-cache-entries in that case. This
* is a relatively slow routine, so we have to try to minimize using
* it. Thus it is called only upon a 'mount' or 'open'. This
* is the best way of combining speed and utility, I think.
* People changing diskettes in the middle of an operation deserve
* to lose :-)
*/
int check_disk_change(struct block_device *bdev)
4/22/2008
git 快速上手
http://git.or.cz/course/svn.html
If you are just after tracking someone else's project, this get you started quickly:
git clone url -- svn checkout url
git pull -- svn update
4/09/2008
Intel ATOM 名稱代號解密
以前也是覺得超亂的, 看了這篇才搞懂, .................................
簡單的說
Atom 是x86 cpu 分兩version, Silverthorne & Diamondville
Silverthorne: 專門應用在MID等可攜式小型上網裝置, 當初設計考量低功耗優於低成本.
(這段描述....讓人有Diamondville比Silverthorne便宜的感覺耶.... )
Poulsbo: 專門搭配Silverthorne的低功耗晶片組, 內建3D繪圖與HD 解碼能力
Menlow: 汎指Silverthorne + Poulsbo 組合出來的平台.
Embedded Menlow: 同Menlow, 但保證持續供貨至少7年.
Moorestown: 下一代Menlow, 耗電不到Menlow 的1/10.
Sodaville: 將於 2009 年推出的 SoC, 同樣的低功耗架構, 但定位在有持續插電的家用娛樂裝置, 規格尚未公開.
sourcecode collaboration
Trolltech 開發團隊希望開發新的version control 工具能夠結合darcs 的優雅清晰介面與git 的效率.
唉, git 不練不行啦....到處都是git hosted project.
4/07/2008
測試圖文並茂
The snippet environment, and the original snippets were originally created by Øyvind Kolås for a paper submitted to GUADEC 2004.
All of his original snippet code is considered to be part of the public domain.
double xc = 128.0; double yc = 128.0; double radius = 100.0; double angle1 = 45.0 * (M_PI/180.0); /* angles are specified */ double angle2 = 180.0 * (M_PI/180.0); /* in radians */ cairo_set_line_width (cr, 10.0); cairo_arc (cr, xc, yc, radius, angle1, angle2); cairo_stroke (cr); /* draw helping lines */ cairo_set_source_rgba (cr, 1, 0.2, 0.2, 0.6); cairo_set_line_width (cr, 6.0);
21
http://games.slashdot.org/article.pl?sid=08/04/02/2224215&from=rss
http://www.sonypictures.com.tw/movie/21/
http://paowang.com/news/3/2004-04-14/20040414045425.html
這個John Chang跟 Matt Damon在電影Rounders對戰的Johnny Chan是不同人,
http://www.johnnychan-poker.com/about/johnny-chan-movie-rounders.htm
http://www.youtube.com/watch?v=IQAI0jQTkAM
電影裡就是Johnny飾演自己本人, 跟John Chang不同的是, Johnny似乎不是靠賭場
賭博賺錢,
而是靠賭王大賽的獎金以及他自己開設的poker補習班,
PS2. 他還蠻高調的, Youtube裡是他自己客串的片段加上自己的補習班橫幅廣告.