Windows 磁碟重組程式 - IObit SmartDefrag

家裡的電腦開 Windows 時, 實在慢到受不了, 想想似乎重灌好到現在, 從沒跑過磁碟重組工具, Windows 內建的磁碟重組工具跑一次要好久. :~~

閱讀全文〈Windows 磁碟重組程式 - IObit SmartDefrag〉

PHP 符合 RFC 規範的 Email 驗證程式

要驗證 Email 是否符合規格, 大部分是使用下面的簡單 Regular expression 來作驗證 (下面兩者 regex 是一樣的, 只是 php / rails 版的寫法而已)

  • preg_match('/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/', $email) // 正確: true, 錯誤: false
  • validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :message => '格式錯誤'

使用上述的檢查後, 再加上 PHP 驗證 Email -檢查 DNS 的 MX 是否有通, 再來就該直接寄信去驗證了.

閱讀全文〈PHP 符合 RFC 規範的 Email 驗證程式〉

Vim 樹狀目錄外掛: NERDTree

現在的編輯器左邊通常都會是檔案的列表, Vim 要呈現這個效果只要 :vsp ./ 就可以達到, Enter 後也會自動將檔案載入並開啟編輯, 不過視窗並沒有一直滯留在旁邊, 要開啟多個檔案就會比較麻煩, 有些狀況是想要將檔案開啟到 Vim 的 Tab 去, 就有點問題.

閱讀全文〈Vim 樹狀目錄外掛: NERDTree〉

WordPress Login 出現 403 Error 解法 (Bad Behavior)

WordPress Login 出現下述的錯誤:

Error 403

We're sorry, but we could not fulfill your request for /wp-login.php on this server.

Your Internet Protocol address is listed on a blacklist of addresses involved in malicious or illegal activity. See the listing below for more details on specific blacklists and removal procedures.

Your technical support key is: xxxx-xxxx-xxxx-xxxx

You can use this key to fix this problem yourself.

If you are unable to fix the problem yourself, please contact xxx at domain.com and be sure to provide the technical support key shown above.

閱讀全文〈WordPress Login 出現 403 Error 解法 (Bad Behavior)〉

將 FeedBurner 帳戶 與 Google 整合搬移

FeedBurner 主要是幫你 host RSS feed 等資訊, 當你要換主機、換程式時, 使用者不需要另外更換訂閱的 RSS 位址, 還是可以收的到你的資訊.

但是最近我發現 FeedBurner 的訂閱數字好像怪怪的, 一天內從 600 -> 120, 要不是我的文章突然間都沒有人要看了, 就是 FeedBurner 可能有點小問題, 所以先當做是後者吧. XD

閱讀全文〈將 FeedBurner 帳戶 與 Google 整合搬移〉