分类: 未分类

64 篇文章

Tornado Asynchronous Programming Gists
Asynchronous programming with Tornado Tornado is single threaded (in its common usage, although in supports multiple threads in advanced configurations), therefore any "b…
Tornado Celery integration
Scenario While implementing wxgigo project, I need create an agent which will receive the POST requests from Wechat server, then relay to AMQP broker. In the appserver side, c…
Use Jinja2 as Tornado’s default template engine
There are two ways to use Jinja2 as Tornado's default template engine: Inherited from mixed TemplateRendering class, and rewrite tornados's render() function Set Jinja2 templa…
CORS in Golang
Background While I design wxgigo installer, I would like to get install configuration web via http, and then go through https to save install configuration into server, becaus…
python3.x asyncio study
How to convert sync codes to be async one Method1: create a future object define a callback function which will continue check future result is ready or not, future.set_result…
Setup wifi connection in terminal in CentOS7
Make sure NetworkManager supports wifi and manages the wireless device #nmcli d DEVICE    TYPE      STATE       CONNECTION wlp2s0    wifi      unmanaged    -- enp9so    ethern…
Interrupting those pesky “uninterruptible” processes
Anyone whose dealt with NFS administration has sooner or later had to confront a downed server that results in a hoard of unkillable processes that build up waiting for the NF…
Linux下安装Dropbox-国内篇
如果您想在 Linux 桌面上使用 Dropbox,请安装相应的程序包。如果未列出您的发行版,请选择“从源代码编译”。这里我们只描述怎样通过命令行安装无外设模式的 Dropbox。 Dropbox 守护程序可在所有 32 位与 64 位 Linux 服务器上正常运行。若要安装,请在 Linux 终端运行下列命令。 32-bit cd ~ &…
Tornado coroutine
Preface What's the difference between normal function and coroutine: coroutines are functions that allow for multiple entry points, that can yield multiple times, and resume t…