Introduction to Pachinko (パチンコ)

Introduction to Pachinko (パチンコ) 此文介紹柏青哥機台上各按鈕的功能,以及基本玩法。 柏青哥一開始是給小孩子玩的遊戲機,後來第二次世界大戰結束後,因為有大量的鋼

Why Quick Sort Is Faster than Heap Sort?

Why Quick Sort? I was reviewing sorting algorithm for my interview. The question just popped up in my mind when I was peeking the cheat sheet. [1] You can see the best, average and worst time complexity of heap sort are all O(n logn) but it’s O(n^2) for worst of quick sort. Then why do we always use quick sort? Since quick sort can’t beat heap sort in any cases, not even in space complexity.

Golang Memory Management (based on 1.12.5)

Golang Memory Management (based on 1.12.5) 此文是我在看過許多 Golang 記憶體管理的文章後,再搭配 souce code 所整理出來的。有點像是利用 souce code 來驗證我是否理解網路上所搜尋到的文章。 Golang 基於 TCMalloc (Thread-Caching

Chapter VI - Big O

Chapter VI - Big O Big O, Big Theta, and Big Omega 學術上使用 big O, big theta, big omega 來描述執行速度。然而工程上 (或是面試),人們常會將 big theta 及 big O 混在一起。工程上的 big O 即是學術上的

Prometheus Survey

Prometheus Survey Architecture Prometheus server 負責蒐集及儲存各 target 的 metrics,也會檢查 alert 規則,觸發後會發 alert 給 alertmanager。 Target 要被監控的目標,會以網頁方式將 metrics 以固

About

I’m a Taiwanese so there will be some Chinese articles if I don’t know how to properly express them in English. Feel free to leave message or email me via kai.chihkaiyu[at]gmail.com. Here are some skill keywords I have: Environment Linux Docker Language Python Golang Services: MySQL Kafka GitLab GitLab CI Prometheus Jenkins Elasticsearch OpenTSDB

Clean Code Digest - Chapter 5 編排

Chapter 5 編排 TL; DR 我認為此章節所想表達的有下列事項: 編排的目的:作者認為編排會影響可讀性,而可讀性會不斷對日後的改變產生影響。甚至整本書其實都是在

Clean Code Digest - Chapter 4 註解

Chapter 4 註解 TL; DR 我認為此章節所想表達的有下列事項: 最後一道防線:作者認為註解是最後手段,在寫下註解前,你應該好好的審視程式碼是否能改寫得更好,盡

Clean Code Digest - Chapter 3 函式

Chapter 3 函式 TL; DR 我認為此章節所想表達的有下列事項: 簡短:整章其實都圍繞著「簡短」打轉,像是函式只做一件事,且是同一層抽象概念的事,一直到不要重複

Walkthrough Gitlab

這份文件會告讓你怎麼設定一個 GitLab project 以及到哪裡找到相關的官方文件。這份文件的順序是按照 GitLab project 左側的 sidebar撰寫,如果有項目不在你的 project 裡,有可

Migrate sameersbn/docker-gitlab to gitlab/gitlab-ce

This article records how I migrate GitLab from sameersbn/gitlab to gitlab/gitlab-ce. Why Why would I bother to migrate it? There are several reasons and here are the most important (for me) ones. If you want to enable some functions in GitLab, you would search it from official documents and here comes the pain: you don’t know how to configure it in sameersbn/gitlab. Though the documents of sameersbn/gitlab are quite good, it’s sometimes hard to mapping them together sameersbn/gitlab is driven by community and you don’t know when it would give up maintaining it (for the record, sameersbn/docker-gitlab is a excellent project.

Tags

Select the tag you want to read: Docker GitLab Digest DevOps Golang Algorithm Life

How to Install Ghost with Nginx and MySQL

This article will show you how to install and configure Ghost with Nginx and MySQL. In fact, it is that how this blog has been built. This article contains: Prerequisite Environment Ghost configuration Nginx configuration MySQL configuration Docker Compose Summary Prerequisite I use Docker for handling my environment information and I suppose you have the basic knowledge about Docker and Docker Compose. Before you continue, you must ensure both of Docker and Docker Compose have been installed on your machine.