线上机器的流量图都采用MRTG来画的,有些机器部署了同一业务,需要知道这些业务跑了多少带宽,由于MRTG的图有每个时间点的流量数据log,所以就在这个log的基础上取数据用rrdtool合并起来,就可以知道这些机器总共跑了多少带宽了。原理:定期(这里是5分钟)从mrtg服务器上同步l..
分类:
其他好文 时间:
2014-05-27 03:38:35
阅读次数:
413
设置归档模式(mount状态)ALTER database
ARCHIVELOG;//关闭数据库shutdown immediate//启动数据库到mount状态startup mount alter database
archivelog;//查看归档状态archive log list;SQL>...
分类:
数据库 时间:
2014-05-23 23:45:05
阅读次数:
441
神水。求n=log(k p)->
k=pow(p,1/n)。G++和C++输出不同,编译器原因。代码: 1 #include 2 #include 3 #include 4 #include 5
#include 6 7 using namespace std; 8 9 int main()10.....
分类:
其他好文 时间:
2014-05-23 23:31:42
阅读次数:
237
1.1.Log&CheckpointInnodb的事务日志是指Redolog,简称Log,保存在日志文件ib_logfile*里面。Innodb还有另外一个日志Undo
log,但Undo log是存放在共享表空间里面的(ibdata*文件)。由于Log和Checkpoint紧密相关,因此将这两部分...
分类:
数据库 时间:
2014-05-23 11:24:36
阅读次数:
403
今天服务器大规模报错,大部分用户无法登陆,小部分可以登陆,很是奇怪。
查看log,调试代码,发现问题是在oauth认证的时候出了问题,报 timestamp_refused。
google了下,问了高手,问题定位在服务器的时间可能有问题
执行date,发现比其他服务器快了5分钟...
分类:
其他好文 时间:
2014-05-22 12:30:23
阅读次数:
228
【题目】
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in the array, return [-1, -1].
For example,
Given [5...
分类:
其他好文 时间:
2014-05-22 06:44:39
阅读次数:
265
#查看数据库版本
mysql> select @@version;
+------------+
| @@version |
+------------+
| 5.5.16-log |
+------------+
1 row in set (0.00 sec)
mysql> select * from information_schema.schemata; # 保存了系统...
分类:
数据库 时间:
2014-05-20 15:05:07
阅读次数:
456
出现此情况,应该是使用了gradle wrapper时候,创建工程时使用的gradle版本比当前使用的版本低得情况。此时log会提示 去修改 project_root/gradle/wrapper/gradle-wrapper.properties这个文件中
distributionUrl=http\://services.gradle.org/distributions/gradle-1.1...
分类:
其他好文 时间:
2014-05-20 14:01:16
阅读次数:
239
本例采用jsoncpp-src-0.6.0-rc2-amalgamation.tarjava调用语句
int id = 1001; String name = "Kevin"; String result = system.toBuildJson(id,
name); Log.i(TAG,St...
分类:
Web程序 时间:
2014-05-20 12:29:01
阅读次数:
387