[置顶] 词云图在线生成工具

摘要: 记录一下,平常使用的工具 词云图在线生成,超级简单好用 参考: https://www.ciyunwenzi.com/ 阅读全文

posted @ 2021-09-27 16:07 joyesong 阅读(1091) 评论(0) 推荐(0)

2013年12月5日

SVN 服务器安装及配置

摘要: 安装SVN安装顺序1、 安装aprtar zxvf apr-1.4.5.tar.gz -C /usr/local/src/cd /usr/local/src/apr-1.4.5/./configure --prefix=/usr/local/aprmakemake install2、 安装apr-utiltar zxvf apr-util-1.3.12.tar.gz -C /usr/local/src/cd /usr/local/src/ apr-util-1.3.12/./configure --prefix=/usr/local/apr-util --with-apr=/usr/local 阅读全文

posted @ 2013-12-05 11:01 joyesong 阅读(393) 评论(0) 推荐(0)

lighttpd 服务器监控状态配置

摘要: lighttpd 服务器状态配置1 打开mod_auth 模块2生成密码文件#echo "hh:gg" > .lighttpd.userchown apache:apache .lighttpd.user3 修改lighttpd.conf 加入auth.backend = "plain"auth.backend.plain.userfile = "/usr/local/lighttpd-1.4.22/etc/.lighttpd.user"auth.require = ( "/server-status" =& 阅读全文

posted @ 2013-12-05 10:53 joyesong 阅读(454) 评论(0) 推荐(0)

模板jinja2常用方法

摘要: 数学运算+,-,*,/,**,//,%等数学运算符都支持.逻辑运算and,or,not也同样支持1.in判断元素是否在集合中2.|管道操作符,默认使用Apply调用一个方法3.~字符串连接4()调用可调用对象5..和[]获取属性6.三元操作:value1ifexpressionelsevalue2支持7.内建filter:(对于内建filter的别名,可以在jinja2的filters.py文件中查找)8.abs(number)返回一个值的绝对值9.batch(value,lincount,fill_with=None):接 受的value是一个序列对象,linecount表明个数,最后生成一 阅读全文

posted @ 2013-12-05 10:52 joyesong 阅读(1595) 评论(0) 推荐(0)

全文检索sphinx 连接mysql的python客户端例子

摘要: import sphinxapi import pprintdef test(): spc = sphinxapi.SphinxClient() spc.SetServer('127.0.0.1', 9312) spc.SetMatchMode(sphinxapi.SPH_MATCH_ANY) # 设置返回数据的开始位置和条数 spc.SetLimits(0, 5) # 检索关键字"矢量" res = spc.Query('我', '*') pprint.pprint (res) 打印结果: {'attrs': 阅读全文

posted @ 2013-12-05 10:51 joyesong 阅读(704) 评论(0) 推荐(0)

python 发送邮件错误解决:smtplib.SMTPException SMTP AUTH extension

摘要: 报错:smtplib.SMTPException: SMTP AUTH extension not supported by server解决:在发送之前加上这俩句 smtp.ehlo() smtp.starttls()原因:可能是Python各版本2.5(2.6)发送邮件的程序中有些不一样 阅读全文

posted @ 2013-12-05 10:49 joyesong 阅读(3260) 评论(0) 推荐(0)

导航