March 2011 Archives

MSN Weather API

user-pic
Vote 0 Votes

從 3/22 開始, 使用 Google Weather API 就抓不到台中的資料, 不曉得為什麼, 其他城市正常
http://www.google.com.tw/ig/api?weather=Taichung
會顯示「資訊暫時無法使用」
只好改用 MSN 的 API, 回傳的結果一樣是 XML
http://weather.msn.com/data.aspx?wealocations=wc:TWXX0019&weadegreetype=C
wc: 後面接城市代碼, 上例 TWXX0019 就是台中, weadegreetype=C 是℃
其他城市代碼可以在 weather.com 找到,
這裡 也有人貼了清單

使用 PHP 取得台中的溫度、濕度
$xml = simplexml_load_file('http://weather.msn.com/data.aspx?wealocations=wc:TWXX0019&weadegreetype=C');
$current = $xml->xpath("/weatherdata/weather");
$temperature=$current[0]->current[temperature];
$humidity=$current[0]->current[humidity];

ShutterCounter.com

user-pic
Vote 0 Votes

ShutterCounter.com 是個人自製的網站, 功能只有一個,
上傳 DSLR 的照片, 顯示快門數及 EXIF 資訊
使用 Firefox, Chrome 支援拖曳上傳照片
支援 RAW 檔, Nikon's NEF, Pentax's DNG and PEF, Canon's CR2
並非所有的 DSLR 照片都有快門數(Shutter Count)資訊,
若無此資訊會顯示 No shutter count info found...
按確定可以顯示 EXIF 資訊
ShutterCounter.com 不會儲存您的照片, 取得 EXIF 後便立即刪除.

ShutterCounter.com was created by me,
The only feature is upload DLSR photo and show shutter count and EXIF info,
Drag-and-drop is supported in Firefox, Chrome.
Nikon's NEF, Pentax's DNG and PEF, Canon's CR2 raw file format are supported.
Not all DSLR photos have shutter count info, If no such tag,
will show "No shutter count info found..."
click OK to show EXIF info.
ShutterCounter.com will never save your photos, just extract EXIF info and then delete immediately.

ShutterCounter.com

Drag a photo to upload

Uploading

Show shutter counter

Show EXIF info

Firefox 4 in Windows 7/XP

user-pic
Vote 0 Votes

在 Windows 7 看起來是新的介面

在 Windows XP 看起來跟 Firefox 3 沒什麼不同

Firefox 4 silent install

user-pic
Vote 0 Votes

"Firefox Setup 4.0.exe" -ms

same as Firefox 3

Xshell

user-pic
Vote 0 Votes

Xshell 是多 Tab 的 SSH/TELNET/Serial 連線程式,
家用及學術使用免費.
在 UTF-8 環境下中文相容性還不錯, Terminal / Encoding 記得要選 Unicode (UTF-8)

有支援 ZMODEM 方式的傳檔(rz), 而且可以拖曳上傳, 超方便的.

Increase Linux ARP cache size

user-pic
Vote 0 Votes

若在 Linux 使用網路遇到 No Buffer Space avaiable, 就是 ARP cache table 滿了,
預設值是 1024, 若要調大成四倍, 可以下指令
sysctl -w net.ipv4.neigh.default.gc_thresh1=512
sysctl -w net.ipv4.neigh.default.gc_thresh2=2048
sysctl -w net.ipv4.neigh.default.gc_thresh3=4096

加到 /etc/sysctl.conf 可以使下次開機生效
echo "net.ipv4.neigh.default.gc_thresh1=512
net.ipv4.neigh.default.gc_thresh2=2048
net.ipv4.neigh.default.gc_thresh3=4096" >> /etc/sysctl.conf

gc_thresh1
The minimum number of entries to keep in the ARP cache. The garbage collector will not run if there are fewer than this number of entries in the cache. Defaults to 128.
gc_thresh2
The soft maximum number of entries to keep in the ARP cache. The garbage collector will allow the number of entries to exceed this for 5 seconds before collection will be performed. Defaults to 512.
gc_thresh3
The hard maximum number of entries to keep in the ARP cache. The garbage collector will always run if there are more than this number of entries in the cache. Defaults to 1024.

ref. Manage of ARP

Firefox 4.0 English Version
Firefox 4.0 繁體中文版
比預定的時間早一天, 果然比 3.x 版快一些
Tips:
按 F10 可以叫出選單
按 Ctrl+/ 可以叫出附加原件列(原來的狀態列)

Charset Switcher 4.0.20101120
支援自訂網站的預設字元編碼

FireGestures 1.6.1
用滑鼠手勢劃出各種功能。

IE Tab 2 2.12.21.1
增強版的 IE Tab,讓您可以直接在 Firefox 分頁中以內嵌的 IE 引擎,瀏覽 IE Only 的網頁!

