05 2012 档案
Contact Author与Corresponding Author的区别
摘要:What is Contact Author andCorresponding AuthorContact AuthorThis is the person whose information will populate the PROLE_AUTHOR tags and will thus receive all correspondence directed to ##PROLE_AUTHOR_EMAIL##.The contact author by default will be the first person added to the author list (but not ne 阅读全文
posted @ 2012-05-31 21:43 yeahgis 阅读(9594) 评论(0) 推荐(0)
删除vector指定位置的元素
摘要:#include <vector>#include <iostream>using namespace std;int main(int argc, char** argv){ std::vector<int> vec; for(int i=0;i<100;i++) { vec.push_back(i); } printf("10:%d\n",vec[10]); printf("size:%d\n",vec.size()); printf("******************************* 阅读全文
posted @ 2012-05-29 09:40 yeahgis 阅读(62186) 评论(1) 推荐(2)
mysql master-slave replication模式下slave数据库不同步的解决办法
摘要:可能是有人在我们集群的一个slave节点上对备份数据库单独做了写操作,导致该slave节点数据库与master不同步:mysql>show slave status; 显示:Slave_SQL_Running状态为No,由于一直没有记录数据库的相关日志,二进制的备份文件和位置也搞得稀里糊涂,干脆直接干掉这个节点的备份,重新配置。过程:1. 锁定master表为只读:#锁定master数据库表MYSQL>FLUSH TABLES WITH READ LOCK;2. 导出要备份的数据库:[user@gisnode-1 ~]$ mysqldump -u myuser -p gisdb&g 阅读全文
posted @ 2012-05-15 10:50 yeahgis 阅读(3405) 评论(0) 推荐(0)