Smokeping on nginx

nginx: include next config:# smokping nginx configuare# system os: debian 7.0location /smokeping { access_log /var/log/nginx/server.smokeping.access.log; error_log /var/log/nginx/server.smokeping.error.log; root /var/www; index smokeping.cgi; auth_basic “Restricted”; auth_basic_user_file /var/www/users.htpasswd; location ~ .cgi$ { root /var/www; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap.socket; fastcgi_index smokeping.cgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }}new folder:mkdir /var/www/smokepinglink file to /var/www/smokeping:ln -s /usr/share/smokeping/www/* /var/www/smokeping/create htpasswd filehtpasswod /var/www/users.htpasswdreload the sevice configureservice nginx reload

<span title='2013-11-17 22:27:00 +0000 UTC'>2013/11/17 Nov</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;57 words&nbsp;·&nbsp;map[name:SCys uri:]

[配机]APU-E450

按照同事的要求1k内完成。玩页游,看电影~0 CPU: APU E2-1800 这个比较划算,近两年出来比较超值的U了,Intel的U就烂在GPU上,这个是事实。200 内存: 4G足够看看电影玩玩网页游戏了,本身收到主板限制120 硬盘: 120G很小?用完再加,这个简单,二手~250 显示器: 19寸,很简单很普通的国产A+屏幕350 主板:APXD1-DM 50 电源:19V适配器60 键盘鼠标1030 完成~

<span title='2013-10-28 04:14:00 +0000 UTC'>2013/10/28 Oct</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;16 words&nbsp;·&nbsp;map[name:SCys uri:]

tw_cli 在 3.10 kernel 出现的崩溃原因

http://serverfault.com/questions/525923/lsi-3ware-tw-cli-and-tdm2-segfault-with-debian-linux-kernels-after-3-8?answertab=votes#tab-topThe problem isn’t the date, it’s that tw_cli is looking for X.Y.Z(-R-arch) in the release and it’s only getting X.Y(-R-arch) - 3.2.0-4-amd64 vs 3.10-2-amd64. When the release is set to 3.10.0-2-amd64 it runs fine. They may be doing a sscanf() with limited formats, and little or no error checking.jam:~# uname -r3.10-2-amd64jam:~# tw_cli /c0 show firmwareSegmentation faultjam:~# echo 3.10.0-2-amd64 > /sys/module/utsname/parameters/releasejam:~# uname -r3.10.0-2-amd64jam:~# tw_cli /c0 show firmware/c0 Firmware Version = FE9X 4....

<span title='2013-09-05 18:15:00 +0000 UTC'>2013/09/05 Sep</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;136 words&nbsp;·&nbsp;map[name:SCys uri:]

sqlalchemy + pyodbc 读取MSSQL数据的UTF-8处理

这段时间需要直接读取MSSQL 2000的数据(都是那些行业霸王害的!)。因为一直用SA读取,所以就配置了pyodbc + freetds进行处理。可是正常的配置,可以在命令内进行,问题出现在代码中。既是代码链接部分了。详细注意一点:engine = engine = sa.create_engine(dsn, connect_args={‘unicode_results’:True})就是这么简单,增加一个链接用参数:‘unicode_results’:True

<span title='2013-08-28 03:40:00 +0000 UTC'>2013/08/28 Aug</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;9 words&nbsp;·&nbsp;map[name:SCys uri:]

DD-Wrt关于VPN客户端注意问题

dd wrt具备的功能是非常完整的,我现在用的asus一款过气路由(13U B1)做场外监控。基本依靠VPN(openvpn)客户端链接,发现一个非常容易被人忽略的问题时间。一般来说小路由上面的时间非常容易被人遗忘,提醒自己,并且作为意见写下。对应问题: tls error 客户端证书验证失败。解决方法: 设置ntp同步时间公开的ntp 服务器如下:http://support.ntp.org

<span title='2013-08-22 07:33:00 +0000 UTC'>2013/08/22 Aug</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;8 words&nbsp;·&nbsp;map[name:SCys uri:]