There is a monitor.py can be used in Apache + mod_wsgi deployment, which can be used to auto reload wsgi processes when there is any change under Django project directory. I s…
(1) Background To fix following issue: Add "contains" operator in where function to support list pages in nested subdir I implemented a new contains operator in Hugo…
Here we will create a cloud based virtual server from scratch, following things need to be done to prepare develop and deployment env for django1.7+. Background Personally I p…
When using putty connect to ssh server, it always get connection lost when idle for sometime, and it reports "server unexpectedly closed network connection", there are two way…
It is very important to check the vmcore file when the server gets hang there or crash for unknown reason, following tips give some help on how to check the vmcore, hope it he…
How to write customized error with optional error struct passed type Y2HError struct { errMsg string errDetail error } func (e *Y2HError) Error() string { if e.errDetail != ni…
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…