#coding:utf-8import sys,urllib2,re,Queuesys.path.append("..")from lib.Http_Class import Http_Classfrom BeautifulSoup import BeautifulSoup#############...
                            
                            
                                分类:
编程语言   时间:
2014-07-07 20:49:39   
                                阅读次数:
350
                             
                    
                        
                            
                            
                                http://www.cloudbase.it/create-windows-openstack-images/ We get regularly a lot of requests about how to generate Windows OpenStack images, especially...
                            
                            
                         
                    
                        
                            
                            
                                没得事就爬一下我喜欢的海贼王上的图片
需要在d盘下建立一个imgcache文件夹
# -*- coding: utf-8 -*-
import urllib
import urllib2
import json
from bs4 import BeautifulSoup
import threadpool 
import thread
class htmlpaser:
        de...
                            
                            
                                分类:
编程语言   时间:
2014-06-29 07:15:05   
                                阅读次数:
304
                             
                    
                        
                            
                            
                                Regular http:client 发出请求到serverserver 计算 responseserver 响应 response 给 clientPolling:A client requests 发出常规请求 (同上).client每隔n个时间发出request给server (e.g. 0...
                            
                            
                                分类:
其他好文   时间:
2014-06-27 19:49:36   
                                阅读次数:
171
                             
                    
                        
                            
                            
                                在virtualenv下安装的第三方库,例如south, requests等,如果想在django中使用,需要先将库添加到settings.py的INSTALLED_APPS中, 以south, requests为例, 1 INSTALLED_APPS = ( 2 'django.con...
                            
                            
                                分类:
其他好文   时间:
2014-06-26 19:48:47   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                Host is MasterThis is a fundamental USB concept. There is exactly onemaster in a USB system: the host computer. USB devicesrespond to host requests. U...
                            
                            
                                分类:
其他好文   时间:
2014-06-26 11:09:27   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                今天在做一个注册页面的时候遇到了一个验证码图片在页面显示的问题。我用requests从一个url上获取到一张图片, 没有保存到本地, 而是想直接作为render的字典参数,传到页面里进行渲染。因为requests.get(url)得到的response.content是bytes, 无法像jpg等本...
                            
                            
                                分类:
其他好文   时间:
2014-06-25 17:18:01   
                                阅读次数:
638
                             
                    
                        
                            
                            
                                sonObjectRequest actuallyaccepts JSONObject as body.From http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/final String ...
                            
                            
                                分类:
Web程序   时间:
2014-06-23 06:01:29   
                                阅读次数:
234
                             
                    
                        
                            
                            
                                补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图:sysbench(10.8.8.43)MySQL5.6和MariaDB10.0.11(10.8.8.100)压力测试参数:sysbench--test=oltp--mysql-table-engine=innodb
--oltp-table-size=10000000--max-requests=0--max-time=900
--num-threads=512--mysql-ho..
                            
                            
                                分类:
数据库   时间:
2014-06-10 18:52:48   
                                阅读次数:
384
                             
                    
                        
                            
                            
                                今天早上9:06左右,Windows性能监视器监测到主站的Web服务器出现了CPU 
100%的情况,伴随着Requests/Sec的上升。QPS最高冲到了601。IIS的Current Connections也随之上升。
                            
                            
                                分类:
Web程序   时间:
2014-06-06 09:47:56   
                                阅读次数:
303