2010年12月5日 星期日

bug fix: Ubuntu10.10 改變Virtualbox 下解析度的問題

裝是裝好了,可是在VirtualBox下卻總是在800x600的resolution下掙扎
為何VB的 guest addition無法安裝呢, 原來是U1010動到了X server, 不過
Ubuntu的官方release了一款for Virtualbox的套件, 死馬當活馬醫,

bug-fix : Ubuntu10.10 Source list無法update問題

今天新抓下Ubuntu10.10 發現不但無法 安裝 VB 的 guest addition,而且那個source list
依然是無法連到臺灣的server, 又要改一次囉,
把  /etc/apt/source.list 全部換成下列,又可以快速的upgrade了.
不過要加上 --fix-missing 的參數. 就將就著用吧. 反正過一陣又出新版了 呵

2010年12月4日 星期六

有圖片可以瀏覽字體的一個網站

簡體跟繁體字型的共存,一向是個讓人困擾的課題,好像跟實際存在的國家問題一般,
試著用字型瀏覽軟體 像 AMP Font viewer, 來解決這個問題,可素,事情就是問題百出,
like 漢儀字體 就是一個會出現??? 的字型.
算了 不管它了, 先用這個站來看看字型的圖片 再決定要哪一種字型好了!
http://font.itbulo.com/cn/hkzk/


2010年12月2日 星期四

Layouts Data Tags 一文部份中譯




Layouts Data Tags 版面的資料標籤

 Widget Tags for Layouts 一文中曾提過 data tags 有非常多的種類. 他們的格式一般寫成<data:name/> 或 <data:name1.name2/>,  
name 是data 的名稱 ,
寫成 name1.name2 時, name2 是包含在集合name1裏的一個 data標籤 , 像. photo.url.

不同的面元素( page element )頁 又包含了不同的widget,
所以主要分成了下列這些可用的資料標籤(data tag)

Globally Available Data 全域資料
這些data值全部網頁都可以使用, 不像其它的data只能用在特定的widget. 但是前面要冠上blog字串 <data:blog.title/>, etc.
  • title: The blog's title. 部落格的標題 <data:blog.title>=
  • pageType: 正在瀏覽的頁面之種類. 有 'item', 'archive', 或 'index'.

    ************************************************************************
    在判別式中舉例:
    <
    b:if cond='data:blog.pageType == "item"'>
     
    item是表示目前頁面在內文
    <b:if cond='data:blog.pageType == "archive"'> 目前頁面在歷史文章列表 
    <b:if cond='data:blog.pageType == "index"'> 目前頁面在分類標籤列表 不是首頁!!
    <b:if cond='data:blog.homepageUrl == data:blog.url'> 目前在首頁

    ************************************************************************


  • url: 現處頁面的網址.
  • homepageUrl: blog的home網址.
  • pageTitle: 現處頁面的標題. 通常就是指 blog title, 但在某種頁面 像是archive或post中,還有出現更多的資訊
  • encoding: blog的編碼方式, e.g. UTF-8.
  • languageDirection: 排列是 由左到右 或 由右到左
  • feedLinks: Page header 自動的 feed links 
Back to the top.

頁面標題 Page Header
僅僅有兩種簡單的標題  <data:title/> 跟 <data:description/>.
  • title:  blog's 標題.
  • description:  blog's 描述.
Back to the top.

部落格文章 Blog Posts


