第一种格式public static void if1(){ int x = 3; //if后面必须是条件表达式结果为boolean类型 if(x>1){ System.out.println("yes"); } ...
分类:
其他好文 时间:
2014-07-16 21:01:54
阅读次数:
140
主要问题还是之前装过,卸载的时候卸载不干净导致的。如下:安装到最后出现:Unable to update security settings. Access denied for user 'root'@'localhost' (using password: YES)这个问题还是在网上找的,引自:...
分类:
数据库 时间:
2014-07-16 20:15:21
阅读次数:
591
登录某台服务器的mysql时候总报错:mysql2/client.rb:58:in `connect': Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error)解决方法: 在windows 下的解...
分类:
数据库 时间:
2014-07-11 21:04:14
阅读次数:
267
Linux ssh登陆老提示“permission denied,please try again” ,但是iptables已经关掉了修改/etc/ssh/sshd_config文件。找如下的一句#PermitRootLogin yes改为如下的PermitRootLogin yes注意,要把前面的...
分类:
系统相关 时间:
2014-07-11 09:05:33
阅读次数:
269
Timer常用的一些东西
1. 初始化 timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(changeTime:) userInfo:nil repeats:YES];
2.timer 马上执行[tiemr fire];如果在初始化的时候不加这一句代码 ,timer也马上回...
分类:
移动开发 时间:
2014-07-11 00:43:22
阅读次数:
359
Rsync(remote synchronize) 是一个远程数据同步工具,可以使用“Rsync算法”同步本地和远程主机之间的文件。
rsync的好处是只同步两个文件不同的部分,相同的部分不在传递。类似于增量备份,
这使的在服务器传递备份文件或者同步文件,比起scp工具要省好多时间。
具体的用法:
1.在本地机器上对两个目录同步
$ rsync -zvr filena...
分类:
其他好文 时间:
2014-07-09 10:39:52
阅读次数:
234
1,安装桥接软件包yuminstallbridge-utils2,修改文件/etc/sysconfig/network-scropts/ifcfg-eth0;BRIDGE=br0删除下面ONBOOT=yes
IPADDR=10.0.0.23
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
DNS1=61.134.1.43,建立文件/etc/sysconfig/network-scripts/ifcfg-br0;BEVICE=br0
B..
分类:
其他好文 时间:
2014-07-09 08:34:06
阅读次数:
235
帐号配置:catauthz[groups]g_admin=admin,admin_rsyncg_库名=auser,buser,cuser,duser#库目录权限分配置[linuxspace:/]@g_admin=rw@g_PMC=r*=[linuxspace:/01workdir]@g_admin=rw@g_PMC=rauser=rw*=catpasswd[users]admin=passadmin_rsync=passauser=passSVN提交工作注意事项..
分类:
其他好文 时间:
2014-07-08 09:17:31
阅读次数:
198
1、判断字符串是否包含某个字符
if( [str rangeOfString:@"hello"].location != NSNotFound) {
NSLog(@"yes");
} else {
NSLog(@...
分类:
移动开发 时间:
2014-07-06 11:18:41
阅读次数:
226
UITableView本身自带了(增、删)编辑功能:
1.只要调用UITableView的编辑代码 就会进入编辑状态:
[self.tableView setEditing:!self.tableView.editing animated:YES];
2.进入编辑状态的UITableView会调用代理的
- (UITableViewCellEditingStyle) tableView:(...
分类:
移动开发 时间:
2014-07-06 08:18:44
阅读次数:
238