Millet Porridge

English version of https://corvo.myseu.cn

0%

Recently the programs I write are mainly Python, JavaScript and TypeScript. After adopting Python3 and the new Tornado, asyncio seems forced upon us. In this article I'll share my views on the async/await keywords.

Read more »

Tornado 6.0 has fully switched to asyncio, but my IPython embed debugging didn't go smoothly. This blog mainly introduces how to keep using IPython in the new Tornado.

Read more »

Recently I've been adding lint to Vsnips — the code I wrote before was really too free-spirited; for future multi-person collaboration it's necessary to keep a consistent style. After consulting frontend colleagues and learning tslint has stopped being supported, I decided to switch tslint to eslint.

Read more »

I've been researching how to provide container shell login for users. This blog organizes my thoughts, exploring two approaches: one accessing pods in the Kubernetes cluster via a proxy; the other based on webshell while also allowing users to log in locally. It analyzes both approaches' security and functional usage.

Read more »

The last blog introduced CronJob usage in Kubernetes and included suspend — but using this parameter well isn't so easy. This blog introduces the problems suspend brings, and gives solutions together with the source code.

Read more »

When using Kubernetes, one requirement is using its scheduled tasks. For online projects, it's still necessary to test well before putting them into use. This post introduces my usage, and after hitting problems related to startDeadlineSeconds, I tried reading the source code to understand its execution strategy.

Read more »

Why does the title say 'research'? Because auto-unlock is really too hard, ( •̥́ ˍ •̀ू ). Had I not spent days looking things up, I really thought I could write it myself. This post shares the approaches I imagined and the research results, so anyone interested later can see whether these pitfalls can be avoided.

Read more »

I remember when I first started at Tencent I was scolded many times by my mentor about locking the screen; later I formed the habit of locking whenever I left the computer. Colleagues around me leave without locking — thinking about the security risk, it's quite big, so I wondered whether the phone-computer connection could lock or unlock the screen.

Read more »