分類: 一般

十月 04
Here is a simple example of how to use web fonts :
@font-face {
font-family: "Kimberley";
src: url(http://www.princexml.com/fonts/larabie/kimberle.ttf) format("truetype");
}
h1 { font-family: "Kimberley", sans-serif }
Those familiar with CSS syntax will recognize the last line. The @font-face construct may not be familiar, however it’s easy to explain: as the “Kimberley” font is requested, the font file is fetched from the specified URL. The syntax is described in the CSS2 specification. To avoid long lists of @font-face declarations in the style sheet, they can be hidden using @import :
@import url(http://www.princexml.com/fonts/larabie/index.css) all;
h1 { font-family: Goodfish, serif }
The TrueType files used in the examples above are designed by Ray Larabie. He is a renowned font designer who has made hundreds of interesting TrueType fonts freely available for use on the web. His fonts are elegant, decorative, and playful. Dieter Steffmann is another great font designer. He, too, has made many beautiful fonts available for anyone to use.
三月 31
每個網站擁有者都希望自己的站人氣鼎沸,但是隨著造訪人次和服務深度的提昇,對網站的資源就會有越大的需求。 一般而言,直接碰到的問題包括:
  1. 頻寬需求 (bandwidth)
  2. 主機效能 (server performace)
  3. 儲存效率 (storage efficiency)
  4. 穩定性 (stability)

這些都需要花錢、花人力才能解決。但是,在確定投入金錢、人力之前,恐怕得先檢查一下出問題的原因,就像標題這種常見的問題,極可能像是蝴蝶效應般悄悄地伺機而動呢。

以下,就提供一個造成 MySQL 發出 too many connections 警訊的案例,足見程式設計的工作必須是很審慎、精密的計劃,否則將重重打擊系統的穩定性。

 (閱讀全文)

元月 13
中國國內最大搜尋引擎網站百度,昨天意外出現無法連結現象,多個省市均受到影響。據業內人士估測,這次斷網將給百度造成至少半天以上的損失,損失數字將在700萬元人民幣以上。

根據百度內部技術人員透露,百度功能變數名稱的確被駭客劫持,雖說從昨晨起,鍵入百度首頁會出現帶有伊朗國旗的頁面,並標有「此網站已經被伊朗cyber army攻擊」字,但尚不能確定是否被伊朗駭客所攻擊。

 (閱讀全文)

十二月 09

全球最大搜尋網站谷歌(Google)即時搜索功能今天開始啟用,用戶可以在谷歌頁面上瀏覽最新最快動態資訊。

中新社報導,舊金山當地時間12月7日,谷歌在矽谷的電腦歷史博物館發布這一消息並示範了即時搜索功能。打開谷歌頁面,分別是10大熱門新聞和10大熱門搜索。當地時間下午3時左右,美國10大熱門新聞排列第1的是高爾夫球星老虎伍茲。

點擊伍茲最新新聞之後,可看到一個方框中藍色字幕的滾動新聞標題,以時間排序,每幾秒鐘便更新,消息來源於電視、電台、報紙以及網路、博客等,圖文並茂,並可用滑鼠操縱右邊的藍色搜索條尋找自己需要的內容。而10大搜索排行中,伍茲情婦、伍茲女人等高居榜首。

 (閱讀全文)

九月 21
最簡單的作法就是利用 Google docs 的現成工具,以下列的語法來嵌入檔案

<iframe src=”http://docs.google.com/gview?url=pdf檔案網址&embedded=true” style=”width:600px; height:500px;” frameborder=”0″></iframe>

 (閱讀全文)