调用JNI的时候,通常我们使用System.loadLibrary(String libname)来load JNI library, 同样也可以使用System.load(String fileName)来load JNI library,两者的区别是一个只需要设置库的名字,比如如果libA.so 只...
分类:
其他好文 时间:
2014-09-03 15:11:07
阅读次数:
175
在我们常用的Jstack, Jmap 用于分析java虚拟机的状态的工具,通过起另一个虚拟机通过运行sun.tools包下的java文件,去跟踪另一个虚拟机的状态。 如果让你设计一个跟踪另一个进程的方法,你也通常会考虑这几种常用...
分类:
其他好文 时间:
2014-09-03 11:28:17
阅读次数:
414
公司采用电信光纤,分配了5个IP地址,为了方便使用,将光猫的网线直接接入到交换机中。Cisco2911路由器的的Outside和Inside的网络都从交换机中接线。因为Cisco路由器默认是开启proxy-arp,所以当Outside收到广播的ARP信息后,因Inside的网段与广播的网段处于同一个网段,于是路..
分类:
其他好文 时间:
2014-09-02 12:34:25
阅读次数:
1924
最近看了下Inside C++里面讲的对虚继承层次的对象的内存布局,发现在不同编译器实现有所区别。因此,自己动手探索了一下。结果如下:首先,说说GCC的编译器.它实现比较简单,不管是否虚继承,GCC都是将虚表指针在整个继承关系中共享的,不共享的是指向虚基类的指针。class A {int a;vir...
分类:
其他好文 时间:
2014-08-31 17:14:21
阅读次数:
179
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Loope解决办法:
分类:
移动开发 时间:
2014-08-27 18:23:18
阅读次数:
208
本节提到了typedef的作用域以及解析方式的问题,有以下代码段: 1 #include 2 3 using namespace std; 4 5 typedef int length; 6 7 class X { 8 public: 9 length getVal() {10 ...
分类:
编程语言 时间:
2014-08-26 09:47:35
阅读次数:
190
User Attributes - Inside Active DirectoryRelated to the book Inside Active Directory, ISBN 0-201-61621-1Copyright (C) 2002 by Sakari KoutiVersion: Dec...
分类:
其他好文 时间:
2014-08-25 19:01:55
阅读次数:
326
-- chapter2. //23.-- Blueprint of a MolehillStage3D objects are not inside the DisplayList in Flash!As they are not DisplayObjects, you cannot apply f...
分类:
其他好文 时间:
2014-08-20 20:52:52
阅读次数:
194
Margin vs. PaddingMargin is on the outside of block elements while padding is on the inside. Use margin to separate the block from things outside it. ...
分类:
Web程序 时间:
2014-08-20 09:12:56
阅读次数:
201
Linking Containers Together
In the Using Docker section we touched on connecting to a service running inside a Docker container via a network port. This is one of
the ways that you can interact w...
分类:
其他好文 时间:
2014-08-17 11:46:32
阅读次数:
245