微软近期Open的职位:Title: Principal Dev ManagerLocation: BeijingThe R&D of Shared Data Platform at Search Technology Center Asia aims to build a unified data...
分类:
其他好文 时间:
2014-08-25 16:32:34
阅读次数:
271
Consistency model
From Wikipedia, the free encyclopedia
In computer science, consistency
models are used in distributed systems like distributed
shared memory systems or distributed da...
分类:
其他好文 时间:
2014-08-25 11:53:34
阅读次数:
359
你打开tomcat7\conf\catalina.properties文件再打开tomcat5的,看完后, 你就知道了tomcat 5.5.35## List of comma-separated paths defining the contents of the "shared" # class...
分类:
其他好文 时间:
2014-08-24 16:39:22
阅读次数:
181
一 JDBC链接
通常你希望SessionFactory来为你创建和缓存(pool)JDBC连接. 如果你采用这种方式, 只需要如下例所示那样,打开一个Session:
Session session = sessions.openSession(); // open a new Session
一旦你需要进行数据访问时, 就会从连接池(connection pool)获得一个JD...
分类:
系统相关 时间:
2014-08-23 11:20:01
阅读次数:
266
CentOS系统时间同步的步骤如下:新装的CentOS系统服务器可能设置了错误的,需要调整时区并调整时间.如下是CentOS系统使用NTP来从一个时间服务器同步cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate us.pool.ntp...
分类:
其他好文 时间:
2014-08-23 11:11:50
阅读次数:
142
【问题现象】MCS出来的虚拟机无法被删除【环境】VDA:Win7SP1Enterprise32bitDDC:XenDesktop5.6MachineType:Pool-Randomly【问题分析及处理】1.将虚拟机先从桌面组中移除并将其置成维护模式。2.右键删除虚拟机并从ActiveDirectory中删除。界面开始停留在删除vm的进度条中,如下..
分类:
其他好文 时间:
2014-08-22 18:04:09
阅读次数:
571
条款13:以对象管理资源
使用RAII,获得资源后立刻放进管理对象,管理对象运用析构函数确保资源被释放。
为防止资源泄露,请使用RAII对象,它们在构造函数中获得资源并在析构函数中释放资源。
两个常被使用的RAII类是tr1::shared_ptr和tr1::auto_ptr。前者通常是较佳选择,因为其拷贝行为比较直观。若选择auto_ptr,复制动作会使被复制物指向null.
条款14...
分类:
编程语言 时间:
2014-08-22 16:22:49
阅读次数:
250
这里直接把在网上的找到的答案记录下来,原文地址:http://www.oschina.net/question/109676_15561:如果出现启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误,原因1:给定目录下jvm.d...
分类:
系统相关 时间:
2014-08-21 22:39:54
阅读次数:
707
多线程模型设计是一个比较复杂的逻辑,但是python对于多线程的处理却有种种方便的类库,不需要过多的纠结线程间的操作细节。比如[multiprocessing.Pool](https://docs.python.org/2/library/multiprocessing.html...
分类:
编程语言 时间:
2014-08-21 17:27:04
阅读次数:
339
TARGET_LIB:=libsqlite3.so
LIBS := -lpthread -ldl
CFLAGS := -g -Wall -shared -fPIC -I. $(LIBS)
CC := mipsel-openwrt-linux-gcc #交叉编译下的编译路径
STRIP := mipsel-openwrt-linux-strip
OBJ := sqlite3.o
all...
分类:
数据库 时间:
2014-08-21 11:34:24
阅读次数:
631