需要寫某些Service的SDK,參考相關的開發後,有需要用到 Builder Pattern。
lombok 可以提供builder 的方式,一開始用 IntelliJ 去開發,在Test Code 中怎樣都沒有辦法產生相關的 builder() method. 找了幾個相關的資料,下面這一個是可以解決IDE 的問題.
https://ask.xiaolee.net/questions/1149362
其中 去安裝 lombok plugin 可以解決我的問題.
長尾巴的魚
簡單的生活 愉快的生命
2020-03-26
2020-01-17
[GIT] Remove Submodule
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule
# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule
# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule
2018-06-07
[Mac] 手動刪除外接硬碟的 TimeMachine 目錄
最近更換TimeMachine 備份硬碟,但是換完以後某一台備份硬碟內的TimeMachine 目錄無法用一般的刪除方法。因為用 command + delete 會把目錄放到垃圾桶,但是無法清除。
[mac] 無法刪除垃圾桶裡的 Time Machine 備份檔 有教學如何運用Console 。
步驟 :
1. 使用 Folder 將 Backups.backupdb 刪除,並檢查垃圾桶
2. 打開Console cd /Volumes/你的外接硬碟名稱/.Trashes/
3. sudo ls 501/
4. sudo rm -rf 501/Backups.backupdb/
[mac] 無法刪除垃圾桶裡的 Time Machine 備份檔 有教學如何運用Console 。
步驟 :
1. 使用 Folder 將 Backups.backupdb 刪除,並檢查垃圾桶
2. 打開Console cd /Volumes/你的外接硬碟名稱/.Trashes/
3. sudo ls 501/
4. sudo rm -rf 501/Backups.backupdb/
2018-05-22
Android 移除內建討厭的 App
手上的 Nokia 8 ,被內建 Google Indic Keyboard 。不斷跑出更新,又不能不要更新。
這一篇文章有教如何移除內建App,並且不讓他更新。刪除Android系統內建APP,免ROOT,三星/HTC/SONY等…
直接在 Nokia 使用 Adb 去移除討厭的 印度輸入法
這一篇文章有教如何移除內建App,並且不讓他更新。刪除Android系統內建APP,免ROOT,三星/HTC/SONY等…
直接在 Nokia 使用 Adb 去移除討厭的 印度輸入法
pm uninstall -k --user 0 com.google.android.apps.inputmethod.hindi
2018-05-08
Android Sign Apk Installation Error : INSTALL_PARSE_FAILED_NO_CERTIFICATES
這兩天為了要讓Apk 可以自動安裝,改了很多做法。最後,為了確保可以順利安裝,每一個APK 都需要 Sign Key。
提供了第一個 Sign Key APK,結果沒辦法用 Android 桌面安裝的方式。
安裝的最後一個步驟會出現 INSTALL_PARSE_FAILED_NO_CERTIFICATES。
上網找了一下資料,下面這一篇有解答 android studio2.3以后给apk签名打包后安装失败的问题[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
方法就是,下圖的兩個紅色箭頭都要打芶。
提供了第一個 Sign Key APK,結果沒辦法用 Android 桌面安裝的方式。
安裝的最後一個步驟會出現 INSTALL_PARSE_FAILED_NO_CERTIFICATES。
上網找了一下資料,下面這一篇有解答 android studio2.3以后给apk签名打包后安装失败的问题[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
方法就是,下圖的兩個紅色箭頭都要打芶。
訂閱:
文章 (Atom)