Recently, I am plan to write some html page use weui css, but it seems it lack good grid system, as we all know bootstrap3 grid system is very easy to use, I am considering to…
There is a Hugo official example which describe how to implement a navigation breadcrump here: Example: Breadcrumb Navigation Anyway I didn't make it work as I expected. I thi…
Why language specific params defined in "[lanuage]" missing some information defined outside "[lanuage]" [params] [params.home] var1 ="1" var2 ="2" [langua…
When submit a form by using jquery.serilize() method, sometimes it missing some control elements under form element, what caused that? Just remember that form elements needs t…
How to send jquery datatables data via Ajax A: Use: dataTable_instanc().rows().data().toArray() How to send json data via Ajax A: It need use JSON.stringtify(Array) to make th…
(1) Background Normally, we feel intuitive to put files under different nested sub directory, each directory could represents as file's category it belongs to or with specific…
As we known, standard httprouter func has 3 parameters like below: func ViewIndex(w http.ResponseWriter, r *http.Request, ps httprouter.Params){} Sometimes, we need pass addit…
Delete all images $ for i in `docker images | awk 'NR>1{print $1":"$2}'`;do docker rmi $i;done Aliyun docker accelerator(/etc/docker/daemon.json) {"registry-mirrors": ["ht…
Obtain node join token$ kubeadm token list | awk 'NR==2{print $1}' Get master hostname$ kubectl get nodes -l node-role.kubernetes.io/master -o jsonpath="{.items[*].metadata.na…
If you using Dockerfile, you should know about caching for faster builds. Sometimes, you need to rebuild without cache. you can run docker build with --no-cache option that wi…