摘要:
安装后打开mysqld配置项加入skip-grant-tables可以无密码登录,登录进去后修改密码修改成功删除skip-grant-tables mysql> select user, plugin from mysql.user;+ + +| user | plugin |+ + +| root 阅读全文
摘要:
Selector and checkbox widgets¶ These widgets make use of the HTML elements <select>, <input type="checkbox">, and<input type="radio">. Widgets that re 阅读全文
摘要:
<script> alert("hello") </script> def _get_server(self, key): if isinstance(key, tuple): serverhash, key = key else: serverhash = serverHashFunction(k 阅读全文
摘要:
请求体的读取一般发生在nginx的content handler中,一些nginx内置的模块,比如proxy模块,fastcgi模块,uwsgi模块等,这些模块的行为必须将客户端过来的请求体(如果有的话)以相应协议完整的转发到后端服务进程,所有的这些模块都是调用了ngx_http_read_clie 阅读全文
摘要:
class BaseListView(MultipleObjectMixin, View): """ A base view for displaying a list of objects. """ def get(self, request, *args, **kwargs): self.object_list = self.get_query... 阅读全文
摘要:
1 import socket, select 2 3 EOL1 = b'\n\n' 4 EOL2 = b'\n\r\n' 5 response = b'HTTP/1.0 200 OK\r\nDate: Mon, 1 Jan 1996 01:01:01 GMT\r\n' 6 response += b'Content-Type: text/plain\r\nContent... 阅读全文
摘要:
import tornado.ioloop # 此时_current没有instance print dir(tornado.ioloop.IOLoop._current) # 通过instance IOLoop() 会设置当前_current instance a = tornado.ioloop.IOLoop.current() print id(a) print dir(tornad... 阅读全文
摘要:
IEEE 802.11出现,当时它所能提供的无线传输速率仅为2Mbps802.11a标准采用5GHz频段,拥有54Mbps的无线传输速率,802.11b采用2.4GHz频段,仅有11Mbps的 IEEE 802.11g标准推出。该标准同样采用2.4GHz频段,支持OFDM技术,理论无线传输速率达54 阅读全文
摘要:
struct i_foo * foobar_foo(void); //返回接口指针struct foo_object * foo_create(struct i_foo *iface, void *data);void foo_release(struct foo_object *); void f 阅读全文
摘要:
# From http://stackoverflow.com/questions/92438/stripping-non-printable-characters-from-a-string-in-pythoncontrol_chars = ''.join(map(unichr, range(0, 阅读全文