在mysql中,now()和sysdate()两个函数都可以返回当前时间,但是两者是有区别的。下面我们先来看一下mysql的官方解释: NOW()?returns a constant time that indicates the time at which the statement began to...
分类:
数据库 时间:
2015-09-24 11:11:02
阅读次数:
235
查看mysql服务器的错误日志有一句:InnoDB: mmap(137363456 bytes) failed; errno 12原来是内存不够用(需要131MB)呀,把my.cnf中的innodb_buffer_pool_size值修改成8M解决问题这个弄好好,发现服务器上的wordpress任然...
分类:
数据库 时间:
2015-09-23 19:23:26
阅读次数:
148
池(Pool)技术在一定程度上可以明显优化服务器应用程序的性能,提高程序执行效率和降低系统资源开销。这里所说的池是一种广义上的池,比如数据库连接池、线程池、内存池、对象池等。其中,对象池可以看成保存对象的容器,在进程初始化时创建一定数量的对象。需要时直接从池中取出一个空闲对象,用完后并不直接释放掉对...
分类:
编程语言 时间:
2015-09-23 06:42:17
阅读次数:
200
查看日志如下: 2014-06-18 20:34:59,622 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for block pool Block pool (Datanode Uui.....
分类:
其他好文 时间:
2015-09-22 21:41:12
阅读次数:
176
http://www.geeksforgeeks.org/g-fact-54/Every literal (constant) in C/C++ will have a type information associated with it.In both C and C++, numeric li...
分类:
编程语言 时间:
2015-09-22 18:10:16
阅读次数:
134
pool内存池概述通常我们习惯直接使用new、malloc等API申请分配内存,这样做的缺点在于:因为所申请内存块的大小不定。当频繁使用时会造成大量的内存碎片并进而减少性能。内存池则是在真正使用内存之前,先申请分配一定数量的、大小相等(普通情况下)的内存块留作备用。当有新的内存需求时。就从内存池中分...
分类:
其他好文 时间:
2015-09-20 20:28:34
阅读次数:
247
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-09-20 10:32:44
阅读次数:
120
how determine the RC time constant in PWM digital to analog low-pass filter?I 'm looking for the best RC time constant and its reason in a PWM to conv...
分类:
其他好文 时间:
2015-09-19 17:58:31
阅读次数:
262
如果你能够真正的理解autorelease,那么你才是理解了Objective c的内存管理。Autorelease实际上只是把对release的调用延迟了,对于每一个Autorelease,系统只是把该Object放入了当前的Autorelease pool中,当该pool被释放时,该pool中的...
分类:
其他好文 时间:
2015-09-19 16:40:05
阅读次数:
128
1 private static char[] constant = 2 { 3 '0','1','2','3','4','5','6','7','8','9', 4 'a','b','c','d','e','f','g','h','i'...