摘要: protocol 类似于接口,可以实现函数的回调 阅读全文
posted @ 2016-09-27 21:47 Yellowman 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 找了一下网上的教程都是使用类似以下代码,Xcode提示这个CoreFoundation不受ARC管理,所以折中的方式是添加__bridge. NSString *encodedValue = (__bridge NSString *)CFURLCreateStringByAddingPercentE 阅读全文
posted @ 2016-08-17 12:05 Yellowman 阅读(685) 评论(0) 推荐(0) 编辑
摘要: Mac自带版本是php5.5,本来是用homebrew安装xdebug 命令:brew install php55-xdebug 但是安装之后使用phpstorm还是有问题。php -v 并没有显示有xdebug. 过程应该是对的,毕竟phpstorm官网都挂着这个教程: https://confl 阅读全文
posted @ 2016-07-21 20:18 Yellowman 阅读(3208) 评论(0) 推荐(0) 编辑
摘要: 首先介绍一下应用背景,我们使用的很多浏览器都依赖Adobe Flash Player 播放视频文件。Flash Player是一个播放的客户端,客户端和服务端之间的流通信有几套实现的标准。包括这里介绍了HDS,Apple的Http Live Streaming等。HDS主要思路是,在服务端将一个视频 阅读全文
posted @ 2016-06-07 15:56 Yellowman 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: creating /System/Library/Frameworks/Python.framework/Versions/2.7/share error: could not create '/System/Library/Frameworks/Python.framework/Versions/ 阅读全文
posted @ 2016-06-04 23:26 Yellowman 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: Mac上Safari不能下载壁纸,遇到好看的很想用作壁纸。写了一小段脚本用来拉取网页图片。 curl: -sS 参数用来取消下载状态显示 grep 首先把含有图片网址的行提取了出来,针对这一行再做sed替换。 sed刚开始用不是很熟悉。 网上查阅了一下替换的正则形式为 sed 's/一行文本的正则表 阅读全文
posted @ 2016-05-10 12:09 Yellowman 阅读(909) 评论(0) 推荐(0) 编辑
摘要: include include include include using namespace std; struct SS{ double s; double p; double si; }; int n,d; SS pro[1010]; bool cmp(const SS &a,const SS 阅读全文
posted @ 2016-04-12 13:54 Yellowman 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目的测试用例数据有问题! 第一个Case 应该是 G1 2.0 3.2 一直在想3.3分母的3怎么来了。ORZ 阅读全文
posted @ 2016-04-11 16:33 Yellowman 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目要求的Word定义 Here a "word" is defined as a continuous sequence of alphanumerical characters separated by non-alphanumerical characters or the line begi 阅读全文
posted @ 2016-04-11 11:52 Yellowman 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 其中在排名输出上参照了 http://blog.csdn.net/xyzchenzd/article/details/27074665,原先自己写的很繁琐,而且还有一个测试点不通过。 阅读全文
posted @ 2016-04-09 19:58 Yellowman 阅读(507) 评论(0) 推荐(0) 编辑
TVRBMExqRXlPQzR5TXpjdU1UVTEK\n