Oreilly 程式設計師提升生產力秘笈一書有有提到CLICLI 剪貼簿可以看到歷史紀錄。Windows 10 也支援這個功能了.
可以按快捷鍵 Windows+V 開啟剪貼簿
MySQL Replication Server , 因空間滿了, 導致MySQL 無法登入.
這應該持續一段時間了, 檢查之後發現是 relay-bin log 滿了。
應該是年中時, 有大量的刪除及UPDATE 資料關係。
所以Replication 要重建。因為空間滿了無法啟動MYSQL, 所以只能刪掉一些檔案, 重啟slave 時發現下列錯誤.
ERROR 29 (HY000): File './#####-relay-bin.001416' not found (Errcode: 2 - No such file or directory)
處理方法
1. stop slave
2. reset slave
3. rm *.relay-bin*
4. restart mysql
5. CHANGE MASTER TO MASTER_HOST….略
6. start slave
完成收工.
You can do all your Agent jobs in one go fairly easy:
1. Click on the "Jobs" section in the SQL Agent in SSMS
2. Hit the F7 key on your keyboard (opens the Object Explorer Details)
3. Highlight the jobs you want to export in the Object Explorer Details
4. Right-click the highlighted jobs and "Script Job As..." like you would for a single job
已經很習慣使用ifcfg-eth0 來定義預設網卡,
自Centos 7 之後, 會自動命名網卡名稱, 非常不習慣.
解決這個方法可以在安裝Centos 7或8時, 多輸入下列的命令
net.ifnames=0 biosdevname=0
如此即可。
目前Eclipse 出到2020-09 版,但必須使用JAVA 11 才可運作
這個連結 https://wiki.eclipse.org/Eclipse/Installation 可看到需要的JAVA版本。
最後一個支援JAVA 8 的Eclipse 4.16版(2020-06)
最近在作Tableau API response XML String parse.
找到這個Sample 可以把指定的Tag 過濾掉.
xml = xml.replaceFirst("(?s)]*>.*?</tagname[^>","");
不了解(?s) 的意思. 請Google 大神幫忙
(?i) makes the regex case insensitive.
(?s) for "single line mode" makes the dot match all characters, including line breaks.
(?m) for "multi-line mode" makes the caret and dollar match at the start and end of each line in the subject string.
(?s) equals Pattern.DOTALL