博客园 - 伟大的臭猪猪
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=12541
2017-09-25T03:52:30Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
feed.cnblogs.com
https://www.cnblogs.com/lucky-star-star/p/7591219.html
HTTP的referer机制 - 伟大的臭猪猪
Quesion: 在项目中遇到了访问某些网络上的图片但是打开是forbidden的情况,原来这是一些网站为了避免图片被盗取所以采取的保护机制,如果不是从原网站上访问的图片,就禁止访问。那么这种情况应该怎么办呢?需要在请求的头部添加referer,一般就是原网站的主页网址。 referer的保护机制:
2017-09-25T03:52:00Z
2017-09-25T03:52:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】Quesion: 在项目中遇到了访问某些网络上的图片但是打开是forbidden的情况,原来这是一些网站为了避免图片被盗取所以采取的保护机制,如果不是从原网站上访问的图片,就禁止访问。那么这种情况应该怎么办呢?需要在请求的头部添加referer,一般就是原网站的主页网址。 referer的保护机制: <a href="https://www.cnblogs.com/lucky-star-star/p/7591219.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/7397474.html
python环境的caffe配置 - 伟大的臭猪猪
` 基本按照这个教程来 http://blog.csdn.net/zb1165048017/article/details/52980102 ` 步骤 1. 安装Anaconda2,去官网上下载,注意下载对应自己python版本的那个,没有用原博主百度云里的。安装选项注意都勾选上,然后安装完后在命令
2017-08-19T10:14:00Z
2017-08-19T10:14:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】` 基本按照这个教程来 http://blog.csdn.net/zb1165048017/article/details/52980102 ` 步骤 1. 安装Anaconda2,去官网上下载,注意下载对应自己python版本的那个,没有用原博主百度云里的。安装选项注意都勾选上,然后安装完后在命令 <a href="https://www.cnblogs.com/lucky-star-star/p/7397474.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/7355151.html
python 安装coreml - 伟大的臭猪猪
2、安装pip, 下载get pip.py, https://bootstrap.pypa.io/get pip.py,然后Python 这个文件,如果没有权限就加sudo 3、安装coreml:这个各种报error,利用了以下这种使用虚拟环境的方式,不方便的一点就是每次需要在虚拟环境里使用core
2017-08-13T14:01:00Z
2017-08-13T14:01:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】2、安装pip, 下载get pip.py, https://bootstrap.pypa.io/get pip.py,然后Python 这个文件,如果没有权限就加sudo 3、安装coreml:这个各种报error,利用了以下这种使用虚拟环境的方式,不方便的一点就是每次需要在虚拟环境里使用core <a href="https://www.cnblogs.com/lucky-star-star/p/7355151.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/7239179.html
ios 7 Autolayout bug - 伟大的臭猪猪
ios 7 Autolayout bug 错误类型:NSInternalInconsistencyException(SIGABRT) 详情:Auto Layout still required after executing layoutSubviews. MttFeedsVideoActionB
2017-07-26T05:26:00Z
2017-07-26T05:26:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ios 7 Autolayout bug 错误类型:NSInternalInconsistencyException(SIGABRT) 详情:Auto Layout still required after executing layoutSubviews. MttFeedsVideoActionB <a href="https://www.cnblogs.com/lucky-star-star/p/7239179.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/6795850.html
git功能速查 - 伟大的臭猪猪
http://gitbook.liuhui998.com/index.html git rebase:在本地变基、将本地所有的修改应用到另一个分支上 git merge:在本地合并分支 git branch:在本地建立分支 git checkout:在本地切换分支 git commit:提交到本地
2017-05-02T06:05:00Z
2017-05-02T06:05:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】http://gitbook.liuhui998.com/index.html git rebase:在本地变基、将本地所有的修改应用到另一个分支上 git merge:在本地合并分支 git branch:在本地建立分支 git checkout:在本地切换分支 git commit:提交到本地 <a href="https://www.cnblogs.com/lucky-star-star/p/6795850.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/6780142.html
iPad actionsjeet - 伟大的臭猪猪
在iphone和ipad上使用UIActionShee控件t的效果会不一样,在苹果的官方文档中有相关说明: 在ipad上使用UIActionSheet控件改控件不再从底部弹出,而是从屏幕中间弹出与UIAlertView警告框弹出有点类似。效果如图所示,cancelButton按钮文字显示不出来,de
2017-04-28T01:30:00Z
2017-04-28T01:30:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】在iphone和ipad上使用UIActionShee控件t的效果会不一样,在苹果的官方文档中有相关说明: 在ipad上使用UIActionSheet控件改控件不再从底部弹出,而是从屏幕中间弹出与UIAlertView警告框弹出有点类似。效果如图所示,cancelButton按钮文字显示不出来,de <a href="https://www.cnblogs.com/lucky-star-star/p/6780142.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/6699267.html
iOS开发中集成Reveal - 伟大的臭猪猪
【转】http://blog.devzeng.com/blog/ios-reveal-integrating.html 配置方式一简介有效。 Reveal 是一个界面调试工具。使用Reveal,我们可以在iOS开发时动态地查看和修改应用程序的界面。它类似Chrome的“审查元素”功能,我们不但可以在
2017-04-12T07:01:00Z
2017-04-12T07:01:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】【转】http://blog.devzeng.com/blog/ios-reveal-integrating.html 配置方式一简介有效。 Reveal 是一个界面调试工具。使用Reveal,我们可以在iOS开发时动态地查看和修改应用程序的界面。它类似Chrome的“审查元素”功能,我们不但可以在 <a href="https://www.cnblogs.com/lucky-star-star/p/6699267.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/6696896.html
【转】ios内联函数 inline - 伟大的臭猪猪
ios内联函数 inline 缘由 由于在学习使用UIScrollVew开发的过程中,碰到下面这个属性(设置内边距): 1 光看UIEdgeInsets这个类型,一时还不知道它的具体内部结构是怎么样的,于是继续点进去发现它的定义如下: 1 2 3 原来是这样一个结构体!~ 随之,看到和UIEdgeI
2017-04-11T15:01:00Z
2017-04-11T15:01:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ios内联函数 inline 缘由 由于在学习使用UIScrollVew开发的过程中,碰到下面这个属性(设置内边距): 1 光看UIEdgeInsets这个类型,一时还不知道它的具体内部结构是怎么样的,于是继续点进去发现它的定义如下: 1 2 3 原来是这样一个结构体!~ 随之,看到和UIEdgeI <a href="https://www.cnblogs.com/lucky-star-star/p/6696896.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/6689680.html
【转】数据存储——APP 缓存数据线程安全问题探讨 - 伟大的臭猪猪
http://blog.cnbang.net/tech/3262/ 问题 一般一个 iOS APP 做的事就是:请求数据->保存数据->展示数据,一般用 Sqlite 作为持久存储层,保存从网络拉取的数据,下次读取可以直接从 Sqlite DB 读取。我们先忽略从网络请求数据这一环节,假设数据已经保
2017-04-10T08:37:00Z
2017-04-10T08:37:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】http://blog.cnbang.net/tech/3262/ 问题 一般一个 iOS APP 做的事就是:请求数据->保存数据->展示数据,一般用 Sqlite 作为持久存储层,保存从网络拉取的数据,下次读取可以直接从 Sqlite DB 读取。我们先忽略从网络请求数据这一环节,假设数据已经保 <a href="https://www.cnblogs.com/lucky-star-star/p/6689680.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5871051.html
iOS 改变导航栏高度 - 伟大的臭猪猪
需求: appdelegate里 rootviewcontroller 是tabbarcontroller,tabbarcontroller里有4个navigationcontroller,改变每个navigationbar的高度 问题参考SO里的方法:,在每个controller里的viewwil
2016-09-14T02:51:00Z
2016-09-14T02:51:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】需求: appdelegate里 rootviewcontroller 是tabbarcontroller,tabbarcontroller里有4个navigationcontroller,改变每个navigationbar的高度 问题参考SO里的方法:,在每个controller里的viewwil <a href="https://www.cnblogs.com/lucky-star-star/p/5871051.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5868514.html
ios 闪屏页的设置 - 伟大的臭猪猪
ref:http://blog.csdn.net/bianruifeng/article/details/8746549
2016-09-13T07:00:00Z
2016-09-13T07:00:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ref:http://blog.csdn.net/bianruifeng/article/details/8746549 <a href="https://www.cnblogs.com/lucky-star-star/p/5868514.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5866307.html
AFNetworking content type not support - 伟大的臭猪猪
ref:http://blog.csdn.net/nyh1006/article/details/25068255 1、错误信息:Error:Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable c
2016-09-12T13:07:00Z
2016-09-12T13:07:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ref:http://blog.csdn.net/nyh1006/article/details/25068255 1、错误信息:Error:Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable c <a href="https://www.cnblogs.com/lucky-star-star/p/5866307.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5865752.html
iOS 获取本地文件的各种坑 - 伟大的臭猪猪
1.无论:TXT,EPUB,PDF等各种格式的文件,保存到本地的时候,最好都保存成字母或者数字,不要保存成汉字,否则,在取文件的时候,由于编码的问题,各种瓦特 2.如果文件名真的保存成了汉字,那么进行转码的方法是: 3.pdf的坑:由于后台返回的文件格式都是dat,需要本地动态判断文件格式,因此在判
2016-09-12T10:15:00Z
2016-09-12T10:15:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】1.无论:TXT,EPUB,PDF等各种格式的文件,保存到本地的时候,最好都保存成字母或者数字,不要保存成汉字,否则,在取文件的时候,由于编码的问题,各种瓦特 2.如果文件名真的保存成了汉字,那么进行转码的方法是: 3.pdf的坑:由于后台返回的文件格式都是dat,需要本地动态判断文件格式,因此在判 <a href="https://www.cnblogs.com/lucky-star-star/p/5865752.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5864810.html
iOS UICollectionView 长按移动cell - 伟大的臭猪猪
ref:http://www.jianshu.com/p/31d07bf32d62 iOS 9之后: 示例如下 效果 效果 前言: 看完你可以学到哪些呢? 就是文章标题那么多, 只有那么多. . 手残效果图没弄好. 初始化一个数组 创建CollectionView 添加一个长按的手势 手势方法的实现
2016-09-12T06:57:00Z
2016-09-12T06:57:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ref:http://www.jianshu.com/p/31d07bf32d62 iOS 9之后: 示例如下 效果 效果 前言: 看完你可以学到哪些呢? 就是文章标题那么多, 只有那么多. . 手残效果图没弄好. 初始化一个数组 创建CollectionView 添加一个长按的手势 手势方法的实现 <a href="https://www.cnblogs.com/lucky-star-star/p/5864810.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5864318.html
collectionviewcell 添加删除按钮 响应区域的问题 - 伟大的臭猪猪
在collectionviewcell 的右上角添加了一个删除按钮,但是发现只有cell和删除按钮重合的区域才会响应点击事件 后来doctor 李说这是iOS 事件响应链的机制(http://www.jianshu.com/p/d8512dff2b3e):button是cell的子view,只有父v
2016-09-12T04:10:00Z
2016-09-12T04:10:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】在collectionviewcell 的右上角添加了一个删除按钮,但是发现只有cell和删除按钮重合的区域才会响应点击事件 后来doctor 李说这是iOS 事件响应链的机制(http://www.jianshu.com/p/d8512dff2b3e):button是cell的子view,只有父v <a href="https://www.cnblogs.com/lucky-star-star/p/5864318.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5861991.html
改变导航栏下方默认横线的样式 - 伟大的臭猪猪
用图片替换:
2016-09-11T07:59:00Z
2016-09-11T07:59:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】用图片替换: <a href="https://www.cnblogs.com/lucky-star-star/p/5861991.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5859725.html
使用Xcode7的Instruments检测解决iOS内存泄露 - 伟大的臭猪猪
ref: http://www.jianshu.com/p/0837331875f0
2016-09-10T08:50:00Z
2016-09-10T08:50:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ref: http://www.jianshu.com/p/0837331875f0 <a href="https://www.cnblogs.com/lucky-star-star/p/5859725.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5854821.html
label同时设置sizeToFit,NSTextAlignmentCenter不起作用 - 伟大的臭猪猪
问题:label要多行显示,按照这样子设置,iOS9以上work,iOS8无用 然后据说要加 sizeToFit:好吧,依然然并卵 然后据说要同时加font,好吧,多行出来了,但是不居中 然后stackOverFlow:https://stackoverflow.com/questions/2857
2016-09-08T14:55:00Z
2016-09-08T14:55:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】问题:label要多行显示,按照这样子设置,iOS9以上work,iOS8无用 然后据说要加 sizeToFit:好吧,依然然并卵 然后据说要同时加font,好吧,多行出来了,但是不居中 然后stackOverFlow:https://stackoverflow.com/questions/2857 <a href="https://www.cnblogs.com/lucky-star-star/p/5854821.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5854008.html
ios 字体设计 - 伟大的臭猪猪
ref: http://ju.outofmemory.cn/entry/217705 ref:http://gold.xitu.io/entry/57958a41128fe10056be13b1 下面两个函数创建字体: +fontWithName:(NSString *)fontName size:
2016-09-08T10:06:00Z
2016-09-08T10:06:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】ref: http://ju.outofmemory.cn/entry/217705 ref:http://gold.xitu.io/entry/57958a41128fe10056be13b1 下面两个函数创建字体: +fontWithName:(NSString *)fontName size: <a href="https://www.cnblogs.com/lucky-star-star/p/5854008.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lucky-star-star/p/5850445.html
view添加阴影无效 - 伟大的臭猪猪
需求:需要给cell里的imageview添加阴影 问题:按照标准的代码添加阴影,然并卵:代码如下: 后谷歌说要加一句: imageview.layer.masksToBounds = NO;,因为阴影是在imagview的layer外面画的 这样阴影出来了,然而,由于允许子元素超出父元素,所以图片
2016-09-07T10:19:00Z
2016-09-07T10:19:00Z
伟大的臭猪猪
https://www.cnblogs.com/lucky-star-star/
【摘要】需求:需要给cell里的imageview添加阴影 问题:按照标准的代码添加阴影,然并卵:代码如下: 后谷歌说要加一句: imageview.layer.masksToBounds = NO;,因为阴影是在imagview的layer外面画的 这样阴影出来了,然而,由于允许子元素超出父元素,所以图片 <a href="https://www.cnblogs.com/lucky-star-star/p/5850445.html" target="_blank">阅读全文</a>