Chow's Notes


  • 首页

  • 分类

  • 归档

  • 标签
Chow's Notes

PYTHON网络编程笔记

发表于 2014-12-22 | 分类于 Python |
AF 表示ADDRESS FAMILY 地址族PF 表示PROTOCOL FAMILY 协议族但这两个宏定义是一样的所以使用哪个都没有关系Winsock2.h中#define AF_INET 0#define PF_INET AF_INET所以在windows中AF_INET与PF_INET完全一样而在Unix/Linux系统中࿰ ...
阅读全文 »
Chow's Notes

查看字符串的编码chardet

发表于 2014-12-22 | 分类于 Python |
The Universal Character Encoding Detector1chardet.detect("str") 返回:1{‘confidence’:1.0,'encoding':'ascii'}
阅读全文 »
Chow's Notes

python suds 调用webservice 缓存

发表于 2014-12-22 | 分类于 Python |
在linux系统中 如果webservice更新了字段 suds调用有可能缓存以前的字段或方法,对新的字段报找不到类型 TypeNotFound,或者对 新加的方法找不到该方法的错误。 当 ...
阅读全文 »
Chow's Notes

使用TortoiseGit同步代码到github远程仓库

发表于 2014-12-22 | 分类于 未分类 |
1.clone github上的代码仓库的URL 可以用HTTPS,SSH, or Subversion 2.同步push 到远程仓库时 要用 SSH地址,同生成SSH private key ,在github增加这个key SSH 地址 配置: 生成SSH private key: 用C:\Program Files\TortoiseGit\bin下的puttygen.exe生 ...
阅读全文 »
Chow's Notes

乱码问题

发表于 2014-12-22 | 分类于 Python |
解决数据库查询出来是中文时,windows显示乱码问题12345if os.name == ‘nt‘: try: value = ‘’.join(chr(ord(x)) for x in value).decode(‘gbk‘) except: value
阅读全文 »
Chow's Notes

storm相关技术

发表于 2014-12-22 | 分类于 Web |
There are two kinds of nodes on a Storm cluster: the master node and the worker nodes. 有两种节点,主节点和worker节点 主节点,Nimbus: Nimbus is responsible for distributing code around the cluster, assigning tasks to machines, and monitoring for failures. worker节点,Supervisor: The supervisor listens for work assigned to its machine and starts and stops worker processe ...
阅读全文 »
Chow's Notes

web.py源码(持续更新)

发表于 2014-12-17 | 分类于 Python |
文件结构:utils.py中定义的是些 General Utilities,通用工具集和数据结构 1.对序列进行分组的函数(生成器的很好使用,值得借鉴)group12345678910111213141516171819def group(seq, size): def take(seq, n): for i ...
阅读全文 »
Chow's Notes

HTML标签

发表于 2014-09-17 | 分类于 web前端 |
OL标签的属性start 123456789<ol start="964" class="pre-context" id="pre15717160" style="display: block;"><li onclick="toggle('pre15717160', 'post15717160')"> # Setup the state</li><li onclick="toggle('pre15717160', 'post15717160')"> self.wsgiSentHeaders = 0</li><li onclick="toggle('pre15717160', &apo ...
阅读全文 »
Chow's Notes

Map功能简化Python并发代码

发表于 2014-09-01 | 分类于 Python |
<转摘>Python 并行任务技巧 支持Map并发的包文件有两个: Multiprocessing,还有少为人知的但却功能强大的子文件 multiprocessing.dummy. Dummy是一个多进程包的完整拷贝。唯一不同&#x ...
阅读全文 »
Chow's Notes

nginx使用ssl模块配置HTTPS支持

发表于 2014-08-25 | 分类于 nginx |
默认情况下ssl模块并未被安装,如果要使用该模块则需要在编译时指定–with-http_ssl_module参数,安装模块依赖于OpenSSL库和一些引用文件,通常这些文件并不ղ ...
阅读全文 »
1…456…13
Chow

Chow

123 日志
21 分类
43 标签
GitHub DomainDeal
© 2017 Chow
由 Hexo 强力驱动
感谢github提供的免费空间 感谢iissnan's主题 - NexT.Pisces