Friday, March 23, 2012

[mail] 信件亂碼問題 in Mac

回想起常跟老外說到電腦的亂碼,我都會用Random Code來形容,但通常還是要解釋很久,

隨著時間過去看到許多文章才知道,亂碼其實也有專有名詞叫Mojabake來自於日語。

http://en.wikipedia.org/wiki/Mojibake

但其實說這個也並不是很多人知道意思。哈哈。

不過,現在主題是在於如何解決信件亂碼問題。

其實方法有兩種,

第一種是直接將文章重新解碼,這需要其他程式來完成。

第二種方式就是選擇編碼方式重新觀看。

Screen Shot 2012-03-23 at 下午5.47.58

 

 

 

 

 

 

 

在Mac的mail有這樣的功能,可以透過設定來改變觀看格式。

其實主要造成這個問題的原因,是在於在寄出信件時會附上信件格式,

但傳送到不同預設值的系統時就會發生問題,於是需要手動調整來正確顯示。

Mojibake is often caused when a character encoding is not correctly tagged in a document, or when a document is moved to a system with a different default encoding.

Tuesday, March 13, 2012

next/last page with shortcut in mac

Mac lion 10.7.3.

⌥+四指左右滑

 

http://macuknow.com/node/12687

Thursday, March 8, 2012

take icon off from system bar

press Control + command with mousing on icon.

Mac OS X Lion 10.7.

Monday, March 5, 2012

Qt Build Error: g++-4.2: No such file or directory

更新軟體,同步Xcode和QT版本。

http://stackoverflow.com/questions/8860105/qt-build-error-g-4-2-no-such-file-or-directory

 

Saturday, November 5, 2011

problem of apt-get install


E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

rm /var/lib/dpkg/lock
rm /var/cache/apt/archives/lock
sudo dpkg --configure -a


Reference
http://www.linuxquestions.org/questions/linux-newbie-8/e-could-not-get-lock-var-lib-dpkg-lock-open-11-resource-temporarily-unavailable-360554/

Apache in linux Ubuntu(2)

403 Forbidden
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>



權限問題
drwx------

chmod 707

Reference 
http://ubuntuforums.org/archive/index.php/t-763605.html
http://linux.vbird.org/linux_basic/0210filepermission.php
http://klaus580925.pixnet.net/blog/post/28185261-%5B伺服器的背叛%5D---解決-apache-的-403-forbidden-問

Apache in linux Ubuntu(1)


root@chihhang-desktop:/etc# ./init.d/apache2 restart

Error message 
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
   ...done.
Solve
   vi /etc/apache2/httpd.conf
ServerName localhost 

http://plus-now.com/?p=4

Successful message
 * Restarting web server apache2
 ... waiting    ...done.


Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...