摘要: 安装后打开mysqld配置项加入skip-grant-tables可以无密码登录,登录进去后修改密码修改成功删除skip-grant-tables mysql> select user, plugin from mysql.user;+ + +| user | plugin |+ + +| root 阅读全文
posted @ 2019-11-02 19:28 十年闷油瓶 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: Selector and checkbox widgets¶ These widgets make use of the HTML elements <select>, <input type="checkbox">, and<input type="radio">. Widgets that re 阅读全文
posted @ 2018-04-01 13:27 十年闷油瓶 阅读(97) 评论(0) 推荐(0) 编辑
摘要: <script> alert("hello") </script> def _get_server(self, key): if isinstance(key, tuple): serverhash, key = key else: serverhash = serverHashFunction(k 阅读全文
posted @ 2018-01-22 15:47 十年闷油瓶 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 请求体的读取一般发生在nginx的content handler中,一些nginx内置的模块,比如proxy模块,fastcgi模块,uwsgi模块等,这些模块的行为必须将客户端过来的请求体(如果有的话)以相应协议完整的转发到后端服务进程,所有的这些模块都是调用了ngx_http_read_clie 阅读全文
posted @ 2018-01-20 09:42 十年闷油瓶 阅读(2082) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2017-11-19 20:53 十年闷油瓶 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2017-09-02 20:25 十年闷油瓶 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2017-05-12 21:07 十年闷油瓶 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: IEEE 802.11出现,当时它所能提供的无线传输速率仅为2Mbps802.11a标准采用5GHz频段,拥有54Mbps的无线传输速率,802.11b采用2.4GHz频段,仅有11Mbps的 IEEE 802.11g标准推出。该标准同样采用2.4GHz频段,支持OFDM技术,理论无线传输速率达54 阅读全文
posted @ 2017-04-05 18:15 十年闷油瓶 阅读(1293) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-22 12:31 十年闷油瓶 阅读(323) 评论(0) 推荐(0) 编辑
摘要: # From http://stackoverflow.com/questions/92438/stripping-non-printable-characters-from-a-string-in-pythoncontrol_chars = ''.join(map(unichr, range(0, 阅读全文
posted @ 2017-02-20 20:34 十年闷油瓶 阅读(122) 评论(0) 推荐(0) 编辑