If keyCode is not caught, catch which:
- 12月 24 週一 201808:23
jquery disable form submit on enter
If keyCode is not caught, catch which:
- 10月 15 週一 201815:49
Ubuntu 18.04 安裝中文輸入法
在Linux桌面需要輸入中文卻沒有中文輸入法的時候是很頭痛的事情
這邊分享如何安裝中文輸入法?
這邊分享如何安裝中文輸入法?
- 9月 09 週日 201808:27
如何在 C# 像 C語言一樣使用 __LINE__ 取得所在行數?
如何在 C# 像 C語言一樣使用 __LINE__ 取得所在行數?
- 9月 06 週四 201811:45
Command-line scripts in Laravel?
I have some command line scripts that I would like to modify to use Laravel's features (Eloquent etc).
How do I do that? I am aware that Laravel bootstraps from the index.html file. Is there any provision for running command-line apps / scripts?
- 5月 03 週三 201722:34
解決 barryvdh/laravel-dompdf PDF中文顯示問題

在 Laravel 使用 barryvdh/laravel-dompdf package 產生 PDF 時, 會有中文顯示的問題
之前花了不少時間, 總算是有一個比較好的解決方式!
不過中文的問題解決了!還有因為轉出內容過大導致記憶體不足的問題, 而產生 crash 導致無法產出PDF檔案的問題, 則是另一個需要解決的難題了!
願善心人士可以分享解決方式, 謝謝!
以下整理 barryvdh/laravel-dompdf package 之 PDF 中文的問題
不確定怎麼發生 Table 'performance_schema.session_variables' doesn't exist 的問題!
但因為造成無法匯入資料影響工作進度,所以爬文試圖解決!
但因為造成無法匯入資料影響工作進度,所以爬文試圖解決!
- 3月 05 週日 201722:57
Google Short URL API for Laravel
由於需要寫自動將網址轉成 google 短網址, 所以需要用到 Google Short URL api, 正巧使用的是 Laravel, 所以就順勢搜尋有沒有現成的 package 可以使用, 沒想到居然真的有, 那就不要浪費!直接給他用下去!
Laravel Package for Google Short URL API -> https://github.com/mbarwick83/shorty
Laravel Package for Google Short URL API -> https://github.com/mbarwick83/shorty
- 12月 12 週一 201622:54
為人父的期待與喜悅

轉眼間已經破百開始到數了...人生第一次的破百倒數是當兵屆退伍的日子,在部隊退伍前三個月就升上兵,終於是走路有風、閒著無事到處晃的日子。
人生第二次的倒數就從今天開始,小皮球在99天就要出生,有著為人父的喜悅,說不緊張是騙人的。
- 11月 07 週一 201623:41
Error in mysql when setting default value for DATE or DATETIME
I'm running MySql Server 5.7.11 and this sentence:
updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00'is not working. Giving the error:
ERROR 1067 (42000): Invalid default value for 'updated'But the following:
updated datetime NOT NULL DEFAULT '1000-01-01 00:00:00'just works.
The same case for DATE.
As a sidenote, it is mentioned in the mysql docs:
The DATE type is used for values with a date part but no time part. MySQL retrieves and displays DATE values in 'YYYY-MM-DD' format. The supported range is '1000-01-01' to '9999-12-31'.
even if they also say:
Invalid DATE, DATETIME, or TIMESTAMP values are converted to the “zero” value of the appropriate type ('0000-00-00' or '0000-00-00 00:00:00').
Having also into account the second quote from mysql documentation, could anyone let me know why it is giving that error?
- 10月 08 週六 201608:36
[Laravel] Add new column migrate to database
To create a migration, you may use the migrate:make command on the Artisan CLI. Use a specific name to avoid clashing with existing models
for Laravel 3:
for Laravel 3: