跳到主要內容

發表文章

目前顯示的是 3月, 2013的文章

[DNS] 防止email偽造網址

最近常常收到有人偽造我的email寄出信件, 那經過google大神查過 發現可以在DNS上面社spg的資料 來避免有人偽造email address亂寄信 設定如下 在DNS中設定一個TXT形式的數值 Value為spf1 ip4:127.0.0.1/25~all 如 gallerymax.net. TXT v=spf1 ip4:127.0.0.1/25~all

[FB api] FB API 使用者的scope設定

The User object has the following fields: Name Description id The user's Facebook ID name The user's full name first_name The user's first name middle_name The user's middle name last_name The user's last name gender The user's gender: female ormale locale The user's locale languages The user's languages link The URL of the profile for the user on Facebook username The user's Facebook username age_range The user's age range; only returned if specifically requested via the fields URL parameter third_party_id An anonymous, but unique identifier for the user; only returned if specifically requested via the fields URL parameter i

[Web] CKeditor blank space at beginning of textareas / Textarea最前面多出空白

用Ckeditor在編輯內容完存入資料庫的時候, 往往會在內容的html前面加上 <p></p> 空行符號 這樣在呈現頁面的時候往往會上畫面上多出一個空白 可以在ckeditor的 config.js中加入以下兩行 config.shiftEnterMode = CKEDITOR.ENTER_BR; config.enterMode = CKEDITOR.ENTER_BR; 就可以解決的這個問題