像每個部落格一樣 ,這邊是部落格裏 最中心同樣也最複雜的部份,你應該在撰文之前小心而且小動作的修改模版, 當你真的要修改這個部份,下面提到的data都是在這個widget中可用的

  • feedLinks: 本頁面的 feeds
    在主頁面 , 這就是主要的blog feeds
    在內文(item)頁面 ,這就是包含了comment的 feeds
    每一個item都包含了下列的tag

    • url: The feed URL.
    • name: The feed name (i.e. 'Posts' or 'Comments').
    • feedType: The type of feed (Atom or RSS).
    • mimeType: The mime type of the feed.

  • olderPageUrl: 如果有頁面比現在的頁面還要舊的文章, 這個tag就是這些舊文章的網址. (並非所有的頁面種類都有這樣的tag)

  • olderPageTitle: 舊文章的標題.
  • newerPageUrl: 新文章的網址.
  • newerPageTitle: 舊文章的標題.
  • commentLabel: The phrase to use to show the number of comments, e.g. "comments."
  • authorLabel: 文章的作者, e.g. "posted by."
  • timestampLabel: 撰文的時間, e.g. "posted at."
  • postLabelsLabel: 文章的 labels標籤, e.g. "labels for this post."
  • backlinksLabel: Phrase to describe backlinks to this post, e.g. "links to this post."
  • posts: 所有文章的列表.每篇文章還包含了下列的部份:
    • dateHeader: 文章的時間, 今天的文章如果不止一篇 只Po在第一篇裏
    • id: post ID.
    • title: 標題.
    • body: 內容.
    • author: 作者.
    • url: The permalink of this post.
    • timestamp: 文章的時間, 跟 dateHeader 不同, 每一篇文章都有時間戳記.
    • labels: 所有文章的label.每個label包含:
      • name: 名稱.
      • url: 所有相同label的文章. 的網址
      • isLast: True or false. 這個label是不是在列表中的最後一個 (useful for placing commas).
    • allowComments: 'True' if this post allows comments.
    • numComments: The number of comments on this post.
    • showBacklinks: Whether to show backlinks for this post.
    • numBacklinks: Number of backlinks for this post.
    • addCommentUrl: The URL of the 'add a comment' form for this post.
    • emailPostUrl: The URL of the 'email this post' form for this post.
    • editUrl: The URL of the edit form for this post.
    • feedLinks: A list of feeds specific to this post. (This is different from the overall blog feedLinks, as it may contain a feed for the post's comments, for instance.) Each contains the following:
      • url: The feed URL.
      • name: The feed name (e.g. 'Posts' or 'Comments').
      • feedType: The type of feed (Atom or RSS).
      • mimeType: The mime type of the feed.
    • comments: A list of all comments for this post (on item pages only). Each contains the following:
      • id: The numeric ID of the comment.
      • body: The body of the comment.
      • timestamp: The time the comment was created.
      • author: The display name of the comment's author, or 'Anonymous'.
      • authorUrl: URL of the comment author's profile, if the comment is not anonymous.
      • deleteUrl: The URL for deleting this comment.
      • isDeleted: Whether this comment has been deleted. (The text of deleted comments is replaced with a placeholder.)
Back to the top.

部落格的存檔文章 Blog Archives






The different styles provided here are for the different default options on the Page Elements tab. If you're designing a new version, it's easiest to use 'FLAT' as the style, and then manipulate the rest of the data as desired.
  • title:  widget 標題.
  • style: 顯示種類 'MENU', 'FLAT', or 'HIERARCHY'.
  • data: A list of each archive unit, each of which contains:
    • name: 名稱是以時間間隔為單位, 像是 "August 2006."
    • url: 包含這段時間所有的文章的Link.
    • post-count: 這段時間有多少篇文章.
Back to the top.

個人資訊 Profile Widget




For a blog with a single author, the profile widget contains the following information. Note that to access different parts of the photo data, you'll use notation such as<data:photo.url/>.
  • title: The title of the widget.
  • userUrl: The author's profile URL.
  • location: The location from the author's profile.
  • aboutme: The "About Me" information from the profile.
  • displayname: The author's display name.
  • photo: The user's profile photo, made up of the following:
    • url: The photo URL.
    • width: The photo's width, in pixels.
    • height: The photo's height, in pixels.
    • alt: The "alt" text for the photo.
On team blogs, the profile widget contains less information about more authors, as follows.
  • title: The title of the widget.
  • authors: The list of all authors, each of which contains the following:
    • displayname: The author's display name.
    • userURL: The author's profile URL.
If you want to design your template to handle both single- and multiple-author blogs, you can use the data:team variable to distinguish between the two cases. E.g. <b:if cond='data:team=="true"'> (display multiple authors) </b:if>
Back to the top.

Text / HTML / JavaScript Widget
The Text widget and the HTML/JavaScript widget work the same way and have the same two pieces of data.
  • title: The widget's title.
  • content: The content of the widget.
Back to the top.

Feed Widget
A feed widget's content is dynamically loaded using Google AJAX API after blog is rendered in a browser. It can be styled only using CSS.
  • title: The widget's title.
  • feedUrl: The URL of the feed.
Back to the top.

Picture Widget
A picture widget contains a single image, and provides all the relevant data for that image.
  • title: The title of the widget.
  • sourceUrl: The URL of the image.
  • width: The image's width, in pixels.
  • height: The image's height, in pixels.
  • caption: The image caption.
Back to the top.

Labels Widget
The labels widget includes a list of all labels that are in use on the blog.
  • title: The widget title.
  • labels: The list of labels, each of which contains:
    • name: The text of the label.
    • count: How many posts have this label.
    • url: A link to a page displaying posts with this label.
Back to the top.

List Widget
The simplest form of a list. Each item is just a single piece of text, without any different types of data within it.
  • title: The widget title.
  • items: The list of items.
Back to the top.

Link List Widget
A slightly fancier list, where each item has two parts to it: the text and the link.
  • title: The widget title.
  • links: The list of links, each of which contains:
    • name: The link's text.
    • target: The link's URL.
Back to the top.

Logo Widget
It doesn't get any simpler than this one. Just one piece of data here.
  • fullButton: The URL of the Blogger button you've selected.
Back to the top.


原文所在: http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=47270

用  ******** 包住的不是原文 只是助憶跟舉例用 .

2010年12月1日 星期三

無所不洗的年代 連Dropbox也照洗不誤

現今什麼都可以洗 ,
買手機iphone,有人用"洗"的拿到一支空機去賣,
黑錢可以投資來洗, 就連免費空間也可以洗 .
再好的經營手法,也還是可以有反制的方法, 洗這個思維真是無孔不入啊!

http://blog.duoe.org.ru/2010/10/dropbox.html

一篇關於正規表達式的好文

http://www.wxwdesign.com/archives/js%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E5%B8%B8%E7%94%A8%E8%AF%A6%E8%A7%A3

OMG~~ Google code 網站目錄

怪怪的巄咚,google code裏面有這麼多東西啊

讓人目瞪口獃,傻了眼. 進去這一頁就知道我講的有多多了

https://code.google.com/intl/zh-TW/more/
_____________________________________________________________________
Google 帳戶驗證

存取桌面或行動裝置應用程式。

網上論壇

Google AdSense API

在您的網站上放置廣告,為您和您的使用者創造收益。

文件 - 網誌 - 網上論壇

Google AdWords API

自動化及簡化廣告活動的管理工作。

文件 - 網誌 - 網上論壇

Google AJAX API

使用 JavaScript 和 HTML 兩種語言建置內容豐富的動態網站。

文件 - 網誌 - 網上論壇

Google AJAX Feed API

使用 JavaScript 輕鬆混搭公開資訊提供。

文件 - 網誌 - 網上論壇

Google AJAX Language API

使用 JavaScript 輕鬆轉譯和偵測多種語言。

文件 - 網誌 - 網上論壇

Google AJAX Search API

在網站中加入 Google 搜尋框和搜尋結果。

文件 - 網誌 - 網上論壇

Google Analytics (分析)

追蹤您的網站流量,並編寫用戶端應用程式來使用 Google Data API 資訊提供形式的「Google Analytics (分析)」資料。

文件 - 網誌 - 網上論壇

Android

建置 Android 適用的行動裝置應用程式 (行動裝置適用的軟體套件)。

文件 - 網誌 - 網上論壇

Google 應用服務引擎

在 Google 的基礎架構上執行您的網路應用程式。

文件 - 網上論壇

Google 應用服務開發人員工具

擴充「Google 應用服務」、與其他系統整合,或建置新的應用程式。

Google Apps API

針對 Premier Edition 和 Education Edition 客戶提供網域管理。

文件 - 網上論壇

Google Base Data API (研究室)

以系統化的方式管理 Google Base 內容。

文件 - 網誌 - 網上論壇 - 研究室

Blogger Data API (研究室)

讓應用程式可檢視和更新 Blogger 內容。

文件 - 網誌 - 網上論壇 - 研究室

Google Book Search API (研究室)

搜尋「Google 圖書」的完整索引並整合社交功能。

文件 - 網誌 - 網上論壇 - 研究室

Google Calendar API 與工具

建立與管理 Google 日曆的事件、日曆、小工具。

文件 - 網誌 - 網上論壇

Google Chart API

在您的網頁中動態嵌入圖表。

網上論壇

Google Checkout API

開始在您的網站上販售。

文件 - 網誌 - 網上論壇

Chromium

貢獻己力,和我們一起支持「Google 瀏覽器」幕後的開放原始碼計劃。

文件 - 網誌 - 網上論壇

Google 程式碼搜尋 (研究室)

搜尋開放式原始碼。

網上論壇 - 研究室

Google Code Search Data API (研究室)

讓您的應用程式可檢視來自 Google 程式碼搜尋的資料。

文件 - 網誌 - 網上論壇 - 研究室

Google Contacts API

可讓您的應用程式檢視並更新使用者的聯絡人。

文件 - 網誌 - 網上論壇

Google Coupon 資訊提供 (研究室)

提供 Google 搜尋結果包含的優待券清單。

文件 - 研究室

Google Custom Search API

為單一網站或多個網站建立自訂搜尋引擎

文件 - 網誌 - 網上論壇

Google Data API

讀取與撰寫網頁資料的簡易標準通訊協定。

文件 - 網誌 - 網上論壇

Google Desktop API (研究室)

建立「Google 桌面」的小工具和索引外掛程式。

文件 - 網誌 - 網上論壇 - 研究室

Google Documents List Data API

可讓您的應用程式檢視並更新您的 Google 文件清單。

文件 - 網誌 - 網上論壇

DoubleClick In-Stream (研究室)

DoubleClick In-Stream 可讓發佈者在您的影片內容中提供串流內廣告。

文件 - 研究室

Google Earth API

將 Google 地球嵌入您的網頁。

文件 - 網誌 - 網上論壇

Eclipse 專用的 Google 外掛程式

簡化 GWT 和「應用服務引擎」專案在 Eclipse IDE 中的開發過程。

文件

Feedburner API (研究室)

FeedBurner 的互動式功能可用於管理資訊提供,以及顯示資訊提供的訂閱數據。

文件 - 網誌 - 網上論壇 - 研究室

Google Finance Data API (研究室)

檢視並更新 Google Data API 資訊提供形式的 Google Finance 內容。

文件 - 研究室

Google Friend Connect API (研究室)

Google Friend Connect 的 JS 和 REST/RPC API

文件 - 網誌 - 網上論壇 - 研究室

Gadgets API

建立小型應用程式,在 iGoogle 等多個網站、Google 桌面或任何網頁上執行。

文件 - 網誌 - 網上論壇

Gears (研究室)

可從您的桌上型 PC 或行動裝置,以離線作業方式執行網路應用程式。

文件 - 網誌 - 網上論壇 - 研究室

Google Health API

使用 Google 管理您個人的健康資訊。

文件 - 網上論壇

iGoogle 開發人員首頁 (研究室)

在 iGoogle 的新沙箱中建置並測試您的小工具。

文件 - 網誌 - 網上論壇 - 研究室

iGoogle Themes API (研究室)

設計 iGoogle 首頁的動態主題。

文件 - 研究室

KML

以 Google 地球、地圖、行動裝置專用地圖建立並分享內容。

文件 - 網誌 - 網上論壇

Google Mapplet

建立小型應用程式以嵌入 Google 地圖網站。

文件 - 網誌 - 網上論壇

Google Maps API

將 Google 的互動式地圖與您的網站資料整合。

文件 - 網誌 - 網上論壇

Google Maps API For Flash

在 Flash 應用程式中整合 Google 地圖。

文件 - 網誌 - 網上論壇

O3D API (研究室)

使用 JavaScript 和 HTML 兩種語言建立豐富的互動 3D 網路應用程式。

文件 - 網誌 - 網上論壇 - 研究室

OpenSocial

建立跨網站社交應用程式。

文件 - 網誌 - 網上論壇

Orkut 開發人員首頁

為全球數百萬的 Orkut 使用者建立社交應用程式。

Picasa API (研究室)

建立自訂按鈕,並將檔案上傳至協力廠商服務。

文件 - 網上論壇 - 研究室

Picasa Web Albums Data API

將 Picasa 網頁相簿加入您的應用程式或網站中。

文件 - 網誌 - 網上論壇

Google Safe Browsing API (研究室)

下載疑似網路詐欺和惡意軟體 URL 的清單。

文件 - 網誌 - 網上論壇 - 研究室

Google Secure Data Connector

將資料從防火牆後方連結至「Google 應用服務」。

文件 - 網上論壇

Google Sitemaps

可讓 Google 迅速檢索您的網站。

文件 - 網誌 - 網上論壇

Google SketchUp Ruby API

以 Ruby 擴充 Google SketchUp。

文件 - 網誌 - 網上論壇

Social Graph API (研究室)

可讓使用者在您的網站迅速加入公開的社會人脈。

文件 - 網上論壇 - 研究室

Google Spreadsheets Data API (研究室)

讓您的應用程式可檢視並更新 Google 試算表內容。

文件 - 網誌 - 網上論壇 - 研究室

Google Static Maps API

將 Google 地圖影像嵌入您的網頁,完全不需 JavaScript 或任何動態頁面載入。

文件 - 網誌 - 網上論壇

開發人員專用的 Google Talk (研究室)

將您的用戶端或網路連結至 Google Talk 網路、新增交談或自訂 Google Talk 小工具。

文件 - 網上論壇 - 研究室

Google Toolbar API (研究室)

可讓您建立 Google 工具列的自訂按鈕。

文件 - 網上論壇 - 研究室

Google 大眾運輸資訊提供規格

為 Google 地圖提供公共大眾運輸路線和行程等資訊。

文件 - 網上論壇

V8

Google 高效能的開放原始碼 JavaScript 引擎。

文件

Google Visualization API

建立視覺化及產生報告應用程式,存取一般格式的結構資料。

文件 - 網上論壇

Google Wave API

建置 Google Wave 的擴充套件,或是將 Google Wave 嵌入您的網站。

文件 - 網誌 - 網上論壇 - 研究室

Google Web Elements

Google Web Elements 可讓您輕鬆地將喜愛的 Google 產品加到自己的網站。

Google Web 工具組

以 Java 語言建立 AJAX 應用程式。

文件 - 網誌 - 網上論壇

Google Webmaster Tools Data API (研究室)

檢視並更新資訊提供格式的網站資訊和 Sitemap。

文件 - 網誌 - 網上論壇 - 研究室

YouTube API

將 YouTube 影片與您的網站或應用程式整合。

文件 - 網誌 - 網上論壇

web analytics