摘要: 淘宝的镜像已经无人维护了,参考 https://ruby-china.org/topics/29250 https://gems.ruby-china.org/ 使用新的镜像 涉及到代理服务器的话,这么搞: 阅读全文
posted @ 2016-05-03 18:44 levyleo 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 报错: 根据提示安装libvips 安装过程如下: 还是有错,重新安装node-gyp 安装成功后: 报错: 看到这一句: 根据 https://github.com/nodejs/node-gyp#the-bindinggyp-file 上写的 创建binding.gyp 里面添加: 然后: 还是 阅读全文
posted @ 2016-04-29 14:01 levyleo 阅读(7749) 评论(0) 推荐(0) 编辑
摘要: 原文出处:http://blog.justbilt.com/2014/07/02/setup_python_on_mac/ 阅读全文
posted @ 2016-04-26 18:51 levyleo 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.jianshu.com/p/dabc0c6d083e SDWebImage作为目前最受欢迎的图片下载第三方框架,使用率很高。但是你真的会用吗?本文接下来将通过例子分析如何合理使用SDWebImage。 使用场景:自定义的UITableViewCell上有图片需要显示 阅读全文
posted @ 2016-04-26 18:50 levyleo 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 根据网络上的优化方法进行了总括。并未仔细进行语言组织。正在这些优化方法进行学习,见另一篇文章 提高app流畅度 1、cell子控件创建写在 initWithStyle:reuseIdentifier 2、后台计算高度,布局。放在集合中下次使用。(计算高度是件很麻烦的事,分散计算,减少计算次数) 3、 阅读全文
posted @ 2016-04-09 11:19 levyleo 阅读(762) 评论(0) 推荐(0) 编辑
摘要: Github: https://github.com/saitjr/MasonryDemo 直接上代码: 阅读全文
posted @ 2016-04-08 14:46 levyleo 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 窝里个去,不使用sudo吧rvm requirements执行不成功。加上sudo吧rvm requirements调用的brew install又不行。好吧,就按上面说的将brew转换到root模式。 1 2 3 4 5 6 ls -al /usr/local/bin/brew -rwxr-xr- 阅读全文
posted @ 2016-03-30 13:19 levyleo 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 混合类型因为没有特定约束,因此可以任意修改,一旦修改了原型,则必须 调用markModified() >>> person.anything = {x:[3,4,{y:'change'}]} person.markModified('anything');//传入 anything,表示该属性类型发生变化 person.save(); 阅读全文
posted @ 2016-03-28 17:35 levyleo 阅读(461) 评论(0) 推荐(0) 编辑
摘要: webview使用JSContext 向网页js注入时时机要选为网页加载完成后即放在 -(void)webViewDidFinishLoad:(UIWebView *)webView 方法 : -(void)webViewDidFinishLoad:(UIWebView *)webView{ con 阅读全文
posted @ 2016-03-08 13:42 levyleo 阅读(2228) 评论(0) 推荐(0) 编辑
摘要: the behavior of the UICollectionViewFlowLayout is not defined because: the item height must be less than the height of the UICollectionView minus the 阅读全文
posted @ 2016-02-20 16:04 levyleo 阅读(1860) 评论(0) 推荐(0) 编辑