自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(82)
  • 资源 (13)
  • 收藏
  • 关注

原创 从实况足球看责任链模式

    如果你是一个足球迷,又喜欢玩一把游戏。那么你一定不会错过实况足球这款经典,无论是70,80,90,甚至00后,实况永远是我们青春的回忆。今年是实况足球发布第二十年,特别选了足球这个题材来讲解我想讲的这个特殊的模式。先贴图致敬经典吧。     足球是一项团队运动,一个队有11个人在比赛,这11个人各司其职。想要描述真实的足球比赛是异常复杂的,队员的能力,临场状态,阵型的安排...

2016-03-28 23:30:46 234

原创 从战神金刚看组合模式

    相信不少人小时候都喜欢倒腾机器人或者四驱车之类的玩具。在我们这一辈的儿时,所有对此类玩具的印象来自于电视机。其实代表机器人的名作有很多,最出名的的是变形金刚这部经典。其实除了变形金刚还有一句台词相信能唤起我们儿时的回忆,那就是:我来组成头部!    没错,如果你跟我生活在相同的年代,你就会认出这是战神金刚第一部的台词!下面这副图是否能唤起你的回忆:)          ...

2015-11-16 10:59:19 415

原创 从魔兽世界看状态模式

     有学过物理课的同学都知道物理课本里面有固态,液态,气态,用来描述物体的形态。但在面向对象的软件世界中,状态可以用来描述各种各样的对象。比如你想在淘宝买一个商品,此时商品肯定是在售状态,如果这个商品已经售完;如果这个商品已经被买家购买一空,那么商品变成了售空状态;如果中途这个商品被发现质量有问题,于是变成了下架状态。当然真正的商品状态肯定不止这些,这里只是举了些例。     网络上...

2015-10-30 09:40:20 289

原创 从魔兽世界看策略模式

    策略这两个字乍一听上去有点像三国志游戏里,那些鬼点子特别多的谋士出的阴谋阳谋之类的。但在面向对象的软件世界中,策略的范围要比谋略广很多。     我想以一款网络游戏来描述这个模式,玩过魔兽世界的人都知道它是比较早引入地下城(Dungeon)概念的游戏之一。地下城里有各种妖魔鬼怪给玩家砍啊杀啊。杀死boss后会掉落玩家所需要的各种装备。地下城从低级到高级,种类繁多,适合不同等级的...

2015-10-20 14:38:04 263

Solr-关于filter query对高亮功能无效的问题

 Solr版本为3.6.1,在查询时加入以下条件SolrQuery query = new SolrQuery();query.setQuery("*:*");query.addFilterQuery("content:搜索内容");query.setHighlight(true); //开启高亮组件query.addHighlightField("cont...

2012-09-05 11:01:37 512

原创 享受生命旅途的乐趣

    If you have ever been discouraged because of failure, please read on.    如果你曾因失败沮丧过,请继续读下去。    For often, achieving what you set out to do is not the important thing. Let me explain.    完...

2011-11-29 12:16:34 148

原创 JVM学习笔记-本地方法调用(Invoking a Native Method)

Invoking a Native MethodAs mentioned in Chapter 5, "The Java Virtual Machine," the virtual machine invokes native methods in an implementation dependent manner. When invoking a native me...

2011-11-25 11:56:37 222

原创 JVM学习笔记-调用Java方法(Invoking a Java Method)

Invoking a Java Method As mentioned in Chapter 5, "The Java Virtual Machine," the virtual machine creates a new stack frame for each Java (not native) method it invokes. The stack frame contai...

2011-11-25 11:35:28 359

原创 JVM学习笔记-分代收集器(Generational Collectors)

 Generational CollectorsOne disadvantage of simple stop and copy collectors is that all live objects must be copied at every collection. This facet of copying algorithms can be improved up...

2011-11-23 14:41:53 171

原创 JVM学习笔记-拷贝收集器(Copying Collectors)

 Copying CollectorsCopying garbage collectors move all live objects to a new area. As the objects are moved to the new area, they are placed side by side, thus eliminating any free space t...

2011-11-22 16:34:56 247

原创 JVM学习笔记-压缩收集器(Compacting Collectors)

Compacting CollectorsGarbage collectors of Java Virtual Machines will likely have a strategy to combat heap fragmentation. Two strategies commonly used by mark and sweep collectors are co...

2011-11-22 16:17:17 159

原创 JVM学习笔记-跟踪收集器(Tracing Collectors)

 Tracing CollectorsTracing garbage collectors trace out the graph of object references starting with the root nodes. Objects that are encountered during the trace are marked in some way. M...

2011-11-22 16:04:34 294

