#查看当前系统load
uptime
#查看系统状态和每个进程的系统资源使用状况
top
#可视化显示CPU的使用状况
htop
#查看每个CPU的负载信息
mpstat -P ALL 1
#每隔1秒查看磁盘IO的统计信息
iostat -xkdz 1
#每隔一秒查看虚拟内存的使用信息
vmstat 1
#查看内存使用统计信息
free
#查看网络使用信息
nicstat -z 1
...
分类:
系统相关 时间:
2014-06-29 07:23:22
阅读次数:
461
1 查看各个项目的Project ID编号
mysql -uroot -h10.10.2xx.xx
show databases;
use bugfree2;
desc bf_TestProject;
select ProjectID,ProjectName from bf_TestProject;(查询结果如下)
2 在/va...
分类:
其他好文 时间:
2014-06-20 12:19:19
阅读次数:
262
K-Nearest Neighbors
The algorithm caches all training samples and predicts the response for a new sample by analyzing a certain number (K) of the nearest neighbors of the sample using voting, calcu...
分类:
其他好文 时间:
2014-06-20 11:51:33
阅读次数:
337
查询已经创建的数据库 show dbs
选择数据库
use DATABASE_NAME
查询该数据库里面的集合 show collections
删除集合操作:
db.COLLECTION_NAME.drop()
插入数据操作:
db.COLLECTION_NAME.insert(
do...
分类:
数据库 时间:
2014-06-20 10:57:41
阅读次数:
275
一直想要写的 二叉树 中序 先序 后序遍历算法
递归的太简单了,就不写了。关键是非递归版本。
先序:
我自己的版本:
void RootPreTraverse(Node* p)
{
Stack S;
while(S not empty)
{
p=S.top();
S.pop();
Show(p);
if(p->right!=null)
S...
分类:
其他好文 时间:
2014-06-20 10:55:49
阅读次数:
279
Problem Description
Harry: "But Hagrid. How am I going to pay for all of this? I haven't any money."
Hagrid: "Well there's your money, Harry! Gringotts, the wizard bank! Ain't no safer place. Not...
分类:
其他好文 时间:
2014-06-20 10:25:17
阅读次数:
228
程序代码:
#include
using namespace std;
class Time
{
public:
Time(int=0,int=0,int=0);
void show_time( ); //根据is_24和from0,输出适合形式-20:23:5/8:23:5 pm/08:23:05 pm
void add_seconds(int); //增加n秒钟
void ad...
分类:
其他好文 时间:
2014-06-20 09:53:39
阅读次数:
206
题目
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary t...
分类:
其他好文 时间:
2014-06-07 15:31:32
阅读次数:
179
GDB多线程调试的基本命令。
info threads
显示当前可调试的所有线程,每个线程会有一个GDB为其分配的ID,后面操作线程的时候会用到这个。 前面有*的是当前调试的线程。
thread ID
切换当前调试的线程为指定ID的线程。
break thread_test.c:123 thread all
在所有线程中相应的行上设置断点
...
分类:
数据库 时间:
2014-06-07 15:26:57
阅读次数:
320
题目
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum
= 22,
5
...
分类:
其他好文 时间:
2014-06-07 13:47:22
阅读次数:
191