摘要: https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/https://blog.kuoruan.com/69.htmlhttps://segmentfault.com/a/119 阅读全文
posted @ 2015-11-21 12:05 chemandy 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 引用自 http://snippetinfo.net/media/117下载源:php-5.2-x64.zipwget 源包.zipyum -y install httpd libXpm.so.4 libt1.so.5 autoconf automake gdrpm -ivh php-5.2.17-... 阅读全文
posted @ 2015-10-14 19:25 chemandy 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 压缩文件tar -czvf xxx.tar.gz yourdict解压文件tar xzf aa.tar.gz 阅读全文
posted @ 2015-10-10 19:59 chemandy 阅读(174) 评论(0) 推荐(0) 编辑
摘要: ps -ef | grep ss-server | grep -v ps | grep -v grep 阅读全文
posted @ 2015-10-10 17:42 chemandy 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: # yum remove php-*# cd /root/ && mkdir new_php && cd new_php# wget -r http://yum.mchost.ru/pub/php52/centos/6/x86_64/RPMS/# mv yum.mchost.ru/pub/php52... 阅读全文
posted @ 2015-10-09 23:33 chemandy 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 参考并转载自:http://www.embbnux.com/2014/09/05/git_server_let_code_auto_deploy/http://www.chenyudong.com/archives/git-sync-manage-website.html#i1. 创建远程仓库$ m... 阅读全文
posted @ 2015-10-07 21:21 chemandy 阅读(921) 评论(0) 推荐(0) 编辑
摘要: 参考并部分转载自:http://www.pfeng.org/archives/7571. 安装依赖yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel git python py... 阅读全文
posted @ 2015-10-07 20:54 chemandy 阅读(306) 评论(0) 推荐(0) 编辑
摘要: ###################### 教程一 #######################1. 创建git用户和用户组#新建一个git用户组sudo groupadd git #新建一个git用户,创建目录,并禁止shell登录,添加到git用户组sudo useradd git -m -... 阅读全文
posted @ 2015-10-07 20:43 chemandy 阅读(394) 评论(0) 推荐(0) 编辑
摘要: mkdir /data #创建挂载目录fdisk –l #查看需要挂载的云盘,如/dev/xvdb友情提示:若您执行fdisk-l命令,发现没有/dev/xvdb 表明您的云服务无数据盘,那么您无需进行挂载,此时该教程对您不适用mkfs.ext4 /dev/xvdb #格式化云盘echo ‘/dev... 阅读全文
posted @ 2015-10-07 17:54 chemandy 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 原文来源:Linux运维笔记 原文链接:https://blog.linuxeye.com/426.html之前有分享《Shadowsocks一键安装脚本(CentOS6,7、Ubuntu、Debian)》,适合单用户个人用。如果你的手上有多个墙外vps可以搭建一个Shadowsocks分享平台。前... 阅读全文
posted @ 2015-10-07 12:53 chemandy 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://www.hksilicon.com/kb/articles/594621/CentOS-71. 查看时区是否正确timedatectl,若不正确则设置时区 timedatectl set-timezone Asia/Shanghai2. 更改root用户密码,输入passwd... 阅读全文
posted @ 2015-10-06 21:27 chemandy 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Nodejs最好的安装和版本管理方式是使用nvmhttps://github.com/creationix/nvm举个例子:cURL:$ curl https://raw.github.com/creationix/nvm/master/install.sh | shWget:$ wget -qO-... 阅读全文
posted @ 2015-10-06 21:12 chemandy 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 登录mysql 这里的IP填写能访问数据库的ip地址, 如果需要所有地址都能访问,则填% 然后刷新权限 附创建用户 查看mysql用户远程连接 删除远程用户授权 阅读全文
posted @ 2015-10-06 20:58 chemandy 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 对数据模型进行版本管理数据迁移:不同版本数据模型之间进行转换的机制轻量级迁移标准迁移1. 关于数据模型数据模型会被编译 .xcdatamodel文件会编译成一种新的文件,其扩展名为.mom,它表示Managed Object Model。数据模型可以拥有多个版本创建新数据模型 选中模型--》点击Editor菜单--》选择Add Model Version2. 迁移轻量迁移 用于相对简单的数据模型修改。(如简单的添加或移除实体中的属性,或添加移除实体)。// 在设置持久化存储助手的时候进行一些修改if (![_persistentStoreCoordinator addPersistent... 阅读全文
posted @ 2014-03-10 00:28 chemandy 阅读(987) 评论(0) 推荐(0) 编辑
摘要: 1. 基本概念Core Data是一种被称为对象关系映射(Object-Relational Mapping,ORM)技术的实现。Core Data 架构图如下:五个概念:(1)数据模型(Data Model)(2)持久化存储(Persistent Store)(3)持久化存储Corrdinator(4)Managed Object和Managed Object上下文(5)Fetch Request2 数据模型数据模型定义了对象的数据结构、对象的组织方式、对象之间的关系,以及对象的行为。 1. 实体 Core Data的实体可以看作OC中类声明类似的东西,使用实体时,可以当作使用一个OC类.. 阅读全文
posted @ 2014-03-03 01:54 chemandy 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 学习资源:《iOS6核心编程》自动布局部分《iOS6范例经典》自动布局部分Tutorial: iOS 6 Auto Layout versus Springs and Struts - Part 1 of 3Tutorial: iOS 6 Auto Layout versus Springs and Struts - Part 2 of 3Tutorial: iOS 6 Auto Layout versus Springs and Struts - Part 3 of 3IOS 6 自动布局入门-1IOS 6 自动布局入门-2iOS: 在代码中使用Autolayout (1) - 按比例缩放和 阅读全文
posted @ 2014-02-17 14:52 chemandy 阅读(214) 评论(0) 推荐(0) 编辑
摘要: “springs and struts” 模式,就是代码中的autosizing masks布局控制。autosizing mask决定了一个view会发生什么当它的superview 改变大小的时候。the struts:指定了当superview改变大小时,view是否有灵活并且自动修复页边的处理能力。UIViewAutoresizingFlexibleLeftMarginUIViewAutoresizingFlexibleRightMarginUIViewAutoresizingFlexibleTopMarginUIViewAutoresizingFlexibleBottomMargin 阅读全文
posted @ 2014-02-16 20:39 chemandy 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 问题有:1. 关于网络上的数据流播放,之前是使用github上的AudioStream库进行网络歌曲的播放。但是这么做之后发现跟AVPlayer(播放ipod歌曲)发生冲突,于是AudioSteamer库就只能放弃了。2. 关于ipod的歌曲播放,基本上无法操作ipod的歌曲,如果要通过dlna传送本机ipod的歌曲,那么必须先将ipod的歌转存到本地,这个过程比较麻烦,于是放弃了。3. ipod的歌曲读取需要通过MediaPlayer、MediaItem来读取ipod的数据。4. 在线音乐、流媒体、直播流都可以通过AVPlayer来播放,而不再使用AudioStreamer。5. ... 阅读全文
posted @ 2012-12-20 22:25 chemandy 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 百度、谷歌的搜索提示是一个很cool的效果,恰逢美大(@司徒正美)前几天做了一个demo,于是自己也来实现一番,实现的思路有别于美大,可以对比着研究。 阅读全文
posted @ 2012-02-18 10:17 chemandy 阅读(2047) 评论(0) 推荐(1) 编辑
摘要: jQuery之父John Resig新作《Secrets of the JavaScript Ninja》。由于兴趣与学习原因,找到样章进行试读,并尝试着翻译出来与各位基友分享。 阅读全文
posted @ 2011-10-23 13:34 chemandy 阅读(6644) 评论(11) 推荐(9) 编辑