上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 36 下一页
摘要: ubuntu Server 设置主机静态 ip地址1:先输入 ifconfig 查看当前网络配置2:然后关闭 eth0 网卡sudo ifdown eth03:配置静态ipsudo vim /etc/network/interfaces打开文件,修改eth0的配置,设置您的ip,网关,子网掩码4:此... 阅读全文
posted @ 2014-05-22 20:31 cocoajin 阅读(2514) 评论(0) 推荐(0) 编辑
摘要: ubuntu 软件包管理工具 dpkg,apt-get,aptitude 区别一:dpkgdpkg 是一种比较低层的软件包安装管理工具,在安装时,不会安装软件包的依赖关系;只能安装所要求的软件包;dpkg通常用于 安装.deb文件,不会自动解决软件安装过程中的依赖关系二:apt-get apt-ge... 阅读全文
posted @ 2014-05-21 16:49 cocoajin 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: linux more 上一页,下一页使用more命令可以分页查看内容;如:more install.txt分页查看文本内容;按回车:默认下一行数据;按空格键盘,默认下一页,以当前屏幕为单位;按Ctrl+ B 上一页,以当前屏幕大小为单位;按B 回到文档第一页面注:B 上一页,操作只使用于 more ... 阅读全文
posted @ 2014-05-21 12:52 cocoajin 阅读(17808) 评论(1) 推荐(2) 编辑
摘要: mac 终端默认 ls 命令无颜色显示;1: 使用 ls -G 可以显示基本颜色2:使用gnu coreutils 工具mac 终端 使用 gnu coreutils 工具 ls 颜色显示以下操作都是终端操作1:先下载安装 hombrewruby -e "$(curl -fsSL https://r... 阅读全文
posted @ 2014-05-15 10:35 cocoajin 阅读(6301) 评论(0) 推荐(0) 编辑
摘要: mac 终端 使用 solarized 主题设置语法高亮先来看看 solarized 在 mac 终端上的效果图片一:先下载solarized 官网下载:https://github.com/altercation/solarized http://ethanschoonover.com... 阅读全文
posted @ 2014-05-15 10:03 cocoajin 阅读(13133) 评论(0) 推荐(1) 编辑
摘要: iOS 设置UILabel 的内边距- (void)drawTextInRect:(CGRect)rect { UIEdgeInsets insets = {0, 5, 0, 5}; [super drawTextInRect:UIEdgeInsetsInsetRect(rect, in... 阅读全文
posted @ 2014-05-13 14:32 cocoajin 阅读(18903) 评论(2) 推荐(0) 编辑
摘要: NSURLSession 学习笔记一:NSURLSession类似之前的NSURLConnection, 可配置每个session的 cookie,证书等网络连接配置信息NSURLSessionConfiguration包含三大任务 :NSURLSessionTask--(NSURLSessionD... 阅读全文
posted @ 2014-05-05 11:25 cocoajin 阅读(3731) 评论(0) 推荐(0) 编辑
摘要: 官网:https://github.com/facebook/popDemo:https://github.com/callmeed/pop-playground一:pop的基本构成:POPPropertyAnimation 属性动画POPSpringAnimation 弹簧效果动画POPBasic... 阅读全文
posted @ 2014-05-05 10:18 cocoajin 阅读(2335) 评论(0) 推荐(0) 编辑
摘要: iOS socket Stream测试环境,mac osx 10.8一:建立服务器端 由于mac osx10.8 已经集成 python2和 Twisted,我们可以直接利用此,构建一个简单的socket 服务器 如下测试一个简单的聊天 socket 并,定义,加入聊天时发送:iam:用户名 发送信... 阅读全文
posted @ 2014-04-29 14:37 cocoajin 阅读(971) 评论(0) 推荐(0) 编辑
摘要: iOS 线程操作库 PromiseKit官网:http://promisekit.org/github:https://github.com/mxcl/PromiseKit/tree/master一:安装第一种方式使用 cocoaPods直接安装方式:下载PromiseKit 先如图文件导入你的项目... 阅读全文
posted @ 2014-04-26 15:27 cocoajin 阅读(2730) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 36 下一页