Frankie Yan's Blog

Just do it.

Leetcode-102 Binary Tree Level Order Traversal

Leetcode-102

分析 BFS BFS class Solution { public: vector<vector<int>> levelOrder(TreeNode* root) { if (!root) { return {}; } vector<vector<int> > ...

Leetcode-152 Maximum Product Subarray

Leetcode-152

Iteration based on the start and end positions - O(n^2) class Solution { public: int maxProduct(vector<int>& nums) { int tmp = 1; int maxProdResult = INT_MIN; ...

CMake

Build

Below Example Source code Features Open Source Cross Platform Fit for large project, e.g. KDE4 Simplified Tool Chain: cmake + make Efficiency Scalable Drawbacks Not simple and st...

Golang Low Level Programming

unsafe package

Ordinary Golang Programming Compilation: static type checking Dynamic checks during run time (e.g. out of bounds) Automatic memory management (garbage collection) (e.g. ...

Helm & Golang Template

Basics

Installation Creating a Kubernetes cluster (1.6+ & RBAC) Using kubectl config current-context or kubectl cluster-info for verification. (GCP k8s cluster) Security Helm(client) and Ti...

Programming With Google Go

Basics

Course links: https://www.coursera.org/specializations/google-golang Personal repo links: https://github.com/frankie-yanfeng/Programming-with-Google-Go Gist Multiple Return Values func fo...

Kubernetes Concept 10

k8s sharing

Google Kubernetes Engine (GKE) Logging and Monitoring Use Stackdriver to monitor and manage the availability and performance Locate and inspect Kubernetes logs Perform forensic analysis of ...

Rancher Introduction

Technical Architecture(Version_2.1)

Rancher Introduction Technical Architecture: Version 2.1 Motivation Rancher container management platform is developed to address the need to manage containers in production. Timeline Cattle - Ra...

Kubernetes Concept 9

k8s sharing

Access Control and Security in Kubernetes and Google Kubernetes Engine (GKE) Understand Kubernetes authentication an authorization Define Kubernetes roles and role bindings for accessing reso...

Kubernetes Concept 8

k8s sharing

StatefulSets Stateful sets are useful for stateful applications. Unlike deployments, stateful sets maintain a persistent identity for each pod. Each pod in a stateful set maintains a persistent ide...

Kubernetes Concept 7

k8s sharing

Volumes Kubernetes offers storage abstraction options ConfigMap & emptyDir Volume types PersistentVolumes abstraction has two components Access...

Kubernetes Concept 6

k8s sharing

Pod networking A Pod is a group of containers with shared storage and networking IP per pod model Because both containers share the same networking namespace, the two containers appears as thro...

Kubernetes Concept 5

k8s sharing

Cluster scaling Scaling a cluster from the GCP Console A node pool, is a subset of node instance within a cluster. They all have the same configuration. Node pools use a NodeConfig specification....

Kubernetes Concept 4

k8s sharing

Jobs and CronJobs Unlike other Kubernetes controllers, jobs manages a task up to its completion rather than to an open-ended desired state. In a way, the desired state of a job is its completio...

Kubernetes Concept 3

k8s sharing

The kubectl Command kubectl transfers command line entries into API calls, then send to the Kube apiserver within selected kubernetes cluster. kubectl must be configured with t...

What the helm?

Helm Basics Concept 1

Core headache The configuration files, yaml files etc management on various clusters and hundreds of microservices, especially when migrating to another cluster. What is the Helm? (https://helm.sh...

Kubernetes Concept 2

k8s sharing

Kubernetes Concept Kubernetes Object model Declarative management Kubernetes objects Persistent entities representing the state of the cluster Object spec: Desired state described by us ...

Kubernetes Concept 1

k8s sharing

Introduction to Containers and Docker Introduction to Containers Why developers hate containers Union file system? file system? Introduction to Docker what does this mean? ...

Photo taking standard operation procedure

hospital

Photo taking standard operation procedure Location: XXX hospital #Target patient: 150~200 Duration: 2 to 3 months Working weekday: Monday and Friday only ...

Magic Ring Skin Test Challenge

OIP

Magic Ring Skin Test Challenge Background SK-II has its proprietary ‘Magic Ring ™’ skin test carried out in its outlets where customers can take the skin test to determine their skin age against t...