1.假设192.168.1.3为服务器2.首先在ip为192.168.1.103的机子上能够ping通运行->cmd>ping192.168.1.3检查是否能ping通3.把两台电脑的IP设置在同一个网段,如:192.168.1.2,192.168.1.3。。。。。子网:255.255.255.0网...
分类:
数据库 时间:
2014-05-01 13:01:56
阅读次数:
580
iterator的hasNext() 和
next()方法用于enumeration的hasMoreElements() 和 nextElement()iterator it =
a.itreator();Enumeration en = new Enumeration(){@Overridepub...
分类:
其他好文 时间:
2014-05-01 12:59:57
阅读次数:
358
windows下面可以主线程while loop接受input;但是觉得很丑。
linux没办法这样,可以用注册信号的办法。实现起来也不难:
#include "stdio.h"
#include "unistd.h"
#include "signal.h"
#include "error.h"
volatile bool isStop = false;
static void handl...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
418
本文基于Android 4.2.2从进程/文件的角度审视Android
Camera子系统。
AndroidCamera子系统的整体架构分成客户端(Client)和服务器(Server)两个部分,它们建立在Android的进程间通讯机制Binder的基础之上。
查看进程
root@android:/# ps
USER PID
PPID
V...
分类:
移动开发 时间:
2014-04-29 13:41:19
阅读次数:
715
We sometimes got memory leak problem, and we need to find the leaked memory, Here is a useful tool from MS, UMDH, it is included in WinDBG install package.
Here is a introduction on how to UMDH to identify memory leak problems...
分类:
其他好文 时间:
2014-04-29 13:38:21
阅读次数:
374
什么是表分区
一般情况下,我们建立数据库表时,表数据都存放在一个文件里。
但是如果是分区表的话,表数据就会按照你指定的规则分放到不同的文件里,把一个大的数据文件拆分为多个小文件,还可以把这些小文件放在不同的磁盘下由多个cpu进行处理。这样文件的大小随着拆分而减小,还得到硬件系统的加强,自然对我们操作数据是大大有利的。
所以大数据量的数据表,对分区的需要还是必要的,因为它可以提高s...
分类:
数据库 时间:
2014-04-29 13:33:20
阅读次数:
544
在windows下运行VMware创建的虚拟机时出错,无法运行。
错误提示大概为:
Failed to lock the file
Cannot open the disk 'D:\Windows Server 2008 R2 x64.vmdk' or one of the snapshot disks it depends on.
解决方法:
把虚拟机文件夹里【.lck】...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
366
Android SDK中有一个工具HierarchyView.bat,可以分析出模拟器中运行程序的界面设计层次;我们可以用此工具来分析自己的应用布局是否有优化的空间,也可以分析别人优秀的布局进行借鉴和学习。
使用HierarchyView.bat 非常简单:
1.启动模拟器;
2.运行要分析的程序;
3.在SDK目录下(如D:\AndroidHome\android-sdk-windows...
分类:
移动开发 时间:
2014-04-29 13:25:21
阅读次数:
416