Recent posts

神奇的演算法 - Greedy Algorithm

category: algorithm     2 minute read     Posted on:

Preface 還記得之前上演算法的時候,最看不懂的東西就是貪婪法了 不過其實他的核心概念很簡單,寫起來也簡單 趁著還記得細節的時候,把它紀錄起來

資料庫 - 新手做 Data Migration 資料遷移

category: database     1 minute read     Posted on:

Preface 資料搬遷,在現代軟體服務當中屬於較為常見的一種需求 不論是單純的機器之間的搬資料抑或者是因應商業邏輯而需要做的資料搬遷 都是屬於 Data Migration

淺談 Polling, Long Polling 以及其他即時通訊方法論

category: random     2 minute read     Posted on:

Polling polling 輪詢是最為簡單的一種作法 其核心概念為定時的發出 request 確認

資料庫 - 從 Apache Kafka 認識 Message Queue

category: database     16 minute read     Posted on:

Preface message queue 顧名思義他是一個 queue,用來存放 message 的 你可以用 Inter-Process Communication 的概念去思考它 基本上就是提供一個空間或是,讓兩個 process 進行通訊

浮點數 - 如何解決精度問題以及其原理

category: random     4 minute read     Posted on:

Preface ref: Damn you floating point binary addition, you’ve caused me tons of bugs over the years

神奇的演算法 - Backtracking 與 Divide and Conquer

category: algorithm     1 minute read     Posted on:

Algorithm Brainstorming 直接看題目比較快,LeetCode 93. Restore IP Addresses 根據題目要求,給定一個只有數字的字串,找出所有合法的 ip address 的組合

DevOps - 整合測試 Integration Test

category: devops     5 minute read     Posted on:

Introduction to Integration Test 光是擁有 unit test,其實是不夠的 因為 unit test 測試的範圍只有 function 本身 跨 function 之間的整合,是沒有涵蓋到的

資料庫 - PostgreSQL 使用 Fuzzy Search 的效能測試

category: database     9 minute read     Posted on:

Introduction to Fuzzy Search 就是字串匹配,只不過它即使是沒有完全的把字拼對,也可以找的到

神奇的演算法 - Monotonic Stack

category: algorithm     2 minute read     Posted on:

Preface 千言萬語都比不上一個真實的範例

資料庫 - 從 MySQL 到 PostgreSQL 一些新手會遇到的問題

category: database     14 minute read     Posted on:

Preface 作為用了 MySQL 五年之久的我,原本以為同為 SQL 在語法上的差異不會影響到太多 實際上手之後,發現還是有點差異