摘要: 工作中,经常要把windows的文件夹同步到linux上。xftp也可以,sublime也有远程上传的插件,但没找到支持增量的。。。大量时间花在找插件,装环境。。。然后一怒之下,自己东拼西凑了一下。 支持:上传文件夹,和删除远程文件。 增量是用当前时间和上次上传时间对比实现的。 cache.dat记 阅读全文
posted @ 2018-03-16 00:39 light_world 阅读(4397) 评论(0) 推荐(0) 编辑
摘要: 今天使用opencv的时候,莫名的崩溃了 is_block_type_valid 我使用的是vs2013 然后采用的opencv是网上下载好的版本2.1413。不过是2015版的。 stackoverflow的答案: https://stackoverflow.com/questions/38461 阅读全文
posted @ 2018-03-11 20:13 light_world 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 最近海外服务器出了点问题,又了解了下go语言、携程。周末闲来看下akka-actor,希望做下个项目能用上。 一台游戏服务器经常要为几千甚至上万用户服务。为了更快的对用户请求进行回复,经常会开多个线程,但是线程个数有限。导致其他玩家等待线程时间过长,从而影响体验。 如果能让每个用户都有自己独立的'线 阅读全文
posted @ 2017-10-16 00:18 light_world 阅读(175) 评论(0) 推荐(0) 编辑
摘要: box2d dynamic treedynamic tree 是一颗 full binary trees, 即非叶子节点必须有两个子节点(注:full binary trees和大学老师讲的满二叉树,完全二叉树不同)那么如果构建树?先看源码 while (m_nodes[index].IsLeaf(... 阅读全文
posted @ 2015-06-20 19:00 light_world 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: 1. 单例模式。 不用多讲了2. 观察者模式 class player { ... } onPlayerHpChanged() onPlayerMpChanged() onPlayerPositionChanged() ...3. 命令模式 class buff { void do(... 阅读全文
posted @ 2015-04-26 22:00 light_world 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 1.用到的知识点 如何判断点在平面哪一边? 以及判断aabb盒子在面的哪一边? Real Plane::getDistance (const Vector3& rkPoint) const { return normal.dotProduct(rkPoint) + d; ... 阅读全文
posted @ 2015-04-26 18:45 light_world 阅读(825) 评论(0) 推荐(0) 编辑
摘要: LARGE_INTEGER litmp;LARGE_INTEGER qt1, qt2;QueryPerformanceFrequency(&litmp);double dff = (double)litmp.QuadPart;QueryPerformanceCounter(&qt1); int *a... 阅读全文
posted @ 2015-04-25 23:48 light_world 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://www.gametutorials.com/http://www.lighthouse3d.com/http://www.paulsprojects.net/http://www.flipcode.com/http://www.glprogramming.com/http://www.... 阅读全文
posted @ 2015-04-25 23:45 light_world 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在安卓和ios平台上可通过信号处理方式,在崩溃时打印Lua堆栈信息,方便分析bugstatic void dumpHandler(int cause, siginfo_t * info, void *uap){ CCLOG("Crash dump:"); CCLuaEngine* pEn... 阅读全文
posted @ 2015-04-25 23:41 light_world 阅读(1083) 评论(0) 推荐(1) 编辑
摘要: 不知道并没错 阅读全文
posted @ 2015-04-25 22:37 light_world 阅读(146) 评论(0) 推荐(0) 编辑