2010年4月14日 星期三

Linux Application選單

首先要先讀取哪些選項要顯示的
讀取
~/.config/menus/applications.menu
/etc/xdg/menus/applications.menu (一定會存在)

在/usr/share/desktop-directories/目錄中
可找到對應的.directory
即可得到對應選單的資訊

然後檢查/usr/share/applications
這目錄下的.desktop
就能得到所有的application的資訊

而icon大部份會存在
/usr/share/icons/
/usr/share/pixmaps/
這些目錄中

其他資訊參考這篇
http://library.gnome.org/admin/system-admin-guide/2.30/menustructure-0

2010年4月13日 星期二

在ubuntu 9.10 安裝FireFox 3.6

sudo tar -C /opt/ -xf FireFox3.6的.tar.bz2


sudo ln -sf /opt/firefox/firefox /usr/bin/firefox

2010年3月10日 星期三

2010年1月7日 星期四

用IP查詢服務的ISP

台灣 IP 網段分配列表 (查某 IP 是哪家 ISP)
列出台灣IPv4 網段各公司分配列表
http://rms.twnic.net.tw/twnic/User/M...p?Order=ORG.ID

也可輸入 IP 後直接列出該 IP 屬於哪家 ISP
http://rms.twnic.net.tw/twnic/login.jsp

2009年12月30日 星期三

Google Weather API使用

hl => 語系
country => 國家

取得國家列表
http://www.google.com/ig/countries?output=xml&hl=zh-tw

取得城市列表
ex: 台灣的城市列表
http://www.google.com/ig/cities?output=xml&hl=en&country=tw

取得天氣的方式可以

1.由zipcode (for 美國地區)
ex: 美國加州山景城 zipcode= 94043
http://www.google.com/ig/api?weather=94043

2.經緯度
ex: 高雄(22625108,120308954)
http://www.google.com/ig/api?&weather=,,,22625108,120308954

3.城市名
ex: 高雄(Kaohsiung)
http://www.google.com/ig/api?&weather=Kaohsiung