153 月 2017 by Bryce No Comments 如何理解Laravel 的IoC容器 Paper 學習laravel快一年了,到現在才去研究laravel 的核心'容器IOC' 這些概念。 寫項目的時候有大概看看關於IOC 文章, 但是沒有深入理解,只是有個概念歐趕著寫代碼,雖然code也寫的很菜… 這幾天花了點時間研究了一下laravel 的核心'服務容... Read More
212 月 2017 by Bryce No Comments [codeigniter] 使用Google Service Account & Google Bigquery API 下載資料 codeigniter 在codeigniter中使用google client library倒不是什麼難事,但使用Google Service Account比較少人提到,多數人都是撈回GA;剛好最近有機會實作取得Bigquery,順手寫一下筆記。 (閱讀全文...) Read More
142 月 2017 by Bryce No Comments [codeigniter] 使用ftps上傳資料 codeigniter ftps (FTPS是一種以擴展常用的文件傳輸協議(FTP)的添加了對傳輸層安全性(TLS)和安全套接字層(SSL)的加密協議的支持。)本身無法使用CI內建的lib去作,需要額外自己建一個libraries。 (閱讀全文...) Read More
1612 月 2016 by Bryce No Comments Google Analytics API interface for CodeIgniter codeigniter 最近公司執行一個專案,是需要使用CodeIgniter搭配Google Api的,其中GA是主要功能之一,順手整理一下目前用到的 (閱讀全文...) Read More
2410 月 2016 by Bryce No Comments MySQL 自動補零 MySQL 數字 文字 畫面 8 8 調整 8 0000000008 數字在轉換成文字後,會如上表中的畫面行所示,也是只看到一個8,但實際上在8的左手邊,(注意:有時因資料轉換不同,而在右手邊) 其實有n個空白存在,我們把每個空... Read More
0710 月 2016 by Bryce No Comments 一般虛擬主機上跑Laravel Laravel 一般虛擬主機上要能跑Laravel是比較麻煩的,需要透過.htaccess來作一些設定(其實就是指向) (閱讀全文...) Read More
239 月 2016 by Bryce No Comments Laravel 5 如何查看的所有資料庫請求 Laravel Laravel 有一套特別靈活的資料庫操作方案,這邊介紹一個簡單的方法來獲取到所有的SQL 語句 (閱讀全文...) Read More
168 月 2016 by Bryce 3 Comments Laravel 5 使用 DB-RAW SQL搭配 Pagination 自動分頁功能 Laravel 有個SQL的存取資料是使用DB-RAW SQL的寫法而不是ORM,如下 [crayon-600f54de65d34770707266/] 不用ORM的寫法但又想使用Pagination的自動分頁便利功能,只好自己來了。 (閱讀全文...) Read More
038 月 2016 by Bryce No Comments npm install bower (windows) Server 出現: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue (閱讀全文...) Read More
297 月 2016 by Bryce No Comments MYSQL – 由B表更新至A表 MySQL 有2張TABLE:A、B 要由B表的資料更新至A表,MYSQL的寫法為: [crayon-600f54de6611b941168594/] 參考: mysql update column with value from another table Read More