上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页
摘要: 先安装MySQL-python pip install mysqlclient (Windows) 测试代码: 阅读全文
posted @ 2016-05-07 16:09 缤纷世界 阅读(8272) 评论(0) 推荐(0) 编辑
摘要: 导出: 导入: 阅读全文
posted @ 2016-04-14 15:50 缤纷世界 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1、下载Python3.4安装包 2、解压、编译、安装 3、创建Python3.4的链接(CentOS6.7默认安装的是Python2) 4、验证 阅读全文
posted @ 2016-03-24 08:56 缤纷世界 阅读(1985) 评论(0) 推荐(0) 编辑
摘要:   阅读全文
posted @ 2016-03-14 17:25 缤纷世界 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: //正则:用于区分中文为两个字节function getLength(str){ return String(str).replace(/[^\x00-\xff]/g,'aa').length;} 输入: abc:返回3 测试:返回4 阅读全文
posted @ 2016-03-11 10:47 缤纷世界 阅读(562) 评论(0) 推荐(0) 编辑
摘要: mysqldump -uroot -pdsideal -t dsideal_db t_resource_info --where="res_type=1 and group_id=1 and ts>2015122115005600474 ORDER BY TS DESC LIMIT 1" --tri... 阅读全文
posted @ 2016-01-13 09:43 缤纷世界 阅读(19469) 评论(0) 推荐(0) 编辑
摘要: 一、获取Access Token示例 1. 请您将以下HTTP请求直接粘贴到浏览器地址栏内,并按下回车键。https://openapi.baidu.com/oauth/2.0/authorize?response_type=token&client_id=L6g70tBRRIXLsY0Z3HwKq... 阅读全文
posted @ 2015-11-26 11:22 缤纷世界 阅读(14819) 评论(9) 推荐(1) 编辑
摘要: yum install hdparm参数: -a 设定读取文件时,预先存入块区的分区数,若不加上选项,则显示目前的设定。 -A 启动或关闭读取文件时的快取功能。 -c 设定IDE32位I/O模式。 -C 检测IDE硬盘的电源管理模式。 -d 设定磁盘的DMA模式。 -f 将内存缓冲区的数据写入硬盘,... 阅读全文
posted @ 2015-11-13 18:31 缤纷世界 阅读(5927) 评论(0) 推荐(0) 编辑
摘要: select concat('insert into t_dm_stage(STAGE_ID,STAGE_NAME) values(',STAGE_ID,',','\'',STAGE_NAME,'\'',');') into outfile '/tmp/sql.txt' from t_dm_sta... 阅读全文
posted @ 2015-10-26 08:14 缤纷世界 阅读(652) 评论(0) 推荐(0) 编辑
摘要: location ~.*\.(js|css|html|png|jpg)${ expires 3d;}expires 3d; //表示缓存3天expires 3h; //表示缓存3小时expires max; //表示缓存10年expires -1; //表示永远过期。如果设置为-... 阅读全文
posted @ 2015-10-23 08:25 缤纷世界 阅读(34711) 评论(3) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页