richliu's blog

Linux, 工作, 生活.

richliu's blog header image 4

Entries from 二月 2009

[Linux] binary file compare

二月 24th, 2009 · 2 Comments

Linux 下 binary 相關的工具如下..
hexdump:
將 hex 值dump 出來
最快的比較方式就是, hexdump file 輸出到文字檔之後, 再比較
hexedit:
修改 binary file.
常用指令
F2: Save
Ctrl + > 到檔案最尾端
Ctrl + s : Search, 找 binary  string , ex: 『aabbccddee』
Ctrl + x : Save and Exit
vbindiff
視窗型的 binary diff 工具
dhex
同上, 不過 ubuntu 應該沒有收錄
cmp
$ cmp file1 file2 -l
這樣會列出兩個 binary file 的差異處.
vim
用 vimdiff 之後
再下command (兩邊的視窗都要下)
:%!xxd
就解決了.
vim 的介面算很親切的.

Tags: binary, cmp, compare, dhex, diff, [...]

[Read more →]

Tags: UNIX

[Android] 快樂的 Android 體驗

二月 21st, 2009 · 2 Comments

由這些圖集可以知道, 使用 Android 手機是非常快樂的體驗 (大誤)
內有限制級圖片, 未成年請由父母陪同觀賞

Tags: Android, 家人, 睿睿

[Read more →]

Tags: Android · 家人

[網站] 今年過年最有年味的網站

二月 8th, 2009 · No Comments

卡優新聞網,
當然要仔細去研究 UI 設計那就要考慮很久了.
不過那幅大大的對聯實在是非常有過年的感覺~
美中不足大概就是沒有橫幅吧.
年紀愈大愈討厭過洋人的節日. 所以我們的節日一定要推一下的 !!

Tags: 新年, 網站

[Read more →]

Tags: 隨手札記

Wordpress A href 的問題

二月 7th, 2009 · No Comments

今天 ijliao長輩丟訊息過來詢問, 為什麼從我這邊過去的反向連結有問題.
主要的問題是
<a href=』http://b6s.blogspot.com/2005/01/blog-post_18.html’ rel=’external nofollow』
a href=』 到 nofollow』 兩邊用的是雙引號, 但是中間是用單引號
在長輩指導之後, 猜測可能是 Google Analyze Plugin 的問題
我是使用
Google Analytics Plugin for Wordpress
後來換個 wordpress plugin 上找到的
Google Analytics for WordPress
這樣就沒有問題了.
No tag for this post.

[Read more →]

Tags: BLOG

海盜灣(Pirate Bay)的連線地理地圖

二月 5th, 2009 · No Comments

網站連結
Pirate Bay 公佈了連線地理地圖. The Pirate Bay Maps Out its Tracker Connections
文中提到
33% of all connections come from China – around 7 million peers.
The tracker seems to be popular elsewhere in Asia also, with 5.9% of connections coming from Taiwan and 4.2% from Japan at the time of writing.
看起來我們的同胞提供了大量的連線, 將近 1/3 都是從中國大陸來的.
以人口數比例比, 台灣應該算是很高的,  我猜可能是不平均的上下傳比延長了連線時間? 所以 connections 比較高? [...]

[Read more →]

Tags: Network

[Android] Android Firmware Update

二月 4th, 2009 · 2 Comments

今天一時興起, 先來升級 ADP1(Android Dev Phone ) 的 Firmware

首先按 Photo 鍵 + 開機進工模
出現 Serial 0 的字樣之後, 按 back 到 FASTBOOT 模式
用 x86 tool 下的 fastboot 燒錄
# ./fastboot flash boot boot.img
# ./fastboot flash system syetm.img
# ./fastboot reboot

至於 Image 可以到以下的地方找

ADP Offical Image
杯子蛋糕(Cupcake, Android 1.5)
Android rom images JFv1.41 Released!

現在玩 Cupcake 雖然有中文選單, 有虛擬鍵盤, 不過沒有 Google Market.
之前有人講 Wireless 有問題, 不過二月的版本應該己經解決了.
我自己編的 [...]

[Read more →]

Tags: Android