Git Error Unlink of File failed. Should I try again?
久不久我使用的 Git 便會出現以下問題 Unlink of file. ’ file path and name’ failed. Should I try again? (y/n)
久不久我使用的 Git 便會出現以下問題 Unlink of file. ’ file path and name’ failed. Should I try again? (y/n)
今日 Update WordPress 既時候出現了 輸入 FTP 資料的畫面 To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not …
如果有用開source control, 做 code view 或 compare files 時 whitespace / Tab 會造成一些不必要既麻煩 很多IDE 都有一些設定或 plugin 可以在你儲存檔案時除去尾隨空格 在Visual Studio Code 有一些很好用的 settings 大家可在 Settings 上搜尋 …
今日發現自從把 wordpress 轉了用 docker host 之後便不能 upload file 原因是我把之 wordpress site 的檔案從 FTP upload 到新 server 的 uploads folder 的 ownership 是我 FTP 的 user 名 而不是 run wordpress 的 www-data
今日在Code Review 同事的 Code 時候發現了一個有趣的寫法 他想做的是 Return 一個Distinct 左既 List Of Object 好直接既想法是使用 Distinct List.Distinct(); 之後發現 Distinct 是不能 Distinct Object 的 同事的寫法是用了 List 加 GroupBy 和 …
今日嘗試使用 EF Core with MySQL 時出現了以下的錯誤信息: MySql.Data.MySqlClient.MySqlException HResult=0x80004005 Message=Specified key was too long; max key length is 3072 bytes Source=MySql.Data …
今日公司個 Production project 有一個 Bug 但係在 Staging 和 UAT environment 都 replicate 唔到呢個問題.. 之後便用Git Blame 去檢查一下有什麼 code change 再看看是那一個 commit 做了 code change 找到 commit 之後 便要嘗試去看看這個commit …
最近我的Visual Studio 的 CodeLens 沒有再顯示 Class/ Method 有多 reference .. 只係顯示了 “-”… 十分不方便 做了一會 research 之後發現解決方法十分簡單 我們只要洗除電腦的 Temporary files
今日嘗試在 git 上加入之前 用 .gitignore Ignore 左既 個 project folder 入面的 .vscode資料夾 剛剛更新了 project 入面的 workspace setting 而在VS Code 的 workspace setting 是儲存在 .vscode/settings.json 上 要把這個檔案加回 …
今日需要 Share 一個比較大既 File 給國內的朋友 之前國內是可以連接 Microsoft One Drive 的 最近唔知點解又有 connection 問題 嘗試使用 WeChat share 檔案 可以過了 File Size 上限 最後想到用使用自己的 VPS 用 Docker 起一個簡單的 web server 用來 serve 這個檔案