2012年12月12日 星期三

HTML使用UTF-8編碼

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">

Eclipse設定預設編碼

[Apache] 重定向到子目錄

在根目錄的.htaccess中加入:

<IfModule mod_rewrite.c>

  Options +FollowSymLinks
  RewriteEngine On

  # Some web host will need RewriteBase
  # RewriteBase /

  # Skip if exist file
  RewriteCond %{REQUEST_FILENAME} !-f

  # Skip if exist directory
  RewriteCond %{REQUEST_FILENAME} !-d

  # Redirect all to "/public"
  RewriteRule ^(.*)$ /public/$1 [L]

</IfModule>

XAMPP設定VirtualHost

在httpd.conf加入:

<virtualhost>

  # Virtual host name
  ServerName dev.localhost

  <Directory "C:/www">
    # Allow .htaccess
    AllowOverride all

    # Enable access while directory is outside htdocs
    Require all granted
  </Directory>
</VirtualHost>

在%SystemRoot%\system32\drivers\etc\hosts加入:

127.0.0.1       dev.localhost # IPv4
::1             localhost # IPv6

2012年9月24日 星期一

對HTC感到很失望…

本人反映了一點意見給HTC:

  對貴公司對於Desire HD不提供Android 4的升級,說什麼因為升級會導致使用者分區資料會流失而不提供升級,就不可以讓用家自己決定升級與否嗎?貴公司有了這個非常好的決定,我也決定以後 【永 遠 永 遠 不 會】 再購買貴公司的產品了,真的很後悔買了2台HTC的手機,當時Desire HD還是貴公司的旗艦機型,貴客服向不向高層反映也沒關係了

本身Desire HD也有很多小問題,已經令我有點後悔…同時期出的Samsung S2感覺好很多耶,價格也不是差很遠

2012年9月10日 星期一

一個巴士意外領悟到的道理

有一個人乘坐一輛巴士進入山區,他打算在中途下車,他下車後,巴士繼續往前駛。
巴士行駛途中,一塊大石從高處墜下並將巴士壓得粉碎,所有乘客無一生還。
他看到之後有點自責的說︰「如果我沒有下車就好了…」
一般人都會想說:「還好我下車了!不然我死定了…」
您認為他為什麼會這樣說?

先想想再看答案