CREATETABLEt(idINTNOTNULLPRIMARYKEY,aINTNOTNULL,INDEX(ID))ENGINE=InnoDB;一个经验不足的用户可能是想创建一个主键,然后再加上索引以供查询使用。事实上主键也就是索引了。所以完全没必要再添加INDEX(ID)了。(可以指定整个库,也可以指定单个表)[root@node1~]#pt-duplica..
分类:
数据库 时间:
2015-06-17 18:33:06
阅读次数:
144
python 安装成功后,默认的编码是ascii码,当程序中出现非ascii编码时,通常就会报这样的错。处理方法就是将python的默认编码改为uft-8在python安装文件中的Lib\site-packages里新建一个文件sitecustomize.py,里面代码如下:#encoding=ut...
分类:
其他好文 时间:
2015-06-17 15:14:38
阅读次数:
117
FFMPEG解码流程:1. 注册所有容器格式和CODEC: av_register_all()2. 打开文件: av_open_input_file()3. 从文件中提取流信息: av_find_stream_info()4. 穷举所有的流,查找其中种类为CODEC_TYPE_VIDEO5. 查找对...
分类:
其他好文 时间:
2015-06-17 11:09:45
阅读次数:
99
1. 注册所有解码器av_register_all();2. Codec & CodecContextAVCodec* codec = avcodec_find_decoder(CODEC_ID_AAC);if (!codec){fprintf(stderr, "codec not found\n"...
分类:
其他好文 时间:
2015-06-17 10:53:21
阅读次数:
116
在运行下面的步骤之前,请确保:1.你的项目已经激活了Google Cloud Storage和App Engine,包括已经创建了至少一个Cloud Storage bucket。2.你已经下载了client库并解压了。3.你已经安装并配置了最新的App Engine Java SDK。运行Loca...
分类:
其他好文 时间:
2015-06-17 00:29:22
阅读次数:
152
-http://www.cmd5.com/english.aspx (457,354,352,282)- http://www.md5crack.com- http://www.hashchecker.com- http://md5cracker.tk/ (MD5 Search engine by ...
分类:
Web程序 时间:
2015-06-16 22:54:13
阅读次数:
148
Google Cloud Storage client是一个客户端库,与任何一个生产环境使用的App Engine版本都相互独立。如果你想使用App Engine Development server开测试你的代码,你必须使用App Engine SDK 1.8.1及更高版本的development...
分类:
其他好文 时间:
2015-06-16 21:02:48
阅读次数:
166
Navicat for MySQL出现1030-Got error 28 from storage engine错误刚刚还能用这会儿就用不了了,估计是磁盘空间不足引起的!
在根目录/下执行命令:df -h [root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/map...
分类:
数据库 时间:
2015-06-16 17:05:12
阅读次数:
171
Affordable diesel engine designer watches mortgage loan features come forth because nearly all looked for instrument currently, while men and women st...
分类:
其他好文 时间:
2015-06-16 16:26:00
阅读次数:
90
问题:UnicodeDecodeError: 'gb2312' codec can't decode bytes in position 2-3: illegal multibyte sequence
原因:python在做将普通字符串转换为unicode对象时,
例如:u_string = unicode(string , "gb2312"),如果你的字符串string中有诸如某些繁体字,例...
分类:
编程语言 时间:
2015-06-16 11:11:19
阅读次数:
545