`
itace
  • 浏览: 185250 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
  转:http://blog.csdn.net/qinjuning/article/details/7599796    在Java存在两种数据类型: 基本类型 和 引用类型  。       在JNI的世界里也存在类似的数据类型,与Java比较起来,其范围更具严格性,如下:    

apache安装

  httpd-2.4.20-x64-vc9.zip解压改名   1.修改配置文件D:\app\Apache\conf\httpd.conf中的路径内容如下: Define SRVROOT "D:/app/Apache" 2.安装apache服务,cmd命令行执行:D:\app\Apache\bin>httpd.exe -k install -n "Apache" (删除服务:sc delete Apache) 3.启动服务,访问127.0.0.1      

62进制

部分代码来源开源网友,笔记,侵删   //字符顺序可以乱的,但是由于三位0补全的关系,第一个index必须是'0', private static char[]cs = new char[]{'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n' ...
  查询tomcat并发连接数 netstat -na | grep ESTAB | grep 8080 | wc -l   http://tomcat.apache.org/tomcat-8.0-doc/config/http.html   maxThreads The maximum number of request processing thre
  show variables like '%max_connections%'; show processlist; -- show full processlist; show status; -- like '%Threads_connected%';  

MD5.js+sha.js

    博客分类:
  • js
  <script type="text/javascript" src="MD5.js"></script> <script type="text/javascript" src="sha.js"></script> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> /** * jsSH ...

cvsnt-server安装设置

    博客分类:
  • cvs
cvsnt installation settings   CVSNT setup Download and install CVSNT http://www.march-hare.com/cvspro/ # downcvsnt. setup: 1. Start "CVSNT Control Panel", enter "Repository configuration" option, click the "Add"

安装2个JDK

  先安装了JDK1.6,后安装了JDK1.8,然后cmd查看版本,java -version,会显示后者1.8. 通常更改一下JAVA_HOME的jdk路径就ok,有时需要查看环境变量path路径,发现path中有C:\ProgramData\Oracle\Java\javapath,找到文件夹下,有下图  然后把1.6的版本下的对应程序生成快捷方式   再次java -version 

ThreadLocal

private static final ThreadLocal<Integer> value = new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return 0; } }; public static int getID(){ int id = value.get(); id++; value.set(id); return id; } ...
  1. 最左前缀匹配原则,非常重要的原则,mysql会一直向右匹配直到遇到范围查询(>、<、between、like)就停止匹配,比如a = 1 and b = 2 and c > 3 and d = 4 如果建立(a,b,c,d)顺序的索引,d是用不到索引的,如果建立(a,b,d,c)的索引则都可以用到,a,b,d的顺序可以任意调整。2. =和in可以乱序,比如a = 1 and b = 2 and c = 3 建立(a,b,c)索引可以任意顺序,mysql的查询优化器会帮你优化成索引可以识别的形式。3. 尽量选择区分度高的列作为索引,区分度的公式是count(dis ...

java集合类2

所有类适用范围: List Set ArrayList-10    动态数组,有序,对象可重复 LinkedList-0  链表,无序(实现Deque) HashSet-16 不重复的对象 TreeSet-0  添加无序,输出有序 HashMap-16 允许空键值 LinkedHashMap-16 有序,输出添加的顺序 TreeMap-0  添
    public class ThreadPool { private static ExecutorService threadPool = null; private static int corePoolSize=10;//始终有corePoolSize个线程在执行(waiting状态) private static int maximumPoolSize=100;//taskthread数量超过maximumPoolSize,可能会有如干个辅助线程,状态为TIMED_WAITING private static long keepAliveTime=15;/ ...

开源技术and工具

    博客分类:
  • java
elasticsearch-一个基于Lucene的搜索服务器 kibana-一个为 Logstash 和 ElasticSearch 提供的日志分析的 Web 接口 lucene-一个开放源代码的全文检索引擎工具包 ActiveMQ-开源消息总线 kafka-一种高吞吐量的分布式发布订阅消息系统,它可以处 ...

Deque

/** * Retrieves and removes the head of the queue represented by this deque * (in other words, the first element of this deque), or returns * <tt>null</tt> if this deque is empty. * * <p>This method is equivalent to {@link #pollFirst()}. * ...
    Runnable                interface           void run()       donot throws Exception Callable<V>           interface           V call()            throws Exception Future<V>             interface           V get() FutureTask<V>      class [implements RunnableFuture<V& ...
Global site tag (gtag.js) - Google Analytics