今日想和大家分享一個 幾有用的TSQL Command, 去 Release 返一些SQL Server 佔用的空間 Transaction log 和Database file -- select database USE Production; -- Change the recovery mode to SIMPLE, to clear the transaction log ALTER DATABASE Production SET RECOVERY SIMPLE ; -- shrink database to release space DBCC SHRINKDATABASE (Production, 1); Hope you find it useful
解決方去 我們可以在 local 的 Git Repos 上設定這個 Repos 的Git Credential 我們只需要在 Git Bash上輸入以下指令便可以了 git config user.name "YOUR_USERNAME" git config user.email "YOUR_EMAIL" 如果大家不想每次都要輸入password 的話可以輸入以下Git command 去 cache 你的 git password git config credential.helper cache Hope you find it useful
今日剛在Bitbucket 建立左一個新既 repos 當我嘗試 push local 的一個 git repos上去既時候出現了以下的錯誤信息 (當我嘗試 Pull 這個 repos 去 local 的 repos 時) “fatal: refusing to merge unrelated histories”
解決方法十分簡單: 我們可以去 “File” -> “Preferences” -> “Settings” 的 “User Settings” 上把 “editor.minimap.enabled” 設定為 false 便可以了 editor.minimap.enabled": false, Hope you find it useful
解決方法十分簡單 我們可以使用 這個功能來解決這個問題 E.G. string y = "1,2,3,4,5,6,"; Console.WriteLine(y.TrimEnd(',')); Hope you find it useful
在這間公司工作.. 我學會了很多 command (多數是在 bash [git bash] 上使用的) 回家後可能是因為 screen 比較細的關係 所以很小會開git bash 來執行指令 會使用Visual Studio code instead VS code 是使用Powershell的 所以當我嘗試執行 git fetch && git checkout develop 遇到以下的錯誤信息 " At line:1 char:12 + git fetch && git checkout develop + ~~ The token ‘‘‘’ is not a valid statement separator in this version. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : InvalidEndOfLine "
由於不太了解 ASP.Net Core with Angular / React Webpack 的關係 當遇到有 Angular / React的問題是都不知道那裡出錯 我的Angular / ReactJs Project 是用 dotnet core 的 SPA template 建立的 過了幾天才發現.. 由於是使用 dotnet run 或 dotnet watch run 的關係 所以執行的 port 和 visual studio 執行時 debug 的 port 不一樣.. 可能是這樣所以被定義為不是 development mode 所以網頁的 error 便被隱藏了
差不多每三個月 Let’s Encrypt Expiry Bot 便會Email 我說.. 我的SSL 後快便會到期Expire 我需要去Renew" 解決方法十分簡單 我們只需要在 server 的Terminal 上用 sudo執行以下指令便可 sudo certbot-auto renew
唔知點解將OnePlus 用 USB 線連接了 電腦後 Windows 10 認不到那部 OnePlus5 之後我便在 OnePlus的網站上聯絡 他們的 Staff 解釋完問題之後他在Google Drive Share 了一個 OnePlus5 的 Driver 給我安裝
OnePlus5 終於 release 了 一部性價比勁高的手機 https://oneplus.net/hk/5 Official Release Date 是 2017 年 6 月 27 日 OnePlus5 Spec 規格 http://www.gsmarena.com/oneplus_5-8647.php 十分吸引