LaTeX 沒有像 Word 那樣內建中文字數統計功能,加上 LaTeX 源檔案中有許多控制字元,不能通過檔案大小獲知其中有多少漢字。為此我用C寫了一個統計中文字數的小工具,名為 cwc ,即 chinese word counter。這個程式只有 count_files() 函數使用了 Windows API,稍作修改就能移植到 Linux/Unix 下。#include <stdio.h>#include <wchar.h>#include
討論、下載請前往:http://bbs.ctex.org/forums/index.php?showtopic=31442 ,謝謝!向Word和PowerPoint插入LaTeX公式的小工具 v0.2測試版Inspired by `eqe: Linux LaTeX equation editor' (http://rlehy.free.fr/) and `TexPoint - A Latex add-in for Powerpoint'
最近朋友問了一個問題,輸入時鐘是33MHz,要分出一路2.048MHz的時鐘來,要求相位抖動儘可能小。我想到可以用電腦圖形學中繪製直線的Bresenham演算法來解決,獲得成功。輸入時鐘是33000kHz,輸出時鐘是2048kHz,好比從原點畫一條到(33000,2048)的直線,用輸入時鐘驅動畫筆在 x 方向的運動,那麼對應的 y 方向的運動就是輸出時鐘。Verilog代碼如下:module divider(clk_in, clk_out, nrst); input clk_in,
新年伊始最大的IT新聞莫過於Ubuntu for Phone的發布,系統的亮點除了全手勢操作外,最讓人感興趣的就是插上底座後可以轉換成桌面圖案,作為一台thin PC來用,官方宣傳語是Introducing the superphone that’s also a full PC。(其實自己一直期望Android和Chrome
我在LinkedIn上面的簡歷是:Roger at UC Mobile Ltd. (www.uc.cn), focus on graphics stack (rendering architecture) research of WebKit based Browser in Android platform, include the graphics stack of WebKit itself along with the display subsystem of Android
Beautiful Code Exists,If You Know Where to Look ----Kode ViciousCoding is his game, pleasantries distained.--------------------------Dear KV,I’ve been reading
Google CEO Larry Page在就職滿周年後,發布了一篇周年回顧及展望未來的文章(2012 Update from CEO)。文中提到一個重要的觀點是,通過瞭解您的身份和關係,為您輸入的搜尋字詞賦予一個可能的上下文語境,Google才能為您提供更精準的搜尋結果,而不是一個僅僅通過Page Ranking得到的福士化的結果。Understanding identity and relationships can also help us improve search. Today,
construction 恐怕是《Code Complete(代碼大全) 第二版》這本書裡惟一值得討論的術語。construction 本意是“建築、建築物”。在這本書裡用來指軟體開發過程中最主要的一項活動,軟體開發的活動包括:問題定義、架構、需求、設計、construction、系統測試等等。construction