發表文章

利用facebook id取得使用者的照片

把id改成你抓到的facebook id http://graph.facebook.com/" + id + "/picture?type=large *原本用user_photos想抓到使用者的大頭貼 結果抓到大量的相簿圖資 沒有我要的 殊不知這麼簡單

MySQL資料庫解法 Numeric value out of range: 1264 Out of range value for column

遇到問題 error:Numeric value out of range: 1264 Out of range value for column 解法 遇到問題資料庫insert時錯誤 原型態為int 因資料長度太長 改mediument或text型態即可解決

php 時間抓取(這禮拜的第一天)

利用星期取得這個禮拜天的日期 date("Ymd",strtotime("-".date("w",time())." day"));

android studio 上傳更新github

圖片
先到設定裡面 把git的功能開出來 在專案上面按右鍵git/commit directory 上面可以看上傳的檔案 下面可以做更新的紀錄  按右鍵git/respositroy/push 可以看到要上傳的專案,點擊右邊可以看到更改的地方 按下push就可以完成上傳

從Github引用檔案到Android Studio

圖片
點選File/new/project from version control/github 從github複製網址 ​ 貼到git respository url裡 parent directory:檔案路徑 directory name:專案名稱 ​ 按下clone即可引入