BOOLEAN MmIsAddressValid( _In_PVOID
VirtualAddress);ParametersVirtualAddress[in]A pointer to the nonpaged virtual
address to check. The caller must e....
分类:
其他好文 时间:
2014-05-09 11:51:40
阅读次数:
535
登陆mysql
harvey@harvey-Virtual-Machine:~/ruby/mydiary$ mysql -u root -pEnter password:
Welcome to the MySQL monitor. Commands end with ; or \g. 查看所有的数据...
分类:
数据库 时间:
2014-05-07 20:06:47
阅读次数:
452
JVM ----Java Virtual Machine (熟称:JAVA虚拟机),JVM
在执行JAVA程序的过程中将内容划分为若干个区域,其有各自的用途和管理机制。如下图: 1. 程序计算器(Program Counter Register) --
是当前线程所执行字节码的行号指示器,通过改变其...
分类:
其他好文 时间:
2014-05-07 18:51:32
阅读次数:
373
2.解析查看java.lang.System的源代码,我们可以找到System.exit(status)这个方法的说明,代码如下: /** *
Terminates the currently running Java Virtual Machine. The * argument...
分类:
其他好文 时间:
2014-05-06 11:50:01
阅读次数:
283
用 'top -i' 看看有多少进程处于 Running 状态,可能系统存在内存或 I/O 瓶颈,用 free 看看系统内存使用情况,swap 是否被占用很多,用 iostat 看看 I/O 负载情况...
还有一种办法是 ps -ef | sort -k7 ,将进程按运行时间排序,看哪个进程消耗的cpu时间最多。
top:
主要参数
d:指定更新的间隔,以秒计算。
q:没有任何延迟...
分类:
系统相关 时间:
2014-05-05 13:09:00
阅读次数:
526
加快Android模拟器运行速度本文部分参考,原文:http://www.imzzy.com/andorid-virtual-device-intel-hardware-accelerated.html安装英特尔硬件加速执行管理器可以让安卓模拟器加快运行速度。原文:http://www.imzzy....
分类:
移动开发 时间:
2014-05-04 10:41:12
阅读次数:
480
劳动节最后一天没事,想捣鼓一下BT5破解无线wep/wpa,BT5+virtual
box早已准备就绪,上网专门找了一些资料,并买了一个据评测很兼容的usb网卡tp-link
wn722n,芯片代号AR9271,本来想着这一下午可有趣了,没想到事情变的比我想的更有趣。。。首先是惊奇的发现tl这个us...
分类:
其他好文 时间:
2014-05-04 09:56:13
阅读次数:
278
在派生类中序列化一个基类
假如有一个基类如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
student_info(const std::string& sn, const std::string& snm, const std::string& sg)
: name_(sn),...
分类:
其他好文 时间:
2014-05-03 21:41:12
阅读次数:
356
本篇是boost::serialization 用基类指针转存派生类(错误多多,一波三折)的姊妹篇,这里只不过做一个总结。
先来看一个基类
class base_class
{
public:
base_class(int m=0) : base_member_(0) {}
virtual ~base_class() {}
virtual void print_data() = 0;
...
分类:
其他好文 时间:
2014-05-03 21:24:33
阅读次数:
247
boost::serialization 也支持c++的多态,这样我们就可以通过使用基类的指针来转存派生类,
我们接着上一篇(
boost::serialization(2)序列化基类
)的例子来看:
基类和派生类的代码如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
s...
分类:
其他好文 时间:
2014-05-03 21:08:18
阅读次数:
280