**第 0000 题:**将你的 QQ 头像(或者微博头像)右上角加上红色的数字 python库:大家都会说PIL,但是根据StackOverflow的建议,采用[Pillow(PIL一个Fork)][1] 文档:[ImageFont Module][2] **第 0001 题:**为你...
分类:
编程语言 时间:
2015-01-04 01:20:52
阅读次数:
246
默认Nginx只支持http的反向代理,要想nginx支持tcp的反向代理,还需要在编译时增加tcp代理模块支持,即nginx_tcp_proxy_module下面操作步骤只让nginx支持tcp_proxy,没有加入prce、gzip、ssl等功能,如需要,可自行在编译时加上相关参数。wgethttps://github.com/yaoweibin/ngi..
分类:
其他好文 时间:
2015-01-03 13:20:00
阅读次数:
190
win7 virtualbox VBoxDD.DLL 0x80004005 uxtheme.dll 错误 virtualbox提示错误 不能为虚拟电脑 centos7 打开一个新任务. Unable to load R3 module C:\Program Files\Oracle\VirtualBox/VBoxDD.DLL (VBoxDD): Ge...
分类:
Windows程序 时间:
2015-01-03 01:00:27
阅读次数:
2351
【问题】
【代码】
文件名:pickle.py
# coding=utf-8
#持久存储
import pickle
#b 以二进制的模式打开文件
with open('mydata.pickle','wb') as mysavedata:
#用dump保存数据
pickle.dump([1,2,'three'],mysavedata)
#b 以二进制的模式打开文件
w...
分类:
编程语言 时间:
2015-01-02 22:26:35
阅读次数:
472
os.uname()Returns information identifying the current operating system. The return value is an object with five attributes:sysname- operating system n...
分类:
其他好文 时间:
2015-01-02 19:54:33
阅读次数:
904
# /etc/profileexport TSLIB_FBDEVICE=/dev/fb0export TSLIB_PLUGINDIR=/usr/lib/ts# /usr/lib/ts is where the "input.so" located
分类:
其他好文 时间:
2015-01-02 10:59:12
阅读次数:
244
module mult_for(outcome,a,b);parameter SIZE=8;input[SIZE:1] a,b;output reg[2*SIZE:1] outcome;integer i;always @(a or b) begin outcome<=0; for(i=...
分类:
其他好文 时间:
2015-01-01 17:19:39
阅读次数:
469
新年发布F#的两个 Bug,都集中在module中。第一个是:[]特性在module中不起作用,CLIEvent的作用是使 F# 的事件编译后生成标准接口,方便C#调用。但是CLIEvent在module中不运作,要实现相同的效果,只能通过 type声明类,然后在类中声明静态事件。第二个是:modu...
分类:
其他好文 时间:
2015-01-01 13:35:54
阅读次数:
136
IHttpModule与IHttpHandler的区别整理1.先后次序.先IHttpModule,后IHttpHandler.注:Module要看你响应了哪个事件,一些事件是在Handler之前运行的,一些是在Handler之后运行的2.对请求的处理上:IHttpModule是属于大小通吃类型,无论...
分类:
Web程序 时间:
2014-12-31 21:28:14
阅读次数:
192
??
目的:使Nginx支持Rtmp协议推流,并支持hls分发功能
一、准备工作
模块:nginx-rtmp-module-master(支持rtmp协议)
下载地址:
http://nginx.org
https://github.com/arut/nginx-rtmp-module
1、安装依赖包:
#yum -y install gcc glibc glibc-devel m...
分类:
其他好文 时间:
2014-12-31 16:21:05
阅读次数:
262