mrjeye's blog
mrjeye · 共 107 篇文章
删除more里面的Edit
删除 more 里面的 Edit self.tabBarController.customizableViewControllers = nil; customizableViewControllers The subset of view controllers managed by this tab bar controller that can be customized. @property(nonatomic, copy) NSArray *customizableViewControllers Discussion This property controls which ite…
2011-12-01 16:43 · iphone · 评论(0)
svn 文件状态标记含义
A item 文件、目录或是符号链item预定加入到版本库。 C item 文件item发生冲突,在从服务器更新时与本地版本发生交迭,在你提交到版本库前,必须手工的解决冲突。 D item 文件、目录或是符号链item预定从版本库中删除。 M item 文件item的内容被修改了。 R item 文件、目录或是符号链item预定将要替换版本库中的item,这意味着这个对象首先要被删除,另外一个同名的对象将要被添加,所有的操作发生在一个修订版本。 X item 目录没有版本化,但是与Subversion的外部定义关联,关于外部定义,可以看“外部定义”一节。 ? item 文件、目录或是符号链i…
2011-11-30 09:31 · iphone · 评论(0)
强大的awk
AWK介绍 0.awk有3个不同版本: awk、nawk和gawk,未作特别说明,一般指gawk。 1.awk语言的最基本功能是在文件或字符串中基于指定规则来分解抽取信息,也可以基于指定的规则来输出数据。完整的awk脚本通常用来格式化文本文件中的信息。 2.三种方式调用awk awk 'awk_script' input_file1 awk的常用选项option有; ① -F fs : 使用fs作为输入记录的字段分隔符,如果省略该选项,awk使用环境变量IFS的值 ② -f filename : 从文件filename中读取awk_script ③ -v var=value : 为awk_s…
2011-11-29 15:53 · linux · 评论(0)
It is indirectly referenced from required .class files
The type javax.servlet.GenericServlet cannot be resolved. It is indirectly referenced from required .class files Bulid Path->Configure Build Path… -> Libraries -> Add Library -> Server Runtime
2011-11-28 16:42 · java web · 评论(0)
uitableview滚动到最后一行
- (void)scrollTableToFoot:(BOOL)animated { NSInteger s = [self.chattable numberofsections]; if (s<1) return; NSInteger r = [self.chattable numberofrowsinsection:s-1]; if (r<1) return; NSIndexPath *ip = [nsindexpath indexpathforrow:r-1 insection:s-1]; [self.chattable scrolltorowatindexpath:ip atscro…
2011-11-25 17:30 · iphone · 评论(0)
查看文件数量
查看当前目录下有哪些目录 ls -l |grep "^d" 数量 ls -l |grep "^d" |wc -l 文件数量 find ./ -type file |wc -l 指定类型 find ./ -name "*.h" |wc -l 分页 find ./ -type file |more
2011-11-25 12:38 · linux · 评论(0)
改变项目名
Xcode3.2:Project->Rename... Xcode4.2:View->Utilties->Show File Inspector
2011-11-23 11:31 · iphone · 评论(0)
Code Sign error: Provisioning profile XXXX can't be found
如果你更新了profile,再编译iphone项目,发现下面的错误,那你无论如何clean也不会成功,那真是让人恼火阿 这时候,先copy上面那行出错信息,然后关闭这个项目,打finder到你的项目文件xxxx.xcodeproj上面按鼠标右键,选择Show Package Contents菜单,在新打开的finder的,找到project.pbxproj,使用一个文本edit打开它,用查找功能找到所有的有那行编码的位置,删除那一行,至少应该有两个地方 删除以后,保存这个 project.pbxproj 文件,用xcode重新打开你的项目,再编译一下试试 from:http://www.cn…
2011-11-23 11:12 · iphone · 评论(0)
xcode4 svn配置
Xcode SVN配置 编辑 ~/.subversion/config 文件 注意:如果”.subversion”目录不存在,请运行”svn status”命令,虽然此命令会失败,但是会为你创建所需要的文件. vim ~/.subversion/config 打开文件 找到 global-ignores 一行,去掉注释,编辑成 global-ignores = build *~.nib *.so *.pbxuser *.mode .perspective xcuserdata project.xcworkspace Xcode项目文件中有些文件是文本文件,需要告诉SVN,因为SVN能更好地管…
2011-11-23 09:43 · iphone · 评论(0)
几个常用的端口
FTP的端口是 21 SSH (Secure Shell)服务使用tcp 22 端口 TELNET 23 端口 DHCP server的端口号是67 MAIL 的端口号是25\110 pop3\smtp 的端口号是 110/25 DNS 的端口号是 53 HTTP通信用的端口号是80 SMMP:性能测试标准方法 mysql默认端口是3306 Sql服务的默认端口. 3389 tomcat默认端口是8080 windows远程终端 的端口号是3389 ORACLE默认端口1521、1526
2011-11-22 12:16 · linux · 评论(0)
iOS5键盘弹出view自适应
[[nsnotificationcenter defaultcenter]addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[nsnotificationcenter defaultcenter]addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; #ifdef __IPHONE_5…
2011-11-21 16:37 · iphone · 评论(0)