Recent Comments
- mjhsieh on 有消息說 Cisco 要買 Skype?
- Gea-Suan Lin on H.264 的近況
- b4283 on H.264 的近況
- Gea-Suan Lin on 關於重設密碼的步驟
- hoamon on 關於重設密碼的步驟
Archives
- August 2010 (10)
- July 2010 (12)
- June 2010 (3)
- May 2010 (3)
- April 2010 (4)
- March 2010 (8)
- February 2010 (14)
- January 2010 (13)
- December 2009 (16)
- November 2009 (28)
- October 2009 (24)
- September 2009 (12)
- August 2009 (7)
- July 2009 (10)
- June 2009 (11)
- May 2009 (22)
- April 2009 (21)
- March 2009 (18)
- February 2009 (7)
- January 2009 (32)
- December 2008 (19)
- November 2008 (12)
- October 2008 (15)
- September 2008 (14)
- August 2008 (15)
- July 2008 (18)
- June 2008 (20)
- May 2008 (19)
- April 2008 (27)
- March 2008 (22)
- February 2008 (21)
- January 2008 (15)
- December 2007 (22)
- November 2007 (17)
- October 2007 (29)
- September 2007 (31)
- August 2007 (34)
- July 2007 (31)
- June 2007 (36)
- May 2007 (23)
- April 2007 (22)
- March 2007 (30)
- February 2007 (50)
- January 2007 (75)
- December 2006 (48)
- November 2006 (59)
- October 2006 (89)
- September 2006 (29)
- August 2006 (48)
- July 2006 (14)
- June 2006 (35)
- May 2006 (62)
- April 2006 (63)
- March 2006 (72)
- February 2006 (83)
- January 2006 (56)
- December 2005 (46)
- November 2005 (60)
- October 2005 (27)
- September 2005 (54)
- August 2005 (83)
Tags
akamai archive captcha capture cdn cisco compatibility debian delete export extension firefox gist git h264 homepage html image ipo javascript jquery js linux mail mailing mobile mozilla mpeg mutt mysql nicovideo password patent php report screenshot skype smilevideo svn tfn university video vnc wkhtmltoimage wordpressCategories
- Anime (22)
- AWS (8)
- BBS (15)
- Blog (187)
- Book (18)
- Bridge (1)
- Browser (233)
- CDN (4)
- Cloud (9)
- CMS (30)
- Comic (17)
- Computer (1635)
- Computer and Network Center (30)
- CSS (27)
- Database (122)
- DNS (37)
- Editor (11)
- Financial (35)
- Firefox (126)
- Food (7)
- FreeBSD (107)
- Game (19)
- GoogleChrome (5)
- Hardware (119)
- IE (55)
- Joke (127)
- Lab (3)
- Linux (48)
- Mail (62)
- Movie (12)
- Murmuring (1703)
- Music (37)
- MySQL (88)
- NCTU (60)
- NetBSD (7)
- Network (1219)
- OpenBSD (3)
- Opera (19)
- OS (166)
- P2P (75)
- Photo (55)
- Political (44)
- Programming (244)
- Recreation (334)
- RSS (59)
- Safari (20)
- Science (27)
- Search Engine (119)
- Security (281)
- SMS (3)
- Social (48)
- Software (888)
- Spam (82)
- Sport (3)
- Telephone (46)
- Television (28)
- Usenet (11)
- Vim (3)
- Wiki (23)
- Windows (43)
- WWW (620)
Blogroll
Meta
Category Archives: Programming
Git 內類似 svn export 的功能
用 git-archive。 預設是輸出成 tar 格式到 stdout,所以可以用下面的指令取出一份 archive: mkdir ../working git archive master | tar -x -C ../working
Posted in Computer, Murmuring, Programming, Software
Tagged archive, export, git, svn
Leave a comment
Python 2 與 Python 3 的相容性
前幾天 Python 2.7 正式釋出 (2010/07/03),預定是 Python 2 最後一個 major release,於是又有人再討論要怎麼寫出 Python 2 與 Python 3 都能夠跑的程式碼,以維持單一 codebase。 在「The real problem with Python 3 – no business case for conversion (was “I strongly dislike Python 3″)」這篇提到了一些語法及模組技巧 (基本上就是用 Python 2 與 Python … Continue reading
Posted in Computer, Murmuring, Programming, Software
Leave a comment
GCC 4.5.0 以及 ClangBSD
GCC 4.5.0 前幾天公告釋出:「GCC 4.5.0 Released」,而另外一邊以 clang 取代 FreeBSD 系統內 GCC 的計畫 ClangBSD 也開始徵求測試者了:「[CFT]: ClangBSD is selfhosting, we need testers now」。 目前 ClangBSD 可以在 i386 以及 amd64 上編譯 bootable-kernel 以及 world (目前的 -CURRENT 版本),平常在用 -CURRENT 的人除了上面那篇 mailing list 上的說明外,在「Building FreeBSD with … Continue reading
P3PC (Performance of 3rd Party Content)
Steve Souders 開了一個「Performance of 3rd Party Content」,分析 3rd party script 的效能。目前已經分析了四個 js。 看完四個 js 的分析後,可以看出來一些 pattern: 用 async script。Google 曾經介紹 Google Analytics 可以使用 async script:「Google Analytics Launches Asynchronous Tracking」。 當使用 async script 時無法使用 document.write (會有奇怪的結果),就算不是 async script 也應該儘量避免使用。常見的方法是建立一個帶有 id 的 … Continue reading
Posted in Browser, Computer, Murmuring, Network, Programming, Software, WWW
Leave a comment
改寫 wretch-albumexpander.js (無名小站相簿展開程式)
這次主要是把之前用 jQuery 1.2.6 的需求改寫,改用 getElementsByClassName()、getElementsByTagName() 以及 getElementById() 取得元素,然後用 .innerHTML 直接換掉內容。 由於這次改寫避免使用 unsafeWindow 以及複雜的 GM_* 函式,在 Google Chrome 除了遇到一個小問題之外 (可以寫一段 code workaround),目前跑起來還蠻正常的。 參考:「Wretch Album Expander」以及 GitHub 上的「gslin’s albumexpander」。
Posted in Browser, Computer, Firefox, GoogleChrome, Murmuring, Network, Programming, Software, WWW
Leave a comment
IE 的 Cookie 限制
在 Simon Willison 那邊看到 Eric Lawrence 在 MSDN Blog 上的解釋:「Internet Explorer Cookie Internals (FAQ)」。Simon Willison 的文章在「Internet Explorer Cookie Internals (FAQ)」這篇內。 他們討論到 IE 到目前所有版本的 cookie 都不支援 max-age 參數,所以有個避免 MySQL master/slave replication lag 的技巧在 IE 上沒辦法用的很好:當寫入資料時 (例:使用者發表文章),server 會設定一組 30secs 的 cookie,當 web … Continue reading
Posted in Browser, Computer, IE, Murmuring, Network, Programming, Software, WWW
Leave a comment
Amazon SimpleDB 支援不同程度的 Consistency
在 Amazon CTO Werner Vogels 的 blog 上提到了 AWS SimpleDB 支援不同程度的 consistency:「Choosing Consistency」,在 James Hamilton 也對這件事情發表正面的意見:「I love eventual consistency but…」。正式的技術文件在「Amazon SimpleDB Consistency Enhancements」這邊可以查到。 Eventual consistency 以 CAP theorem 中的 Consistency 妥協,試著解決 scale 問題,但缺點是 stale read (可能會讀到舊資料),對要求比較嚴謹的子系統 (像是遊戲內的各種點數,身上帶的金幣之類的) 會很麻煩,而對於要求更嚴謹的系統 (像是商品搶購時的「剩餘數量」) 幾乎無法直接使用。 … Continue reading
Posted in Computer, Database, Murmuring, Network, Programming, Software
3 Comments
HipHop for PHP 計畫
由 HipHop for PHP project 的幾位帶領者所說明的會議中解釋了不少東西 (在 USTREAM 有錄影可以觀看:Facebook Technology Tasting – HipHop for PHP)。 前半部份等於是把「HipHop for PHP: Move Fast」重講一次,並且說明他們在不少 case 下可以分析出 variable type,所以不需要用 zval (一般性的變數)。 比較重要的是後半段的 Q&A 部份。 就會場所提到的,他們目前跑在 Apache 1.3 + prefork 上面。有計劃要支援 multithreading,好處是 shared resource 可以共用,像是 database … Continue reading
Posted in Computer, Murmuring, Programming, Software
Leave a comment
Facebook 的 PHP 加速計畫
Facebook 的開發者在「HipHop for PHP: Move Fast」這篇的說明,也就是 HPHPi 計畫。 這個計畫 Facebook 的團隊花了兩年的時間公開,到現在有 90% 的 PHP server 跑在上面,平均起來比起 well-tuned PHP 還快了 50%。但目前還沒看到 code,而且以文章的說明並不清楚到底採用什麼方式,只有看到這樣解釋: When using HPHPi you don’t need to compile your PHP source code before running it. It’s helped us catch … Continue reading
Posted in Computer, Murmuring, Programming, Software
4 Comments
jQuery 改用 Google Closure Compiler
othree 在 irc 上提到的… 依照「Commit 3fd62eae9df3159fc238a515bb748140a942313d to jquery’s jquery」這個 commit 的說明,jQuery 將使用 Google Closure Compiler,取代 YUICompressor 壓縮 jQuery: Switched from using YUI Compressor to Google Compiler. Minified and Gzipped filesize reduced to 22,839 bytes from 26,169 bytes (13% decrease in … Continue reading
Posted in Computer, Murmuring, Programming, Software
Leave a comment