Could not create the view: An unexpected exception was thrown.解决办法:关闭myeclipse 原来工作空间的.metadata文件夹下出现com.genuitec.eclipse.ast.deploy.core.prefs错误提示---...
分类:
系统相关 时间:
2014-06-28 23:10:29
阅读次数:
349
LanguageTagTable of Contents1. The Language TagThis is a memo of RFC 5646, ie BCP-47.1 The Language TagLanguage tags are used to help identify languag...
分类:
其他好文 时间:
2014-06-28 21:48:05
阅读次数:
277
fstream流的eof()推断有点不合常理 按常理逻辑来说,假设到了文件末尾的话,eof()应该返回真,可是,C++输入输出流怎样知道是否到末尾了呢? 原来依据的是:假设fin>>不能再读入数据了,才发现到了文件结尾,这时才给流设定文件结尾的标志,此后调用eof()时,才返回真。 如果 find....
分类:
编程语言 时间:
2014-06-21 07:29:29
阅读次数:
262
由于每次不正常关闭 MongoDB 的行为
导致今天打开 MongoDB 发现出现如下错误
unclean shutdown detected
解决方案(很详细):
http://docs.mongodb.org/manual/tutorial/recover-data-following-unexpected-shutdown/...
分类:
数据库 时间:
2014-06-18 12:09:18
阅读次数:
283
当使用mail命令发邮件时,默认的是使用本地的smtp服务,centos5的时候是sendmail,centos6的时候是postfix。但每台机器都维护一个smtp服务,成本开销很大。通过修改/etc/mail.rc可以指定远程的smtpservercat>>/etc/mail.rc<<EOF#Forsetsmtpserversetsmtp=192.168.1..
分类:
其他好文 时间:
2014-06-16 16:31:56
阅读次数:
260
1 #include 2 int main()3 {4 int a,b;5
while(scanf("%d %d",&a,&b)!=EOF){6 printf("%d\n",(a+b));7 } 8 return 0;9
}说明:记得判断 !=EOF ...
分类:
其他好文 时间:
2014-06-10 12:00:04
阅读次数:
265
1 #include 2 int main() 3 { 4 int T,n; 5 int
a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8
...
分类:
其他好文 时间:
2014-06-10 11:56:12
阅读次数:
223
1 #include 2 int main() 3 { 4 int i,n,a,sum=0;
5 while(scanf("%d",&n)!=EOF){ 6 for(i=0;i<n;i++){ 7 scanf("%d",&a); 8
...
分类:
其他好文 时间:
2014-06-10 11:30:59
阅读次数:
200
1 #include 2 int main()3 {4 int a,b;5
while(scanf("%d %d",&a,&b)!=EOF){6 printf("%d\n\n",a+b);7 }8 return 0;9
}
分类:
其他好文 时间:
2014-06-10 11:24:26
阅读次数:
253
1 #include 2 int main() 3 { 4 int T,n; 5 int
a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8
...
分类:
其他好文 时间:
2014-06-10 11:22:38
阅读次数:
201