SystemTap脚本主要是由探测点和探测点处理函数组成的,来看下都有哪些探测点可用。
The essential idea behind a systemtap script is to name events, and to give them handlers.
Systemtap works by translating the script to C, running the system C compiler to create a kernel module from that.
When t...
分类:
其他好文 时间:
2014-06-07 01:59:08
阅读次数:
369
运行效果:
方法一
public void openDialog(View v) {
// 打开一个对话框
// 构建者对象
AlertDialog.Builder builder = new Builder(this);
// 构建者创建一个对话框
AlertDialog alertDialog = builder.create();
// 设置对话框的标题
...
分类:
移动开发 时间:
2014-06-07 01:14:00
阅读次数:
252
1 初始添加设备后、上传Object的具体流程
前几篇博客中,我们讲到环的基本原理即具体的实现过程,加入我们在初始创建Ring是执行如下几条命令:
?swift-ring-builder object.builder create 5 3 1
?swift-ring-builder object.builder add z1-127.0.0.1:6010/sdb1 100...
分类:
其他好文 时间:
2014-06-05 12:40:26
阅读次数:
316
一直没有认真觉察UPDATE操作的锁,最近在MSDN上看到一个问题,询问堆表更新的死锁问题,问题很简单,有类似这样的表及数据:CREATE TABLE dbo.tb( c1 int, c2 char(10), c3 varchar(10));GODECLARE @id int;SET @id = 0;WHILE @id 5BEGIN; SET...
分类:
其他好文 时间:
2014-06-05 10:24:32
阅读次数:
271
需求是这样的:系统中会有很多的执行时间,三个或者四个这样,不确定,以后可能是五个!当用户在页面添加执行时间时,我们后台也要对应执行用户添加的时间。
数据库设计:
DROP TABLE IF EXISTS `test_time_task`;
CREATE TABLE `test_time_task` (
`status` int(11) DEFAULT NULL COMMENT '状态:0为...
分类:
编程语言 时间:
2014-06-05 10:00:30
阅读次数:
245
在lxc安装过程遇到的所有问题解决后,你可以创建你的第一个lxc容器了。最简单的方法使用lxc自带的创建文件系统的工具,当然你也可以自己做个文件系统。模板的安装路径一般放在/usr/local/share/lxc/templates#lxc-create -t centos -n centos-tst#lxc-start -n centos-tst...
分类:
其他好文 时间:
2014-06-05 09:38:02
阅读次数:
258
看下ThreadPoolImpl的构造函数:
/**
* This constructor is used to create an unbounded threadpool
*/
public ThreadPoolImpl(ThreadGroup tg, String threadpoolName) {
inactivityTimeout = ORB...
分类:
其他好文 时间:
2014-06-05 07:41:45
阅读次数:
386
Managing the Activity Lifecycle
管理活动的生命周期
Previous
Next
Get started
Dependencies and prerequisites
依赖和先决条件
How to create an Android project (see
Creating ...
分类:
其他好文 时间:
2014-06-05 06:25:32
阅读次数:
300
题意:求'X'围成的周长
思路:按理说每增加一个就是周长加4,但是要减去重复的地方,这里我是用BFS做的,如果是BFS的模板思路的话是不行的,应该要先取出再标记
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 30;
struct node {
int x,y;
...
分类:
其他好文 时间:
2014-06-05 06:23:39
阅读次数:
221
菜单主页面:
主菜单页面背景
CCSprite* bg = CCSprite::create("MainMenu.png");
bg->setScale(0.5);
bg->setPosition( ccp(size.width/2, size.height/2) );
this->addChild(bg, 0,0);
菜单按钮及其效果,单击事件...
分类:
其他好文 时间:
2014-06-05 00:55:52
阅读次数:
437