架构 - 非功能性需求
架构设计中考量的是Non Functional factors Response Time处理一次请求的时间或者平均时间 Throughput一般以 hits per second or transactions per second 度量 ScalabilityScale up...
OpenID and OAuth
OpenID and OAuth From http://cakebaker.42dh.com/2008/04/01/openid-versus-oauth-from-the-users-perspective/ In this article I want to show the diff...
Class Loader
Java ClassLoader 调用自定义ClassLoader1234567891011121314151617public class ClassLoaderTest { public static void main(String[] args) { ...
ClassNotFoundException and NoClassDefFoundError
ClassNotFoundException and NoClassDefFoundError From: http://jroller.com/sjivan/entry/difference_between_classnotfoundexception_and_noclassdeffound...
Javascript data types and values
Javascript type<! –more–> +Five basic data types number, The special ones are NaN, Infinity, and Infinity. NaN (Not a Number) is actually of...
How to easily obtain the stack trace dump of a Java process
How to easily obtain the stack trace dump of a Java process<! –more–> The simplest and most direct way to go crazy is to find the ID of this ...
如何简单的得到Java进程的stack trace dump
如何简单的得到Java进程的stack trace dump 最简单直接变态的方法是:找到这个java进程的id(linux下的ps或者windows下的jps),直接kill掉。 1kill -3 pid java虚拟机没有hang住的情况下会立即dump stack trace;否则需要...
Javascript 数据类型和值
Javascript 类型 五个基本类型(primitive data type) number,特殊的是NaN,Infinity,-Infinity。 NaN(Not a Number)实际上还是Number类型 string boolean undefined,唯一值是unde...
构建高性能Web站点读后
构建高性能Web站点读后 数据库层主要查询建索引,一个是全表扫描,一个是常量时间。通过explain 查询语句就知道了 通过memcached分布式缓存减少数据库或者磁盘文件IO,原则是把数据缓存到离使用者最近的地方 写操作也可以缓存,如果不要求实时更新到数据库的话。比如把某个页...
JDK中用到的设计模式
JDK中用到的设计模式 java.io 中用到了装饰模式和适配器模式 装饰模式, In general, each read request made of a Reader causes a corresponding read request to be made of the under...