linux系统目录/usr/share/vim/vim74/autoload下列出vim安装完成后自带的一些插件,如果需要启用这些插件需要在~/.vimrc中进行配置,比如:配置python插件启用, 必须保证编译安装 VIM 的时候启用了 Python 特性,...
分类:
系统服务 时间:
2015-08-13 18:18:13
收藏:
0 评论:
0 赞:
0 阅读:
299
API Server 权限管理应用 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? API ...
分类:
Windows开发 时间:
2015-08-13 18:18:03
收藏:
0 评论:
0 赞:
0 阅读:
280
数据model,此model只存在getXXX和setXXX方法,不存在isXXX方法。 /**
?*?Created?by?lgq?on?2015/8/13.
?*/
public?class?Student?{
????private?long?id;
????private?String?name;
...
分类:
编程语言 时间:
2015-08-13 18:17:53
收藏:
0 评论:
0 赞:
0 阅读:
261
Introduction to Mesos + Docker Apache Mesos is a cluster manager that simplifies the complexity of running tasks on a shared pool of servers. Docker is a lightweight container for deploying package...
分类:
其他 时间:
2015-08-13 18:17:33
收藏:
0 评论:
0 赞:
0 阅读:
191
Rex控制台;操作系统(centos7.1) weblogic集群操作系统:centos6.6 tomcat集群操作系统:centos6.6 nginx代理操作系统:centos6.6 远程方式:ssh公钥认证; Rex最新版本是1.3.2 该模块功能也很强大,支持各种操...
分类:
Web开发 时间:
2015-08-13 18:17:23
收藏:
0 评论:
0 赞:
0 阅读:
262
Mac内核XNU的mach_vm子系统某个函数的代码逻辑 mach子系统包括了很多内核功能的实现,比如VM子系统(内存管理)、host子系统(主机硬件信息的处理)、thread子系统(thread相关实现)、exc子系统(异常处理相关)...
分类:
系统服务 时间:
2015-08-13 18:17:14
收藏:
0 评论:
0 赞:
0 阅读:
272
系统工具集SysinternalsSuite简介 这些小工具原本是为了解决工程师们平常在工作上遇到的各种问题而开发的,之后他们将这些工具集合起来称为 Sysinternals,并免费提供公众下载,其中部分还开源了,一直以来都颇受...
分类:
其他 时间:
2015-08-13 18:17:04
收藏:
0 评论:
0 赞:
0 阅读:
192
package?com.test.zk;
import?org.apache.zookeeper.*;
import?org.apache.zookeeper.data.Stat;
import?java.io.IOException;
import?java.util.List;
import?java.util.concurrent.CountDownLatch;
p...
分类:
编程语言 时间:
2015-08-13 18:16:53
收藏:
0 评论:
0 赞:
0 阅读:
251
概述 ActionScript 是基于ECMAScript 的一种语言。当处理交互需求时,Flash 应用程序会使用此语言。和其它语言一样, ActionScript 有一些可能会导致安全问题的实施模式。特别是,因为Flash 应用往往嵌入浏览器中...
分类:
其他 时间:
2015-08-13 18:16:34
收藏:
0 评论:
0 赞:
0 阅读:
271
链接:点击打开链接
题意:t组数据,给出n个单词,再给一句话,问这句话中出现过几个给出的单词
代码:#include
#include
#include
#include
#include
#include
#include
using namespace std;
struct node{
int str[26],fail;
short dis;
}ch[250...
分类:
其他 时间:
2015-08-13 18:15:13
收藏:
0 评论:
0 赞:
0 阅读:
280
在《敏捷软件开发-原则、模式与实践》一书中,对开放闭合原则的定义为:
软件实体(类、模块、函数等)应该是可以扩展的,但是不可以修改。
简言之,两个特征:
1、对于扩展是开放的;
2、对于修改是关闭的
这两点特征貌似自相矛盾,怎么样在不改动模块源码的情况下去更改他的行为呢?如果不更改一个模块,又怎么能够去改变它的功能呢?
答案很简单,就是抽象。模块可能对抽象体进行操作。由于模块依赖于一个...
分类:
其他 时间:
2015-08-13 18:15:03
收藏:
0 评论:
0 赞:
0 阅读:
408
android JNI是连接android Java部分和C/C++部分的纽带,完整使用JNI需要Java代码和C/C++代码。其中C/C++代码用于生成库文件,Java代码用于引用C /C++库文件以及调用C/C++方法。
android Java部分代码:
/*
* Copyright (C) 2008 The Android Open Source Project
*
*...
分类:
移动平台 时间:
2015-08-13 18:14:53
收藏:
0 评论:
0 赞:
0 阅读:
233
最近也是因为项目的原因,所以有机会接触到这边的算法。 此文重点不是如何实现的思路和原理, 有需要的同事可以借鉴一下
废话不多说,直接上代码:
public class MyImage extends ImageView {
private DisplayMetrics dm;
private int bodyImageViewHeight = 0;
private ...
分类:
其他 时间:
2015-08-13 18:14:43
收藏:
0 评论:
0 赞:
0 阅读:
177
Lowest Common Ancestor of a Binary Tree Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
According to the definition of LCA on Wikipedia: “The lowest common a...
分类:
其他 时间:
2015-08-13 18:14:33
收藏:
0 评论:
0 赞:
0 阅读:
171
在Unix/Linux系统下进程创建时需要进行如下系统调用:fork/exec
fork()把一个进程复制成二个进程:parent (old PID), child (new PID)
exec()用新程序来重写当前进程:PID没有改变
接下来就重点学习这两个系统调用:
当我们fork() 创建一个继承的子进程将会发生如下事情:复制父进程的所有变量和内存,复...
分类:
系统服务 时间:
2015-08-13 18:14:23
收藏:
0 评论:
0 赞:
0 阅读:
229
分页其实很简单,无非就是根据sql语句,加上限制条件,显示从第几条数据,到第几条数据而已。
切入正题,先看一下下面的例子。我有一张表sjdr_product_detail
首先查询全部:select * from sjdr_product_detail; //一共17条数据分页,就是通过sql语句的limit关键字来限制条件。select * from sjdr_product_detail l...
分类:
数据库技术 时间:
2015-08-13 18:14:14
收藏:
0 评论:
0 赞:
0 阅读:
270
策略模式是什么:首先,策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。策略模式让算法独立于使用它的客户而独立变化。说的有点不太容易理解,在我们面向对象的思想中一般都是结合我们的生活实例,举个现实的例子,我们的动物中有多种不同的鸟,它们都会飞行,都会走路,但它们的飞行方式不同,有些是翱翔,有些是燕子那样飞行,也有会像俯飞的(这个例子有点挫),但是鸟都会飞,它们的飞行策略...
分类:
其他 时间:
2015-08-13 18:13:53
收藏:
0 评论:
0 赞:
0 阅读:
216
Problem Description
Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.
A block...
分类:
Web开发 时间:
2015-08-13 18:13:33
收藏:
0 评论:
0 赞:
0 阅读:
167
OS:CentOS 7
在CentOS 7 下使用virt-manager增加虚拟机,配置成功后,启动虚拟机时,出现一下提示:
qemu-kvm: -drive file=/var/lib/libvirt/images/AloeCCnode_v2.1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk im...
分类:
其他 时间:
2015-08-13 18:13:13
收藏:
0 评论:
0 赞:
0 阅读:
958
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:create (default-cli) on project standalone-pom: Unable to parse configuration of
mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:create for parameter
#: Cannot create ins...
分类:
其他 时间:
2015-08-13 18:13:04
收藏:
0 评论:
0 赞:
0 阅读:
213