跳到主要內容

發表文章

[JS Frame] angular js

今天在保哥的FB上看到簡單的介紹 Angular JS 只細看一下真的是個很好用的東西 以後寫js跟html的互動就跟寫in-line code的php asp一樣方便 真的太棒了。 不過還沒有時間好好研究 先留個檔 有空好好研究看看。 保哥的介紹:前端工程的極致精品: AngularJS 開發框架介紹

[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; 就可以解決的這個問題

[Chrome] Chrome 12px字體大小限制

CCS設定字體小於12px在Chrome呈現時會出現字體沒辦法小於12pt的狀況 這個時候就可以在CSS設定中加上 -webkit-text-size-adjust:none; 就可以讓字體縮小到12px以下 但這樣設定之後 字體大小就會固定在那個大小 不會隨著chrome的放大縮小功能隨之放大縮小

[Programer] What is Framework?

做程式開發目前的主流都適用Framwork 來開發, 但是今天遇到一個朋友在問什麼是Framework?? Framework基本上是一個讓開發系統 省時省力又容易使用的架構 wiki 上是這麼說明的 A software framework is a universal, reusable  software platform  used to develop applications, products and solutions. Software frameworks include support programs, compilers, code libraries, an  application programming interface (API)  and tool sets that bring together all the different components to enable development of a project or solution. 基本可是算是一個系統開發過程的基礎設施 這個可以用積木來比喻 再用積木建構物件的時候 是可以用積木一塊一塊的組合了起來 但是如果你想蓋的房子 用積木積木慢慢做 還要設計窗戶跟門這些東西 會很花時間 這時候如果有人已經做好窗戶的積木 門的積木 你自己拿來用 這樣不救蓋起房子快很多了嗎? 在程式開發中也是這樣 很多功能你都可以自己寫 但是有些時候某先常用功能都有人寫好 而且包成一整套 那這樣只接這這個一整套的套件 開發起來救迅速很多了 而這套件 就是framework