QuickDrag 2.1.0.1
擴充滑鼠拖放的功能,開啟鏈結、搜尋選取的文字,或儲存頁面上的圖片。

Tab Mix Lite 4.0
輕巧方便的分頁擴充套件

Xmarks 3.9.5
同步您的書籤、發現網路新鮮事!

IE9 vs Chrome 10 vs Firefox 4 RC vs Opera 11.01 vs Safari 5 - The BIG browser benchmark! | ZDNet
這篇文章的測試結果, IE9 32bit 的效能都比 64bit 優秀許多,
可惜 64bit Windows 不能裝

2011-03-20 Update:
網友補充說裝64位元系後會有32位元及64位元版本,
的確是如此, 一直沒注意到

九陽豆漿機 在台灣算是滿熱銷的產品, 的確是滿好用的產品,
煮出來的豆漿滿濃郁的, 網路上的評價也還不錯,
沒想到買不到三個月就出現一直加熱, 不會磨豆的狀況.
台灣的代理商是 特力集團, 打服務專線: 0800-365-588 去問如何送修,
結果回覆說送修需經由經銷商, 不能直接送, 而且維修點只有台北有,
我是在 PChome 買的, 於是向 PChome 詢問回覆如下
您好:
敬請您將問題商品妥善包裝後,宅配或是郵局掛號寄回廠商處檢測
〈如有人為損壞的維修,廠商會提供報價,屆時您再參考是否付費維修〉。
◎請記得一定要附上您的訂單號碼、姓名、電話、地址及故障狀況,以利廠商後續與您連繫~
※請附上購買發票影本 or PChome 購買證明
廠商資料如下─
廠商名稱:集利購國際企業有限公司
廠商地址:台北縣中和市板南路132號2樓
廠商電話:8245-1600#22

用黑貓整箱寄回去價格是 160, 給大家參考

2011-03-29 Update: 從 3/5 寄到換基板送修回來 3/24, 前後不算的話, 中間還有 19 天, 實在太久了, 效率有待加強

壹電視網樂通流量

user-pic
Vote 0 Votes


這張圖觀測角度是 Switch, 所以藍線是下載, 綠色是上傳
回看的流量大概 2M 左右, 回看是直接從 Server 下來的,
Live 頻道大概 1.5M-2M 左右, 若上傳頻寬大的話, 可是會吃很兇的, 上圖上傳到 3.88M (表示看的人多)
之前有測過最低上傳需求約 64K, 高於這個值就不會 Lag 了
若不想讓網樂通佔那麼大的上傳, 可以用網管型 Switch 或有頻寬管理功能的分享器鎖頻寬

Google's Self-Driving Car

user-pic
Vote 0 Votes

看來離霹靂車的日子不遠了
自動駕駛可以當成輔助工具, 駕駛累了可以讓電腦代工一下
技術成熟的話完全取代人也是指日可待




ref. Google's self-driving cars take TED attendees for a wild ride

Google Calendar Sync

user-pic
Vote 0 Votes

Google Calendar Sync 可以同步 Google Calendar 與 Microsoft Outlook 的行事曆, 真是超好用
可以設定雙向同步或單向同步
Google Calendar to Microsoft Outlook calendar 或
Microsoft Outlook calendar to Google Calendar
把 Microsoft Outlook calendar 同步到 Google Calendar 的還可以有簡訊通知(如果有設定的話)

XZ compression format

user-pic
Vote 0 Votes

xz 格式壓縮率比 bzip2 還高,
XZ Utils 所提供的 Source tar ball 來看,
xz 格式是 bzip2 格式的 88%, gz 格式的 72%

XZ Utils 網站上有 Windows 版的 CLI 工具
單解 xz 檔範
xz -d FreeBSD-8.2-RELEASE-i386-dvd1.iso.xz

xzdec FreeBSD-8.2-RELEASE-i386-dvd1.iso.xz > FreeBSD-8.2-RELEASE-i386-dvd1.iso

tar 從 1.22 版才開始支援 xz, 不過是呼叫 xz 來使用, 不是原生支援 xz
打包壓縮
tar cJf file.tar.xz files
解壓
tar Jxvf file.tar.xz

若 tar 比較較不支援 xz, 解 tar.xz 方法
xzdec file.tar.xz | tar xv

In most distro, Procmail does not support large file by default,
If your mailbox file larger then 2G, you may see maillog like
(can't create user output file. Command output: procmail: Couldn't create "/var/spool/mail/user" )
You have to recompile Procmail using
make CFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE'
then Procmail can handle mailbox file larger then 2G.

ref. LargeFile Support

About this Archive

This page is an archive of entries from March 2011 listed from newest to oldest.

February 2011 is the previous archive.

April 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives