色彩时光 | 记录程序员世界的点点滴滴
can not start new thread
采用nginx+uwsgi+django部署服务的时候出现can not start new thread的异常,出现异常感觉很奇怪,本地开发测试未出现该异常,就是采用了uwsgi出现的,于是将uwsgi中间件用django的runserver替换进行测试后均正常使用,基本判断为uwsgi问题。
继续阅读 →
继续阅读 →
python通过stomp连接不上activemq
python通过stomp连接不上activemq 网上很多是通过指定61616端口连接 其实不然。the standard port we use is 61613 for Stomp. See this page for some info on configuring Stomp:
继续阅读 →
dubbo python 调用
通过telnet调用
继续阅读 →
python mongodb记录
python mongodb
django mongodb engine
https://github.com/django-nonrel/mongodb-engine
最新更新时间为2015 对新的mongodb 和django2.0 支持需验证。
mongoengine
https://g
继续阅读 →
继续阅读 →
python模拟微博登陆
python模拟微博登陆
[code]
# -*- coding: utf-8 -*-
import re
import json
import base64
import binascii
import rsa
import requests
import urllib2
import url
继续阅读 →
继续阅读 →
weibo status share
python调用微博分享接口,里面关于怎么使用post提交数据,以及api接口灵活调用值得借鉴学习。
http://github.liaoxuefeng.com/
继续阅读 →
继续阅读 →
tushare快捷命令调用及kdj指标
tushare快捷命令调用
https://github.com/passi0n/tushare_cq
[code]
tushare挖地兔 命令调用快捷方式
p
继续阅读 →
继续阅读 →
selenium 元素定位小结
1、通过属性定位元素
[code]
#定位属性expinfo为object的div元素
ele=driver.find_element_by_xpath("//div[@expinfo='object']")
#定位属性expinfo包含object字符的div元素
ele=driver.find
继续阅读 →
继续阅读 →
nginx https 相关问题记录
最近发现网站www.rgbtime.com 访问有劫持现象。一般在http情况下手机端运营商有劫持篡改js导致插入广告使得体验很差。那么升级成https的话,则可以避免这类问题。不过一般https证书需要收费
继续阅读 →
继续阅读 →