Frequently used docker commands and examples of Dockerfile.
Huey is a little task queue that supports:
- multi-process, multi-thread or greenlet task execution models
- schedule tasks to execute at a given time, or after a given delay
- schedule recurring tasks, like a crontab
- automatically retry tasks that fail
- task result storage
- consumer publishes event stream, allowing high-fidelity monitoring
Python multiprocssing is useful in executing concurrent tasks with multiple processes. But it also requires the objects being executed support pickling, which is not always true for types like class instance methods, staticmethods and etc. Pathos has a multiprocessing implementation that uses dill on the backend which supports serializing and deserializing for almost all types.
Generate n*n two dimensional arrays with serial numbers in python.
How to use CASE statement in sql select statement to deal with if-then-else logic.
How to insert a new object into mongodb using pymongo with reference to other objects using DBRef.
How to quickly print out or remove duplicated items from given list in python.
Quick fix to an ssl error was encountered with python requests on ubuntu 14.04.
Github pages currently does not support https for blogs that use custom domain name, and here is what CloudFlare comes to a rescue.
How to redirect http traffic to https in nginx configuration.