- 博客(10)
- 收藏
- 关注
原创 python 发送邮件
@staticmethod def send_mail(subject, content, mail_list,filename =None): MAIL_FROM = APP_CFG.MAIL_USER_NAME + "+APP_CFG.MAIL_USER+">" message = MIMEMultipart()
2013-04-26 21:05:59 637
转载 Python内置的字符串处理函数整理
收集常用的Python 内置的各种字符串处理 函数的使用方法str='python String function'生成字符串变量str='python String function' 字符串长度获取:len(str)例:print '%s length=%d' % (str,len(str)) 字母处理全部大写:str.upper()全部小写:str.low
2013-04-25 12:24:21 630
原创 sphinx sphinxse 扩展系统列(Matchestotal、Matchesfound、Querymsec),显示匹配总行数、查询时间等
get_rec ( byte * buf, const byte * key, uint keylen,uint a,uint b,uint c );index_next_same ( byte * buf, const byte * key, uint keylen,uint a,uint b,uint c );SPHINXSE_SYSTEM_COLUMNS 6SPH_RET ( g
2013-04-23 14:58:59 762
原创 linux sendmail mutt 发送邮件
yum install sendmail* yum install muttm4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cfservice sendmail start修改/etc/hosts文件, 添加 127.0.0.1 hdytest01echo "abc"|mutt -s "test" hewy126
2013-04-23 11:22:22 813
转载 Jedis使用总结【pipeline】【分布式的id生成器】【分布式锁【watch】【multi】】【redis分布式】
前段时间细节的了解了Jedis的使用,Jedis是redis的java版本的客户端实现。本文做个总结,主要分享如下内容:【pipeline】【分布式的id生成器】【分布式锁【watch】【multi】】【redis分布式】好了,一个一个来。一、 Pipeline官方的说明是:starts a pipeline,which is a very efficient way
2013-04-18 17:25:01 1003
转载 Go 语言编写 CPython 扩展 goPy
goPy 是一个新的开源项目,实现了用 Go 语言来编写 CPython 扩展。示例代码:01package simple02 03import (04 "fmt"
2013-04-17 20:45:30 1173
转载 关于nginx开启特定路径的ssl证书验证
不幸的, nginx不支持特定路径开启ssl_verify_client, 如果在location下面使用ssl_verify_client, 就会提示nginx: [emerg] “ssl_verify_client” directive is not allowed here某处看到的说法是path based client ssl verification
2013-04-16 10:24:58 3723 1
原创 Dual Master 复制架构(Master-Master)
1. Dual Master 复制架构(Master-Master)说明:1) 相比Master-Slave架构,可以避免因为正常的常规维护操作的停机所带来重新搭建replication的麻烦(因为任何一端都记录了自己当前复制到对方的什么位置了,系统重启之后,自动复制,不需人工干预,节省维护成本)2) 结合keepalived等第三方HA软件,在故障时自动转移,自动切换
2013-04-03 10:16:37 1371
转载 linux中yum通过光盘安装gcc
linux中yum通过光盘安装gcc1.我的linux系统是redhat企业版的(去电脑城配电脑的时候那边提供给我的),用yum install gcc的时候发现不行我还是新手,所以我也不清楚为什么,看网上有的人说是因为企业版版本的yum没有注册什么的,导致不能使用。没办法,我就只能从光盘中来安装了。【a】.首先挂在光盘,将你的linux光盘插入到电脑中
2013-04-01 15:12:32 2375
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人