原创 JVM学习笔记-引用计数收集器(Reference Counting Collectors)

 Reference Counting Collectors Reference counting was an early garbage collection strategy. In this approach, a reference count is maintained for each object on the heap. When an object is...

2011-11-22 15:46:51 201

applet notinited的解决方案

最近项目当中正好使用到了applet,这个很少接触过的东东。大体是在页面当中使用一个applet生成一个文本文件。 奇怪的是页面一直报错。 java.lang.ClassNotFoundException: framework.applet.FileUtil.class at sun.applet.AppletClassLoader.findClass(Unknown So...

2011-11-13 14:45:12 365

原创 JVM学习笔记-动态连接和解析(Dynamic Linking and Resolution)

 When you compile a Java program, you get a separate class file for each class or interface in your program. Although the individual class files may appear to be independent, they actually harbo...

2011-11-08 11:09:07 791

原创 JVM学习笔记-属性格式(Attributes Types)

 AttributesThe Java Virtual Machine specification defines eight types of attributes, shown in Table 6-25. All Java Virtual Machine implementations must recognize three of these attributes:...

2011-11-07 12:15:44 197

原创 JVM学习笔记-属性(Attributes)

 AttributesAs mentioned above, attributes appear in several places inside a Java class file. They can appear in the ClassFile, field_info, method_info, and Code_attribute tables. The Code_at...

2011-11-07 12:03:33 304

原创 JVM学习笔记-方法(Methods)

 MethodsEach method declared in a class or interface or generated by the compiler is described in the class file by a method_info table. The two types of compiler-generated methods that ma...

2011-11-07 11:25:30 177

原创 JVM学习笔记-字段(Fields)

 Each field (class variable and instance variable) declared in a class or interface is described by a field_info table in the class file. The format of the field_info table is shown in Table 6...

2011-11-07 11:17:08 220

原创 JVM学习笔记-Class文件(Class File)

  What is a Java Class File?The Java class file is a precisely defined binary file format for Java programs. Each Java class file represents a complete description of one Java class or i...

2011-11-05 14:39:47 244

原创 JVM学习笔记-特殊字符串(Special Strings)

 Special Strings 特殊字符串The symbolic references contained in the constant pool involve three special kinds of strings: fully qualified names, simple names, and descriptors. All symbolic refe...

2011-11-05 14:33:00 240

原创 JVM学习笔记-本地方法栈(Native Method Stacks)

 本地方法栈(Native Method Stacks)与虚拟机栈所发挥的作用是非常相似的,其区别不过是虚拟机栈为虚拟机执行Java方法(也就是字节码)服务,而本地方法栈则是为虚拟机使用到的Native方法服务。虚拟机规范中对本地方法栈中的方法使用的语言、使用方式与数据结构并没有强制规定,因此具体的虚拟机可以自由实现它。甚至有的虚拟机(譬如Sun HotSpot虚拟机)直接就把本地方法栈和虚拟...

2011-11-02 10:16:49 504

原创 JVM学习笔记-帧数据区(Frame Data)

 In addition to the local variables and operand stack, the Java stack frame includes data to support constant pool resolution, normal method return, and exception dispatch. This data is stored i...

2011-10-28 09:16:39 434

原创 JVM学习笔记-操作数栈(Operand Stack)

 Like the local variables, the operand stack is organized as an array of words. But unlike the local variables, which are accessed via array indices, the operand stack is accessed by pushing and...

2011-10-27 11:12:50 512

原创 JVM学习笔记-局部变量区(Local Variables)

  The local variables section of the Java stack frame is organized as a zero-based array of words. Instructions that use a value from the local variables section provide an index into the zero...

2011-10-27 10:42:21 440

原创 JVM学习笔记-栈帧(The Stack Frame)

The stack frame has three parts: local variables, operand stack, and frame data. The sizes of the local variables and operand stack, which are measured in words, depend upon the needs of each i...

2011-10-27 10:35:23 171

原创 JVM学习笔记-栈(Stack)

       与程序计数器一样,Java虚拟机栈(Java Virtual Machine Stacks)也是线程私有的,它的生命周期与线程相同。虚拟机栈描述的是Java方法执行的内存模型:每个方法被执行的时候都会同时创建一个栈帧(Stack Frame①)用于存储局部变量表、操作栈、动态链接、方法出口等信息。每一个方法被调用直至执行完成的过程,就对应着一个栈帧在虚拟机栈中从入栈到出栈的过程。...

2011-10-27 10:28:08 210

原创 JVM学习笔记-程序计数器(The Program Counter)

       程序计数器(Program Counter Register)是一块较小的内存空间,它的作用可以看做是当前线程所执行的字节码的行号指示器。在虚拟机的概念模型里(仅是概念模型,各种虚拟机可能会通过一些更高效的方式去实现),字节码解释器工作时就是通过改变这个计数器的值来选取下一条需要执行的字节码指令,分支、循环、跳转、异常处理、线程恢复等基础功能都需要依赖这个计数器来完成。  ...

2011-10-27 10:18:24 382

原创 JVM学习笔记-堆(Heap)

      对于大多数应用来说,Java堆(Java Heap)是Java虚拟机所管理的内存中最大的一块。Java堆是被所有线程共享的一块内存区域,在虚拟机启动时创建。此内存区域的唯一目的就是存放对象实例,几乎所有的对象实例都在这里分配内存。这一点在Java虚拟机规范中的描述是:所有的对象实例以及数组都要在堆上分配①,但是随着JIT编译器的发展与逃逸分析技术的逐渐成熟,栈上分配、标量替换②优化...

2011-10-26 16:48:06 347

原创 JVM学习笔记-方法区示例与常量池解析(Method Area Use And Constant Pool Resolution)

 As an example of how the Java Virtual Machine uses the information it stores in the method area, consider these classes:为了展示虚拟机如何使用方法区中的信息,我们举个例子,看下面这个类:begin// On CD-ROM in file jvm/ex2/La...

2011-10-26 16:47:52 158

原创 JVM学习笔记-指向Class类的引用(A Reference to Class Class)

 An instance of class java.lang.Class is created by the Java Virtual Machine for every type it loads. The virtual machine must in some way associate a reference to the Class instance for a type ...

2011-10-26 16:47:21 292

原创 JVM学习笔记-指向ClassLoader类的引用(A Reference to Class ClassLoader)

 For each type it loads, a Java Virtual Machine must keep track of whether or not the type was loaded via the primordial class loader or a class loader object. For those types loaded via a class...

2011-10-26 16:47:05 158

原创 JVM学习笔记-类(静态)变量(Class Variables)

 Class variables are shared among all instances of a class and can be accessed even in the absence of any instance. These variables are associated with the class--not with instances of the class...

2011-10-26 16:46:53 195

原创 JVM学习笔记-方法信息(Method Information)

 For each method declared in the type, the following information must be stored in the method area. As with fields, the order in which the methods are declared by the class or interface must be ...

2011-10-25 09:51:17 165

原创 JVM学习笔记-字段信息(Field Information)

 For each field declared in the type, the following information must be stored in the method area. In addition to the information for each field, the order in which the fields are declared by th...

2011-10-25 09:51:02 205

原创 JVM学习笔记-常量池(Constant Pool)

     For each type it loads, a Java Virtual Machine must store a constant pool. A constant pool is an ordered set of constants used by the type, including literals (string, integer, and floating...

2011-10-25 09:50:54 1693

原创 JVM学习笔记-类型信息(Type Information)

 For each type it loads, a Java Virtual Machine must store the following kinds of information in the method area: 对每个装载的类型,虚拟机都会在方法区中存储以下类型信息:The fully qualified name of the type这个类型的全限定名...

2011-10-25 09:50:14 256

原创 JVM学习笔记-方法区(Method Area)

方法区(Method Area)与Java堆一样,是各个线程共享的内存区域,它用于存储已被虚拟机加载的类信息、常量、静态变量、即时编译器编译后的代码等数据。虽然Java虚拟机规范把方法区描述为堆的一个逻辑部分,但是它却有一个别名叫做Non-Heap(非堆),目的应该是与Java堆区分开来。 对于习惯在HotSpot虚拟机上开发和部署程序的开发者来说,很多人愿意把方法区称为“永久...

2011-10-25 09:21:59 293

Atomicity(原子性)

Operations A and B are atomic with respect to each other if, from the perspective of a thread executing A, when another thread executes B, either all of B has executed or none of it has. An atomic ope...

2011-10-17 10:44:48 404

Five Things You Should Know About HTML5(HTML5,你需要知道的5件事)

[align=center][b]Five Things You Should Know About HTML5[/b][/align][color=green][b]1. It’s not one big thing(它不是单独的大家伙)[/b][/color][color=blue][b] You may well ask: “How can I start using HTML...

2011-08-11 18:25:02 122

Eclipse快速定位文件夹插件(OpenExplorer)

直接放在plugins目录,重启eclipse即可。(已测试,可用)

2014-08-12

lucene与solr官方推荐书籍收集

涵盖了所有官方推荐的书籍,所有书籍都基于Lucene 3以上 包括: Lucene in Action第2版 Apache Solr 3.1 Cook Book Apache Solr 3 Enterprise Search Server

2012-08-21

hibernate3官方参考文档(中文)

hibernate3官方参考文档,中文,基于3.6版本

2012-01-06

Java7虚拟机官方说明

Java7 JVM Specification(Java7虚拟机官方说明)

2011-10-19

jadclipse(已附jad)

jad1.5.8g+jadclipse3.3.0 已测试,在eclipse3.7Indigo环境下可以使用

2011-08-27

深入浅出Ext_JS(第2版附code).part4

《深入浅出Ext JS(第2版)》是《深入浅出Ext JS》的升级版,涵盖了最新发布的Ext JS 3.2新特性,并对上一版的内容进行增补,充实了示例代码,同时补充了两个功能强大的实例。特别是新增了如何优化基于EXT的应用,提升加载速度,如何创建用户扩展组件以及常用的第三方扩展件等内容。大家可以看到如何在EXT中使用漂亮的图表,尽情欣赏EXT在性能方面实现的巨大突破,以及各种各样的绚丽组件。 《深入浅出Ext JS(第2版)》注重理论与实践相结合,适合各层次Web开发人员阅读。 以用户为中心的时代,应用的界面外观变得越来越重要。然而,很多程序员都缺乏美术功底,要开发出界面美观的应用实属不易。ExtJS的出现,为广大程序员解决了这一难题。它有丰富多彩的界面和强大的功能,是开发具有炫丽外观的RIA应用的最佳选择。

2011-07-31

深入浅出Ext_JS(第2版附code).part3

《深入浅出Ext JS(第2版)》是《深入浅出Ext JS》的升级版,涵盖了最新发布的Ext JS 3.2新特性,并对上一版的内容进行增补,充实了示例代码,同时补充了两个功能强大的实例。特别是新增了如何优化基于EXT的应用,提升加载速度,如何创建用户扩展组件以及常用的第三方扩展件等内容。大家可以看到如何在EXT中使用漂亮的图表,尽情欣赏EXT在性能方面实现的巨大突破,以及各种各样的绚丽组件。 《深入浅出Ext JS(第2版)》注重理论与实践相结合,适合各层次Web开发人员阅读。 以用户为中心的时代,应用的界面外观变得越来越重要。然而,很多程序员都缺乏美术功底,要开发出界面美观的应用实属不易。ExtJS的出现,为广大程序员解决了这一难题。它有丰富多彩的界面和强大的功能,是开发具有炫丽外观的RIA应用的最佳选择。

2011-07-31

深入浅出Ext_JS(第2版附code).part2

《深入浅出Ext JS(第2版)》是《深入浅出Ext JS》的升级版,涵盖了最新发布的Ext JS 3.2新特性,并对上一版的内容进行增补,充实了示例代码,同时补充了两个功能强大的实例。特别是新增了如何优化基于EXT的应用,提升加载速度,如何创建用户扩展组件以及常用的第三方扩展件等内容。大家可以看到如何在EXT中使用漂亮的图表,尽情欣赏EXT在性能方面实现的巨大突破,以及各种各样的绚丽组件。 《深入浅出Ext JS(第2版)》注重理论与实践相结合,适合各层次Web开发人员阅读。 以用户为中心的时代,应用的界面外观变得越来越重要。然而,很多程序员都缺乏美术功底,要开发出界面美观的应用实属不易。ExtJS的出现,为广大程序员解决了这一难题。它有丰富多彩的界面和强大的功能,是开发具有炫丽外观的RIA应用的最佳选择。

2011-07-31

深入浅出Ext_JS(第2版附code).part1

《深入浅出Ext JS(第2版)》是《深入浅出Ext JS》的升级版,涵盖了最新发布的Ext JS 3.2新特性,并对上一版的内容进行增补,充实了示例代码,同时补充了两个功能强大的实例。特别是新增了如何优化基于EXT的应用,提升加载速度,如何创建用户扩展组件以及常用的第三方扩展件等内容。大家可以看到如何在EXT中使用漂亮的图表,尽情欣赏EXT在性能方面实现的巨大突破,以及各种各样的绚丽组件。 《深入浅出Ext JS(第2版)》注重理论与实践相结合,适合各层次Web开发人员阅读。 以用户为中心的时代,应用的界面外观变得越来越重要。然而,很多程序员都缺乏美术功底,要开发出界面美观的应用实属不易。ExtJS的出现,为广大程序员解决了这一难题。它有丰富多彩的界面和强大的功能,是开发具有炫丽外观的RIA应用的最佳选择。

2011-07-31

javascript基础

国内一位热爱JS技术的热心人士自写的一本书,虽然没有出版,但对想学习Javascript的新人,相信一定会受益匪浅。

2011-06-19

整理的富士通笔试题两份-2

之前上传有问题,不能同时上传两份,这里补上第二份。

2011-02-13

整理的富士通笔试题两份

整理的富士通笔试题两份,有答案和分析。需要的可以参考。

2011-02-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除