原创 Java map按value排序

public static Map<String, Integer> sortMapByValue(Map<String, Integer> oriMap) { if (oriMap == null || oriMap.

原创 prometheus + node exporter 安裝教程

參考https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/index.html 1.下載安裝 n

原创 How to Debug Rust with Visual Studio Code

    https://www.forrestthewoods.com/blog/how-to-debug-rust-with-visual-studio-code/     Install Rust and VS Code This s

原创 KADEMLIA算法學習

  系統講述了ETH的P2P網絡模型---Kademlia算法,推薦 https://shuwoom.com/?p=813   以圖書查詢的例子,講述KAD算法,通俗易懂:https://www.jianshu.com/p/f2c31e6

原创 RocksDB 筆記

https://alexstocks.github.io/html/rocksdb.html 很棒的一篇介紹RockDB的文章,收藏之    

原创 十分鐘理解TCP/IP

  發現一片關於TCP/IP的文章,通俗易懂,簡明扼要,特推薦共享之   關於 TCP/IP,必知必會的10個問題 https://zhuanlan.zhihu.com/p/72587882

原创 快速排序入門實現,Rust版

  Rust實現: fn quick_sort(nums: &mut Vec<u8>, left: usize, right: usize) { if left >= right { return; }

原创 how to resolve "librocksdb-sys" compile error

error log Compiling librocksdb-sys v5.14.2

原创 獲取醜數 get ugly nums

pub fn nth_ugly_number(n: i32) -> i32 { fn is_ugly_number(n: i32) -> bool { let mut m = n; while

原创 Key-Value 存儲引擎 · 系統設計 (System Design)

  文章講述了RocksDB、LevelDB的底層實現過程,很棒   https://juejin.im/entry/5ad4890f6fb9a028e33bec7b  

原创 Java中HashMap底層實現原理(JDK1.8)源碼分析

文中詳細介紹了hashmap的底層原理,挺好 https://blog.csdn.net/tuke_tuke/article/details/51588156       hashmap爲什麼線程不安全? 1、put的時候導致的多線程數

原创 暴露虛擬機下的ip,port

  windows下admin起cmd,輸入命令: netsh interface portproxy add v4tov4 listenport=6615 listenaddress=10.168.1.235 connectport=

原创 hashMap底層實現

參考知乎 https://zhuanlan.zhihu.com/p/28501879  

原创 迴文數算法分析

判斷一個整數是否是迴文數。迴文數是指正序(從左向右)和倒序(從右向左)讀都是一樣的整數。 示例 1: 輸入: 121 輸出: true 示例 2: 輸入: -121 輸出: false 解釋: 從左向右讀, 爲 -121 。 從右向

原创 1分鐘搞定VMware Workstation error "This virtual machine appears to be in use"

出現error "This virtual machine appears to be in use" ,可能是由於異常關機(意外掉電、強制關機等)導致的虛擬機沒有及時將狀態信息持久化,觸發虛擬機的狀態保護機制,導致重啓後,信息加載不上。