cache 的设计与实现--转载
摘要:本文整理自一下两篇博客:http://my.oschina.net/ScottYang/blog/298727http://my.oschina.net/u/866190/blog/188712Cache简介: Cache(高速缓存), 一个在计算机中几乎随时接触的概念。CPU中Cache能极大提高...
阅读全文
posted @
2014-09-30 09:26
一天不进步,就是退步
阅读(3907)
推荐(0)
RESTful Web Services: A Tutorial--reference
摘要:As REST has become the default for most Web and mobile apps, it's imperative to have the basics at your fingertips.More than a decade after its introd...
阅读全文
posted @
2014-09-29 09:29
一天不进步,就是退步
阅读(824)
推荐(0)
Example of how to use both JDK 7 and JDK 8 in one build.--reference
摘要:JDK 8 ReleasedMost of us won’t be able to use/deploy JDK 8 in production for a looong time. But that shouldn’t stop us from using it, right?It should ...
阅读全文
posted @
2014-09-29 09:21
一天不进步,就是退步
阅读(342)
推荐(0)
10 Questions To Make Programming Interviews Less Expensive--reference
摘要:ConductingInterviewis not cheap and costs both time and money to a company. It take a lot of time to find the right candidate for a job from 100s resu...
阅读全文
posted @
2014-09-29 09:12
一天不进步,就是退步
阅读(266)
推荐(0)
forward 和redirect
摘要:1. forward方法使用request.getRequestDispatcher(path).forward(request.response);首先来看getRequestDispatcher方法,path必须是相对路径。getRequestDispatcherRequestDispatche...
阅读全文
posted @
2014-09-28 11:53
一天不进步,就是退步
阅读(11844)
推荐(1)
How to Read, Write XLSX File in Java - Apach POI Example---reference
摘要:No matter how Microsoft is doing in comparison with Google, Microsoft Office is still the most used application in software world. Other alternatives ...
阅读全文
posted @
2014-09-22 17:27
一天不进步,就是退步
阅读(2953)
推荐(0)
JDK动态代理实现简单AOP--转
摘要:JDK动态代理是java反射的一个重要特性。它在某种方面为java提供了动态性的特性,给应用带来了无限的空间。大名鼎鼎的Hessian、Spring AOP基于动态代理实现。本文将简单的介绍JDK动态代理使用。关于代理模式代理模式是非常常用的一种设计模式,在我们的应用中经常被使用。一般场景是,我们有...
阅读全文
posted @
2014-08-28 17:31
一天不进步,就是退步
阅读(460)
推荐(0)
Java Numeric Formatting--reference
摘要:I can think of numerous times when I have seen others write unnecessary Java code and I have written unnecessary Java code because of lack of awarenes...
阅读全文
posted @
2014-08-28 11:02
一天不进步,就是退步
阅读(668)
推荐(0)
跨平台传输中使用base64来保证非ascii码字符串的完整性
摘要:首先,我们来看一个例子:byte[] b=new byte[]{2,9,43};String ss=new String(b,"utf-8");byte[] b1=ss.getbytes();这种情况下,b和b1字节数组是相同的。那下面这种情况呢?byte[] b=new byte[]{-2,-9,...
阅读全文
posted @
2014-08-28 10:47
一天不进步,就是退步
阅读(4674)
推荐(0)
java Serializable和Externalizable序列化反序列化详解--转
摘要:一、什么是序列化?“对象序列化”(Object Serialization)是 Java1.1就开始有的特性。 简单地说,就是可以将一个对象(标志对象的类型)及其状态转换为字节码,保存起来(可以保存在数据库,内存,文件等),然后可以在适当的时候再将其状态恢复(也就是反序列化)。serializati...
阅读全文
posted @
2014-08-23 23:27
一天不进步,就是退步
阅读(10921)
推荐(2)
Servlet的PrintWriter out = response.getWriter()使用
摘要:一直以来,只知道out可以向客户端浏览器页面输入数据(html、txt等类型),今天在和php程序联调时发现自己的理解出现了偏差。out是输出字符流,即servlet接受到request请求后,servlet使用out来返回结果,不管客户端是什么(浏览器或者httpclient 或者别的serlve...
阅读全文
posted @
2014-08-23 23:10
一天不进步,就是退步
阅读(19171)
推荐(2)
Java Performance Optimization Tools and Techniques for Turbocharged Apps--reference
摘要:Java Performance Optimizationby: Pierre-Hugues Charbonneaureference:http://refcardz.dzone.com/refcardz/java-performance-optimizationJava is among the ...
阅读全文
posted @
2014-08-23 22:57
一天不进步,就是退步
阅读(562)
推荐(0)
RSA加密解密及数字签名Java实现--转
摘要:RSA公钥加密算法是1977年由罗纳德·李维斯特(Ron Rivest)、阿迪·萨莫尔(Adi Shamir)和伦纳德·阿德曼(Leonard Adleman)一起提出的。当时他们三人都在麻省理工学院工作。RSA就是他们三人姓氏开头字母拼在一起组成的。 RSA是目前最有影响力的公钥加密算法,它能够抵...
阅读全文
posted @
2014-08-19 16:58
一天不进步,就是退步
阅读(4586)
推荐(0)
RSA体系 c++/java相互进行加签验签--转
摘要:在web开发中,采用RSA公钥密钥体系自制ukey,文件证书登陆时,普遍的做法为:在浏览器端采用c++ activex控件,使用 c++的第三库openssl进行RAS加签操作,在服务器端采用java对客户端的签名进行验签操作。这就涉及到c++ openssl和java之间交互加签验签对客户端身份进...
阅读全文
posted @
2014-08-19 16:54
一天不进步,就是退步
阅读(4714)
推荐(1)
在浏览器地址栏按回车、F5、Ctrl+F5刷新网页的区别--转
摘要:其中,在地址栏按回车又分为两种情况。一是请求的URI在浏览器缓存中未过期,此时,使用Firefox的firebug插件在浏览器里显示的HTTP请求消息头如下:Host 192.168.3.174:8080User-Agent Mozilla/5.0 (Windows NT 5.1; rv:5.0) ...
阅读全文
posted @
2014-08-18 15:37
一天不进步,就是退步
阅读(357)
推荐(0)
Change value of string array at debug eclipse--转
摘要:Question:I have an application, but to test something, I need to change value of aString[].But when I do it usingchange valueinvariablestab, everytime...
阅读全文
posted @
2014-08-14 19:07
一天不进步,就是退步
阅读(824)
推荐(0)
Eclipse中输入系统变量和运行参数--转
摘要:原文地址:http://chenzhou123520.iteye.com/blog/1931670在开发时,有时候可能需要根据不同的环境设置不同的系统参数,我们都知道,在使用java -jar命令时可以使用-D参数来设置运行时的系统变量,同样,在Eclipse中运行java程序时,我们怎么设置该系统...
阅读全文
posted @
2014-08-14 16:32
一天不进步,就是退步
阅读(630)
推荐(0)
UNDERSTANDING VOLATILE VIA EXAMPLE--reference
摘要:We have spent last couple of months stabilizing thelock detection functionality in Plumbr. During this we have stumbled into many tricky concurrency i...
阅读全文
posted @
2014-08-14 15:20
一天不进步,就是退步
阅读(260)
推荐(0)
Java 8 Features – The ULTIMATE Guide--reference
摘要:Now, it is time to gather all the major Java 8 features under one reference post for your reading pleasure. Enjoy!Table Of Contents1. Introduction2. N...
阅读全文
posted @
2014-08-05 09:31
一天不进步,就是退步
阅读(695)
推荐(0)
Slow Server? This is the Flow Chart You're Looking For--reference
摘要:Your high-powered server is suddenly running dog slow, and you need to remember the troubleshooting steps again. Bookmark this page for a ready remind...
阅读全文
posted @
2014-08-04 08:51
一天不进步,就是退步
阅读(398)
推荐(0)