摘要:
Problem Description Give a time.(hh:mm:ss)。you should answer the angle between any two of the minute.hour.second hand Notice that the answer must be n 阅读全文
posted @ 2017-06-07 16:03
mfmdaoyou
阅读(226)
评论(0)
推荐(0)
摘要:
1.C和C++中struct有什么差别? 1> C++中的struct类似于class,有变量。有构造函数、虚函数等。有继承,多态等类的特征; 2> C中的struct仅仅有变量,不能有函数,可是能够有函数指针 2.C++中的struct和class有什么差别? 在C++中,两者差别不大,可是有2个 阅读全文
posted @ 2017-06-07 14:58
mfmdaoyou
阅读(376)
评论(0)
推荐(0)
摘要:
前面几篇文章用Akka写了HelloWorld和EchoServer,为了更进一步学习Akka,本文将会实现一个非常小的RPG游戏server:MiniRPG。 游戏逻辑 由于是迷你RPG,所以逻辑非常easy。server能够处理四种操作:创建玩家、给玩家加经验、升级、查询玩家信息。以下是Play 阅读全文
posted @ 2017-06-07 14:05
mfmdaoyou
阅读(252)
评论(0)
推荐(0)
摘要:
One of my friends is always drunk. So, sometimes I get a bit confused whether he is drunk or not. So, one day I was talking to him, about his drinks! 阅读全文
posted @ 2017-06-07 14:04
mfmdaoyou
阅读(279)
评论(0)
推荐(0)
摘要:
接前文。http://blog.csdn.net/yanzi1225627/article/details/44985487 这么处理了一段时间。确实没发现问题。但近期发现了一个bug。比方输入”我是123”, 这么json_encode 之后,再 preg_replace 一下,就变成了”我是”, 阅读全文
posted @ 2017-06-07 14:00
mfmdaoyou
阅读(222)
评论(0)
推荐(0)
摘要:
微软公布的Visual Studio 2015展示了该公司对于让该开发工具更好的支持主流的开发语言的工作。微软项目经理Jordan Matthiesen已经具体列出了一些具体处理JavaScript开发的新增功能。Matthiesen解释了他的JavaScript工具团队专注于提高对JavaScri 阅读全文
posted @ 2017-06-07 13:59
mfmdaoyou
阅读(261)
评论(0)
推荐(0)
摘要:
1. 以root用户身份登录阿里云server 2. 使用apt-get install安装Tomcat7 sudo apt-get install tomcat7 3.安装后。Tomcat在启动时报错 *Starting Tomcat servlet engine tomcat7 [fail] 可 阅读全文
posted @ 2017-06-07 12:42
mfmdaoyou
阅读(388)
评论(0)
推荐(0)
摘要:
The another tool will be mentioned in this blog, namely mongodump and mongorestore. General speaking, it’s very useful to back up or to restore the da 阅读全文
posted @ 2017-06-07 12:06
mfmdaoyou
阅读(187)
评论(0)
推荐(0)
摘要:
public class RecyclerView extends ViewGroup implements ScrollingView, NestedScrollingChild { 由上面的继承结构,我们easy看出,RecyclerView实际上也是一个ViewGroup继承了Scrollin 阅读全文
posted @ 2017-06-07 11:34
mfmdaoyou
阅读(300)
评论(0)
推荐(0)
摘要:
作为一名合格的站点的架构师,需对站点总体能承载的压力了如指掌,仅仅有这样才干做到运筹帷幄,决胜千里。 尤其是一个新项目在上线之前,首要做的是在预演环境,模拟用户訪问进行压測。这样,对于其能承受多大訪问量、在高并发情况下,web服务及server硬件的性能怎样? 这些数据指标我们都要收集。以此来对上线 阅读全文
posted @ 2017-06-07 10:53
mfmdaoyou
阅读(486)
评论(0)
推荐(0)