好用的數據分析工具:statcounter
Statcounter可以提供各家作業系統/瀏覽器的市占率,可以參考
Statcounter可以提供各家作業系統/瀏覽器的市占率,可以參考
以下是php composer 安裝,替自己做點筆記
cd /your-project curl -s https://getcomposer.org/installer | php
以下是筆記:
一.修改Gemfile
gem 'rmagick', '2.13.2'
二.安裝必要套件
sudo apt-get install imagemagick libmagickcore-dev
在Ruby on Rails環境下要發送email,以下是步驟:
一.修改設定檔
修改config/application.rb,加入以下
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: 'smtp.gmail.com' , port: 587 , domain: 'gmail.com' , user_name: 'your mail address' , password: 'your mail password' , authentication: 'plain' , enable_starttls_auto: true } |
Continue reading “Ruby on Rails:使用Action Mailer寄信(使用 google smtp)”
Ubnetbootin是可以讓你快速燒錄開機USB的好工具,以下是燒錄UBUNTU步驟
Continue reading “使用Unetbootin燒錄Ubuntu開機USB”
在VIM編輯器中若要進行縮排,以下可以參考
在.vimrc中加入以下指令
filetype plugin indent on
set cindent shiftwidth=4
然後在編輯檔案時,輸入以下指令
gg #移動到最上層
v #進入visual模式
G #跳到最後一行,相當於全選
最後輸入 = ,它就幫妳縮排好啦!!
以上提供參考~
繼Underscore.js詳解第一篇: Collections後,這是第二篇,Underscore的Array method各個用法如下:
_.first(array, [n])
Alias: head, take
說明:回傳陣列元素值,n為指定回傳幾個
ex.
_.first([5, 4, 3, 2, 1]); => 5 _.first([5, 4, 3, 2, 1],3); => [5,4,3]
以前在傳統開發網站的時候,若你沒有用framework來開發,通常會有以下的問題:
1.code骯髒,可讀性很差
2.global變數誤用可能性很高
3.缺乏完整的網站架構,debug困難
4.須考慮各種安全性問題,諸如sql injection
5.html跟程式碼混在一起
……
諸如此類的問題層出不窮。
Continue reading “何謂MVC Framework?(以cakephp為例)”
Cakephp是一套MVC Framework,它很容易安裝,也是我有在使用的PHP MVC Framework,以下是安裝步驟
一、先把LAMP開發環境架構安裝好
可參考此篇文章
在ubuntu(12.0LTS)上安裝Apache+Php+Mysql+Phpmyadmin
二、下載Cakephp
可至Cakephp的Github上下載
https://github.com/cakephp/cakephp/tags
下載後解壓縮至妳的網站跟目錄即可。
Continue reading “在Ubuntu(12.04)上安裝Cakephp”