static osg::Timer* sendMsgTimer = new osg::Timer; if (sendMsgTimer->time_m()>100)//100ms {// do what you want sendMsgTimer->setStartTick();//重置 } osg: ...
分类:
其他好文 时间:
2016-12-22 14:54:44
阅读次数:
334
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2016-12-22 07:15:18
阅读次数:
200
一 storm 相关术语 二 storm集群架构图 2. 数据处理流程 3. 拓扑图分析 storm主要特点 storm与 yarn结合 ,storm 运行在yarn之上 storm安装 ...
分类:
其他好文 时间:
2016-12-21 18:30:31
阅读次数:
206
最近一直在研究这个树形的下拉选择框,感觉非常的有用,现在整理下来供大家使用: 首先数据库的表架构设计和三级菜单联动的表结构是一样,(父子关系) 1、下面我们用hibernate建一下对应的额实体类: 2、dao层查询数据的方法: 3、建立service层的(在这里需要注意的是:返回的JSON格式的数 ...
分类:
其他好文 时间:
2016-12-21 09:47:02
阅读次数:
263
手动释放内存 1.sync将内存中的缓存写入磁盘 2. to free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_cach ...
分类:
系统相关 时间:
2016-12-21 02:13:09
阅读次数:
188
看文件信息 hadoop fsck /user/filename 更详细的 hadoop fsck /user/filename -files -blocks -locations -racks -files 文件分块信息, -blocks 在带-files参数后才显示block信息 -locati ...
分类:
其他好文 时间:
2016-12-21 02:11:59
阅读次数:
156
MySQL innodb_rollback_on_timeout参数对锁的影响 ...
分类:
数据库 时间:
2016-12-20 20:57:40
阅读次数:
429
1、npm安装Node Inspector工具,全局安装 命令行执行npm install -g node-inspector 2、启动Node Inspector工具,命令行执行 node-inspector 3、新开一个窗口使用--debug或者--debug-brk执行程序,例如node -- ...
分类:
Web程序 时间:
2016-12-20 01:14:45
阅读次数:
258
概述 当前使用的Chrome最新版为54.0.2840.71,这个版本的Profiles面板比之前提供的功能更多也更强大,下面是该面板所包含的功能点: Record JavaScript CPU Profile 用于分析网页上的JavaScript函数在执行过程中的CPU消耗信息。 Take Hea ...
分类:
其他好文 时间:
2016-12-19 22:08:38
阅读次数:
294
1、XP中的 (1)、OS:zh-hans_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74070.iso (2)、符号表文件:WindowsXP-KB936929-SP3-x86-symbols-full-ENU.exe (3 ...
分类:
其他好文 时间:
2016-12-19 14:30:41
阅读次数:
216