摘要: 原版的:http://www.koboldtouch.com/display/IDCAR/Four+Ways+of+Scrolling+with+Cocos2DThere are two classes of scrolling, "fake" and "real". Altogether ther... 阅读全文
posted @ 2015-07-26 21:51 blfshiye 阅读(247) 评论(0) 推荐(0)
摘要: 装饰者模式定义:动态地将责任附加到对象上。若要扩展功能。装饰者提供了比继续更有弹性的替代方案。简单定义:包装一个对象。以提供新的行为。装饰者模式能够有效应对类爆炸问题。OO原则:对扩展开放,对改动关闭。以书中的StarbuzzCoffee为例:Beverage.java(饮料抽象类)package ... 阅读全文
posted @ 2015-07-26 20:40 blfshiye 阅读(156) 评论(0) 推荐(0)
摘要: #includeusing namespace std;int main(){ int i,j; for (i=0; i<=99; i++) { j=i*10+6; if (j%3==0) cout<<j<<'\t'; ... 阅读全文
posted @ 2015-07-26 20:00 blfshiye 阅读(173) 评论(0) 推荐(0)
摘要: MainActivity如下面:package cc.testprogressdialog;import android.os.Bundle;import android.view.Gravity;import android.view.View;import android.view.ViewGr... 阅读全文
posted @ 2015-07-26 18:50 blfshiye 阅读(171) 评论(0) 推荐(0)
摘要: 1.合适的项目-->属性(Properties) --> java bulid path--> Libraries->jre System Library(点加号在前面)--> Access rules(选择这个开头的)--> Edit--> Add--> Resolution选择Accessibl... 阅读全文
posted @ 2015-07-26 18:20 blfshiye 阅读(158) 评论(0) 推荐(0)
摘要: HDU 3313 Key Vertex题目链接题意:一个有向无环图。求s,t之间的割点思路:先spfa找一条最短路出来,假设不存在。就n个都是割点。然后每次从s进行dfs,找到能经过最短路上的最远点。然后这个点就是割点。然后下次在以这个为起点dfs,不断迭代直到找到t为止代码:#include #i... 阅读全文
posted @ 2015-07-26 16:42 blfshiye 阅读(161) 评论(0) 推荐(0)
摘要: 原创文章。转载请注明出处:server非业余研究http://blog.csdn.net/erlib 作者Sunface联系邮箱:cto@188.comExercises练习Review Questions复习问题[1]. What are the 4 ways to connect to a re... 阅读全文
posted @ 2015-07-26 15:41 blfshiye 阅读(142) 评论(0) 推荐(0)
摘要: 最近的欲望redis 主从,但yii内建的redis 它不支持主从。不仅写了一个好办法 结构例,以下:1、main.php通过添加下面的句子://redis缓存配置'cache_redis' => include(dirname(__FILE__) . DIRECTORY_SEPARATOR.'ca... 阅读全文
posted @ 2015-07-26 13:33 blfshiye 阅读(386) 评论(0) 推荐(0)
摘要: #include#include#include#define N 10010#define M 1000100using namespace std;int next[N];char s[M],t[N];void getnext(char s[]){ int i=0,j=-1,len; ne... 阅读全文
posted @ 2015-07-26 12:16 blfshiye 阅读(136) 评论(0) 推荐(0)
摘要: MKMapView移动事件地图by 吴雪莹-(void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated { NSLog(@"going"); [self.view endEditing:YES];}... 阅读全文
posted @ 2015-07-26 11:39 blfshiye 阅读(233) 评论(0) 推荐(0)
摘要: Linux通过使用Sambaserver示例实验环境:Vbox下一个。Rehat5虚拟机使用sambaserver目的:使用sambaserver将文件上传到server上[root@rh55 ~]# service smb start//报错,没有smb服务smb: unrecognized se... 阅读全文
posted @ 2015-07-26 10:04 blfshiye 阅读(240) 评论(0) 推荐(0)
摘要: 其他常用命令+++++++++++++++++++++++++++++++lndiffdatecalgrepwcpswatchatcrontab+++++++++++++++++++++++++++++++首先安置计划,国庆节是老太太去完成它。 ... 阅读全文
posted @ 2015-07-26 09:26 blfshiye 阅读(157) 评论(0) 推荐(0)
摘要: 在作出Redis群集解决方案,他跑了小半个。行表现得非常稳定在几乎相同的经历与大家分享,我写在前面的文章数据在线服务的一些探索经验,能够做为背景阅读应用我们的Redis集群主要承担了下面服务:1. 实时推荐2. 用户画像3. 诚信分值服务集群状况集群峰值QPS 1W左右,RW响应时间999线在1ms... 阅读全文
posted @ 2015-07-26 08:32 blfshiye 阅读(325) 评论(0) 推荐(0)