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 get responsive grid-only css stuff from bootstrap3. In fact, it does already exist a opensource project: bootstrap-grid-only But it seem author didn’t update it for long time, the customized less file which used to generate grid-only css contains much copy-&-paste stuff.

Read More…

Git useful commands

2017-04-13

Q. How to rename current master branch as old version and start to working on a new version? rename current master to backup name or old version name git branch -m master <backup name> push to remote git push origin <backup name> checkout to remote master git checkout master Q: How to check changelogs between speicified version and latest version? fetch the latest commits from git repository

Read More…

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 saw there are many way to achieve the same target in nginx + uWSGI deployment, like uwsgi.reload(), set “–py-autoreload=N” option. Finally I choose to use inotify to monitory the .py file changes under project dir, and touch the project dir to notify uWSIG reload python modules in workers.

Read More…