看到鸟哥私房菜对NFS的介绍,就想试试玩一下。看起来步骤也很简单。1.背景名词。NFS(Network File System)作用:让所有的Unix-like 机器通过网络共享彼此的文件局限:文件权限问题。客户端和服务器端必须具备相同的账号才能够访问某些目录或文件。RPC(Remote Proce...
分类:
系统相关 时间:
2015-07-17 18:41:53
阅读次数:
221
Oracle使用正则表达式4个函数: 1。regexp_like(expr_col,'正则表达式') 2。regexp_substr(expr_col,' 3。regexp_instr 4。regexp_replace POSIX 正则表达式由标准的元字符(metacharacters)所构成:.....
分类:
数据库 时间:
2015-07-17 18:35:06
阅读次数:
180
在使用QSqlQuery查询数据并用query的结果value出现QSqlQuery::value: not positioned on a valid record错误query.prepare("select id,name from employee where name like :inpu...
分类:
数据库 时间:
2015-07-17 15:30:09
阅读次数:
250
登陆mysql终端,查看当前配置(默认单位是字节):show VARIABLES like '%max_allowed_packet%';在mysql的安装目录下 找到 my.ini文件 加入以下代码:interactive_timeout = 120wait_timeout = 120max_al...
分类:
数据库 时间:
2015-07-17 11:40:27
阅读次数:
141
1.查询的模糊匹配尽量避免在一个复杂查询里面使用 LIKE '%parm1%'—— 红色标识位置的百分号会导致相关列的索引无法使用,最好不要用.解决办法:其实只需要对该脚本略做改进,查询速度便会提高近百倍。改进方法如下:a、修改前台程序——把查询条件的供应商名称一栏由原来的文本输入改为下拉列表,用户...
分类:
数据库 时间:
2015-07-17 11:39:41
阅读次数:
201
测试环境:服务端和客户端均为win7,MySql数据库、表字符集为utf-8,字段字符集与表一致。
1、使用mysql命令进行操作时的乱码问题解决。
(1)设置当前字符集
set names gbk
(2)修改单个字符集参数
使用命令show variables like 'char%',查看所有字符集变量。
+--------------------------+---------...
分类:
数据库 时间:
2015-07-16 19:51:01
阅读次数:
119
import repage=20f=open('test','r')html=f.read()f.close()#取得标题title=re.search('(.*?)',html,re.S).group(1)print title#取得链接地址like=re.findall("href='(.*?)...
分类:
编程语言 时间:
2015-07-16 18:41:08
阅读次数:
186
The first answer in this link has a nice illustrative explanation.Suppose the given array is like [nums[0], nums[1], nums[2], nums[3]]. Then the resul...
分类:
其他好文 时间:
2015-07-16 15:57:36
阅读次数:
125
题目如下:
Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwanted pieces and sewing the re...
分类:
其他好文 时间:
2015-07-16 14:04:03
阅读次数:
111
Time Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 455ADescriptionAlex doesn't like boredom. That's why...
分类:
其他好文 时间:
2015-07-16 11:10:29
阅读次数:
100