How to simiuate super.init() in Python type Baser interface { Init(name string) Do() } type BaseClass struct { name string } func (cls *BaseClass) Init(name string) { cls.name…
Why go install already checks if the binary is up-to-date before installation. go test is all you need to kick-off tests that run at face melting speed. It's natural to ask, &…
go变量声明与C语言的不同: go变量声明引入var关键字可以一次同时声明多个变量 var myvar1, myvar2, myvar3 int OR var ( myvar1 int myvar2 string ) 变量类型声明与C类似,类型关键字在变量后面且没分号结束,C语言类型关键字在变量前面且以分号结束 go: var myvar int …
There are multiple projects aims to implement this, here we will use the official one. This post mainly focus on the pitfalls while apply the official autocluster plugin. Pref…
Symptom When try to delete container, it failed to remove and reportd below error: Solution 1. Find out which process has mounted this busy mountpoint: /var/lib/docker/overlay…
Here's a summary of the ways to call external programs and the advantages and disadvantages of each: os.system("some_command with args") passes the command and argum…
C10k problem How to configure operating systems and write code to support thousands of clients is what we called C10k problem Candidates: Django It is a high-level Python Web …
The reason is MySQL v 5.7 or higher generates a temporary random password after installation and stored that in mysql error log file, located at /var/log/mysqld.log for an ins…
Sphinx is a tool that makes it easy to create intelligent and beautiful documentation. It was originally created for the Python documentation, and it has excellent facilities …
There is a new feature in Celery4.x which introduce a Promise like style async method which can retrieve result asynchronicly. But I nerver make it works with RabbitMQ backend…