State management(handler的状态管理) A ChannelHandler often needs to store some stateful information. The simplest and recommended approach is to use member variables: public?interface?Message?...
分类:
Web程序 时间:
2014-07-29 16:22:59
阅读次数:
317
This tutorial will give a brief overview of the defun function and moreover explain why localising variables is a good habit to get into. By http://le...
分类:
其他好文 时间:
2014-07-29 13:53:59
阅读次数:
136
编码查看方式以及解释说明:需要以root用户身份登陆才可以查看数据库编码方式(以root用户身份登陆的命令为:>mysql -u root –p,之后两次输入root用户的密码),查看数据库的编码方式命令为:>show variables like 'character%';+-----------...
分类:
数据库 时间:
2014-07-29 11:16:56
阅读次数:
242
静态变量上一篇我们了解了block全局变量的使用,静态变量和全局变量一样,可以直接在block内部使用,也可以在block内部修改引用官方文档:Global variables are accessible, including static variables that exist within ...
分类:
其他好文 时间:
2014-07-29 10:25:08
阅读次数:
330
局部变量block内使用局部变量,一般都是截获变量(只读),截获离block初始化最近的一次的值。引用官方文档:Stack (non-static) variables local to the enclosing lexical scope are captured asconst variabl...
分类:
其他好文 时间:
2014-07-28 19:15:34
阅读次数:
302
tornado+ansible+twisted+mongodb运维自动化系统开发(三)...
分类:
数据库 时间:
2014-07-26 15:20:10
阅读次数:
289
本节内容包括:SET语句、MERGE语句、UPDATA语句、OUTPUT语句、TRANSPOSE语句和data-set选项及SAS Automatic Variables一、SET语句(堆叠功能)用SET语句修改数据集DATA Friday; SET Sales;/SET 'C:\MySASL...
分类:
其他好文 时间:
2014-07-25 16:31:21
阅读次数:
255
Pointers * Pointers are variables * Pointers store only address of the memory location. they do not store a value. * Pointers are declared like :- int...
分类:
其他好文 时间:
2014-07-24 12:09:05
阅读次数:
288
源码:
#!/usr/bin/env python
#coding:utf-8
import os.path
import tornado.locale
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import defi...
分类:
数据库 时间:
2014-07-24 10:31:32
阅读次数:
314
前段时间学习了一下ansible的配置管理(http://blog.csdn.net/column/details/ansible.html anisble配置工具翻译专栏),感觉很强大,就想着把最近看的tornado和twisted和它结合一下做一个webUI
今天动手做了一个demo,目前大概实现的功能是:添加ansible主机,然后单台运行脚本(后续会把playbook和批量运行加上)...
分类:
数据库 时间:
2014-07-23 22:31:47
阅读次数:
387