仅列出标题 列出摘要
上一页 1 ··· 4 5 6 7 8 9 10 下一页
2013年5月6日

django验证码模块 DjangoVerifyCode

摘要: 1.下载:git clone https://github.com/tianyu0915/DjangoVerifyCode.git2. cd $dir;python setup.py install显示验证码(views.py)from DjangoVerifyCode import Codedef code(request): code = Code(request) code.worlds = ['hello','world','helloworld'] #code.type = 'world' code.type =  阅读全文
posted @ 2013-05-06 23:23 baoyiluo 阅读(474) 评论(0) 推荐(0) 编辑
2013年5月3日

内网用ssh连接linux很慢

摘要: 网上关于该问题的常用解决方法是(主要就是修改配置文件/etc/ssh/sshd_config):我的系统是CENTOS 5.3 ,SSH连接起来很慢,本身是内网,很慢让人受不了,基本上要近一分钟才出现提示输入密码。基本上解决办法就:1,禁用DNS反向解析UseDNS no 2,还有系统默认有个忽略以前登录过主机的记录,将这个打开基本上就会解析登录慢的问题IgnoreRhosts yes 重启SSH服务service sshd reload 3、修改“GSSAPIAuthentication”的值为“no”(没有的添加该配置选项,注释掉的放开即可);其实用户可以自己运行“ssh -v host” 阅读全文
posted @ 2013-05-03 16:17 baoyiluo 阅读(310) 评论(0) 推荐(0) 编辑
2013年4月3日

有趣的javascript网站

摘要: http://js1k.com/ 阅读全文
posted @ 2013-04-03 10:50 baoyiluo 阅读(123) 评论(0) 推荐(0) 编辑
2013年4月1日

css设置body倾斜。

摘要: body {transform:rotate(-8deg);} 阅读全文
posted @ 2013-04-01 16:08 baoyiluo 阅读(142) 评论(0) 推荐(0) 编辑
2013年2月24日

linux 系统中文乱码

摘要: 1.首先安装:yum -y install Chinese* (有待验证)2.安装:yum -y install *font*3配置/etc/profile 将export LC_ALL注释掉,也可自己设置如果你知道是什么编码方式。注释掉让系统采用默认的编码方式。4.配置/etc/sysconfig/i18n,一个中文系统的例子如下:LANG="en_US.UTF-8"SYSFONT="latarcyrheb-sun16"export LC_ALL="zh_CN.GB18030" 阅读全文
posted @ 2013-02-24 12:00 baoyiluo 阅读(169) 评论(0) 推荐(0) 编辑
2013年2月6日

phpredisadmin的配置

摘要: 1 说明:真正的phpredisadmin是2011*.gz包。但是需要phpredis,php 2 php安装此处不再讲解。 3 下面开始介绍步骤: 4 1.解压包2011到apache的根目录下,并在127.0.0.1:80/下点击此目录。发现缺phpredi s,此时进行以下步骤: 5 6 (1)解压nicolasff-phpredis* 7 『1』phpize 8 如果没有phpize就要进入如下步骤了: 9 因为phpize源自于php-devel。 10 rpm -vhi php-devel*并根据依赖包进行安装完成。(此文> 件夹已提供) 11 『2』./configure 12 『3』make&make install 13 『4』修改/etc/php.ini 14 阅读全文
posted @ 2013-02-06 10:56 baoyiluo 阅读(461) 评论(0) 推荐(0) 编辑

ubuntu 网桥配置

摘要: 1 auto lo 2 iface lo inet loopback 3 auto eth0 4 iface eth0 inet manual 5 auto br100 6 iface br100 inet dhcp 7 address 192.168.8.245 8 netmask 255.255.255.0 9 bridge_ports eth010 bridge_stp off11 bridge_fd 012 bridge_hello 213 bridge_maxage 1214 gateway 192.168.8.115 nameservers 172.16.1.50 阅读全文
posted @ 2013-02-06 09:53 baoyiluo 阅读(239) 评论(0) 推荐(0) 编辑
2013年1月28日

python的SimpleHTTPServer

摘要: python自带了一个web服务器SimpleHTTPServer。我们可以很简单地输入下面的命令来启动web服务器,提供一个文件浏览的web服务。python -m SimpleHTTPServer 80然后在浏览器输入http://localhost就可以看到当前目录下的所有目录和文件了。更复杂的用法直接可以看python的文档:http://docs.python.org/library/simplehttpserver.html。 阅读全文
posted @ 2013-01-28 20:05 baoyiluo 阅读(283) 评论(2) 推荐(0) 编辑
2013年1月21日

查看linux系统占用的端口号

摘要: netstat -ltunp 阅读全文
posted @ 2013-01-21 17:43 baoyiluo 阅读(130) 评论(0) 推荐(0) 编辑
2013年1月19日

python os一些相关操作

摘要: 1 import os 2 path = os.path.join(os.path.expanduser("~"),"a.log") 3 filepath, filename = os.path.split(path) 4 a,b = os.path.splitext(filename) 5 print a,b 6 for fname in os.listdir("/root/Desktop"): 7 #if os.path.isfile(os.path.join("/root/Desktop",fname)): 阅读全文
posted @ 2013-01-19 16:06 baoyiluo 阅读(127) 评论(1) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页