(下面以 typename 表示C/C++内某一类型 我常常会搞混 const 放在 typename* 的前面和后面的区别,今天特地查看了它们两个各自的含义,总结了一下: const typename* ptr 是指 ptr 是个指向常量的指针( pointer to constant data ...
分类:
编程语言 时间:
2016-07-22 18:46:13
阅读次数:
136
innodb_lru_scan_depth:每个缓冲池刷脏页的能力 innodb_io_capacity: iops inoodb_buffer_pool_instances=8 :缓冲池的个数 .关系: innodb_io_capacity >= innodb_lru_scan_depth * i ...
分类:
数据库 时间:
2016-07-22 18:38:00
阅读次数:
524
Description After making bad dives into swimming pools, Wilbur wants to build a swimming pool in the shape of a rectangle in his backyard. He has set ...
分类:
其他好文 时间:
2016-07-21 23:47:30
阅读次数:
318
上下文说明 原本系统是15.10,无奈只支持1年,所以今天升级16.04,环境答好后运行rake migratte报错 NameError: uninitialized constant ActiveRecord::Migrator::Zlib 当时一脸蒙逼,原来代码一点没动,为何出现这个 检查一下 ...
分类:
其他好文 时间:
2016-07-21 15:00:53
阅读次数:
166
angularJS可以通过constant()和value()对于创建服务也是很重要的。 它们的相同点是:都可以接受两个参数,name和value。 区别:constant()可以将一个已经存在的变量值注册为服务,并将其注入到应用的其他部分中。其中,name为注册的常量的名字,value为注册的常量 ...
分类:
Web程序 时间:
2016-07-21 14:58:03
阅读次数:
332
最近用ThinkPHP,给公司布置线上的网站的时候,遇到的一个问题,记录一下。 打开IE浏览器的设置,Internet选项里的高级,将”显示友好的HTTP错误消息“前都勾去掉! 再次刷新,看到的错误是: PHP Fatal error: Undefined class constant 'MYSQL ...
分类:
数据库 时间:
2016-07-21 12:50:34
阅读次数:
312
1.关于Timer的三个维度
首先是 {@link java.util.Timer},这个是最外层的类,其中包含了{@link java.util.TaskQueue},这个是存放{@link java.util.TimerTask}的队列——a priority queue of TimerTasks。
第二层是 {@link java.util.TimerThread},这个是{@link...
分类:
其他好文 时间:
2016-07-19 10:37:01
阅读次数:
142
一、Π (Pi) March 14 marks Pi Day, the holiday commemorating the mathematical constant π (pi), written numerically as 3.141592+. Since mathematic notatio ...
分类:
其他好文 时间:
2016-07-17 12:16:10
阅读次数:
3792
原文链接:http://blog.csdn.net/xyang81/article/details/51918129环境:
OS:CentOS7 64位
server版本:Redis 3.2.0
client 版本:Jedis 2.8.0在Maven中引用jedis的jar:
jun...
分类:
Web程序 时间:
2016-07-15 17:14:53
阅读次数:
408
触控事件
MotionEvent类: //单击触摸按下动作
public static final int ACTION_DOWN = 0; /**
* Constant for {@link #getActionMasked}: A pressed gesture has finished, the
* motion contains...
分类:
移动开发 时间:
2016-07-14 15:24:40
阅读次数:
284