原创 about the C++ object model

## plain object     ## Alignment align with the longest one, such as 4 bytes alignment   ## Inheritance  ## object i

原创 關於C++11 的右值引用

右值引用:追要是分移動語義+完美轉發。目的是減少賦值操作中的新建內存再copy的造作,直接複用右值已經申請的內存空間和裏面對應的內容。 本質上是添加move constructor 和 move assignment constr

原创 From good to great. How to approach most of DP problems.

I find an article about the DP in the leetcode and it is fantastic. The URL of the origin:From good to great. How t

原创 innoDB-全文索引

當B+樹無法滿足索引要求時,比如根據前幾個關鍵字來查詢所有相關數據。 InnoDB 1.2.x版本開始支持全文檢索 倒排索引 全文檢索一般使用倒排索引來實現。倒排索引和B+樹一樣也是一種索引結構,它在輔助表中存儲了單詞與單詞自身在

原创 InnoDB和MySQL-文件

MySQL數據庫和InnoDB引擎的各種類型文件: 參數文件:告訴MySQL在實例啓動時在哪裏找到數據庫文件,保存某些初始化參數 日誌文件:錯誤日誌文件,二進制日誌文件,慢查詢日誌文件(記錄所有執行時間超過long_query_

原创 InnoDB-表相關

索引組織表 InnoDB存儲引擎中,表都是按主鍵順序組織存放的,這種按主鍵方式存儲的表就叫做索引組織表。 在InnoDB的存儲引擎表中,每個表都有主鍵,如果創建表時沒定義主鍵,會按一下方式設定主鍵: 表中是否有非空的唯一索引,有

原创 Fix the problem about Git : fatal: Ambiguous object name: origin/release/xxx

background Today I want to upstream a remote release branch “origin/release/20.Q2.0”, but when I do the operation o

原创 什麼是編碼,什麼是解碼。原理解讀

原文:http://www.cnblogs.com/luguo3000/p/3592562.html 編碼問題一直都伴隨着程序猿從不間斷,剛開始學編程的時候好多次遇到編碼問題,解 決了文件讀取的編碼問題,又遇到了網絡編碼問題,解決

原创 What are the differences between UTF-8, UTF-16, and UTF-32?

Answer1 UTF-8 has an advantage in the case where ASCII characters represent the majority of characters in a block o

原创 一個簡單的抓取百度熱度數據並可視化的demo

我的B站賬號~ 番茄愛大米 ,可以關注下嗷~ 可視化工具 https://github.com/Jannchie/Historical-ranking-data-visualization-based-on-d3.js 比如抓取

原创 Cache寫機制:Write-through與Write-back

Cache寫機制:Write-through與Write-back 通常有三種方法: 1.write through:CPU向cache寫入數據時,同時向memory(後端存儲)也寫一份,使cache              

原创 POSIX Threads Programming Notes

What is progress Processes contain information about program resources and program execution state, including: Pro

原创 shared_ptr: Shared Ownership

原文鏈接:https://www.boost.org/doc/libs/1_71_0/libs/smart_ptr/doc/html/smart_ptr.html#shared_ptr shar

原创 C++ 引用佔用內存?

原文鏈接:http://www.cnblogs.com/ronny/p/3662556.html 一、引用的本質是什麼 說到引用,一般C++的教材中都是這麼定義的: 1,引用就是一個對象的別名

原创 C++ using declaration

1 using can be used to introduce namespace members into other namespaces and block scopes, or introduce base class