- 博客(86)
- 资源 (32)
- 收藏
- 关注
原创 GVA快速使用
1. clone 代码, 使用goland打开Server目录, 使用vsc打开前端web目录,运行后端,前端。4.熟悉如何添加一个接口以处理业务,参考,3.熟悉后端代码运行逻辑, 参考,2.了解端口配置 参考,
2024-02-29 15:56:49
600
转载 Android中xml文件解析 SAX方式 与 PULL方式
下文写得很清楚了,就直接转了。Android中使用SAX方式解析XML文件http://blog.youkuaiyun.com/cjjky/article/details/6666834Android中使用PULL方式解析XML文件http://blog.youkuaiyun.com/cjjky/article/details/6667744
2012-07-09 11:17:09
747
转载 如何编写Java WebService
http://blog.youkuaiyun.com/xw13106209/article/details/7049614
2012-07-04 00:06:14
735
原创 面试必看
原文摘录:2012/2/2 15:13:23 有一个原则 2012/2/2 15:13:29 如果我投简历给你 2012/2/2 15:13:36 就代表我接受挑选 2012/2/2 15:13:44 那么你怎么样,我都遵守 2012/2/2 15:13:49 如果是你打电话给我 2012/2/2 15:13:57 那是
2012-07-02 23:53:47
1027
原创 Android 如何清空 Canvas ?(找了好久的答案)
Android 如何清空 Canvas ?似乎一直未找到好的解决办法,有的方法限制使用纯色背景,但无论怎么尝试,都未见效果,终于在 http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor 上面找到了答案:经过尝试,结果如下: 之前的不理想图片
2012-05-22 20:55:03
47361
5
转载 android click 和onTouch 事件处理机制
针对屏幕上的一个View控件,Android如何区分应当触发onTouchEvent,还是onClick,亦或是onLongClick事件?在Android中,一次用户操作可以被不同的View按次序分别处理,并将完全响应了用户一次UI操作称之为消费了该事件(consume),那么Android是按什么次序将事件传递的呢?又在什么情况下判定为消费了该事件? 搞清楚这
2012-05-22 13:49:18
1134
原创 设计模式之23桥梁模式(笔记)
1 定义:1.1 定义:Decouple an abstraction from its implementation so that two can vary independently.(将抽象和实现解耦,使得两者独立地变化。)1.2 通用类图:1.3 通用代码:public interface Implementor { // 基本方法 public void d
2012-05-20 15:31:37
1193
原创 设计模式之22享元模式(笔记)
1 定义:1.1 定义:Use sharing to support large numbers of fine-grained objects efficiently.(使用共享对象可以有效地支持大量的细粒度的对象。)细粒度对象:不可避免地使得对象数量多且性质相近,可将这些对象的信息分为两个部分:内部状态(intrinsic)与外部状态(extrinsic)。内部状态:对象可共享
2012-05-20 15:26:33
1366
原创 设计模式之21解释器模式(笔记)
1 定义:1.1 定义:Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.(给定一门语言,定义它的方法的一种表示,并定义一个解释器,该解释器使
2012-05-20 15:22:44
987
原创 设计模式之20状态模式(笔记)
1 定义:1.1 定义:Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.(当一个对象内在状态改变时允许其改变行为,这个对象看起来像改变了其类)。1.2 通用类图:一个更易理解的类图:角色解说:
2012-05-20 15:18:44
978
原创 设计模式之19访问者模式(笔记)
1 定义:1.1 定义:Represent an operation to be performed on the elements of an object structure. Vistor lets you define a new operation without changing the classes of the elements on which it operates.
2012-05-20 15:16:04
1887
原创 设计模式之18备忘录模式(笔记)
1 定义:1.1 定义:Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later. (在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。这样以后就可将
2012-05-20 15:10:11
970
原创 设计模式之17门面模式(笔记)
1 定义:1.1 定义:(Façade Pattern)Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use.(要求一个子系统的外部与其内部的通信必须通过
2012-05-20 14:59:44
1579
原创 设计模式之16观察者模式(笔记)
1 定义:Observer Pattern,也叫做发布订阅模式(Publish / subscribe)1.1 定义:Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automati
2012-05-20 14:51:23
1048
原创 设计模式之15组合模式(笔记)
1 定义:1.1 定义:Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.(将对象组合成树形结构以表示“部分-整体”的层次结构
2012-05-20 14:45:11
741
原创 设计模式之14迭代器模式(笔记)
1 定义:1.1 定义:Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.(它提供一种方法访问一个容器对象中各个元素,而又不暴露该对象的内部细节。)此模式是一个没落的模式,基本上没人会单独写一个迭代器模
2012-05-20 14:37:16
736
转载 Android设计模式系列
Android设计模式系列http://www.cnblogs.com/qianxudetianxia/tag/Android%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%E7%B3%BB%E5%88%97/
2012-05-19 11:12:34
728
原创 设计模式之13适配器模式(笔记)
1 定义:1.1 定义:Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces. (将一个类的接口变换成客户端所期待的另
2012-05-16 23:35:09
696
原创 设计模式之12策略模式(笔记)
1 定义:1.1 定义:Define a family of algorithms, encapsulate each one, and make them interchangeable.(定义一组算法,将每个算法都封装起来,并且使它们之间可以互换)。1.2 通用类图:角色解说:Context封装角色:也叫上下文角色,屏蔽高层模块对策略、算法的直接访问,封装可能的变化
2012-05-16 23:31:58
1183
原创 设计模式之11装饰模式(笔记)
1 定义:1.1 定义:(Decorator Pattern)Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functi
2012-05-16 23:25:35
721
原创 设计模式之10责任链模式(笔记)
1 定义:1.1 定义:Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain u
2012-05-16 23:21:49
799
原创 设计模式之09命令模式(笔记)
1 定义:1.1 定义:Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.(将一个请求封装成一个对象,从而让你使用不同的请求把客户端
2012-05-16 23:16:32
741
原创 设计模式之08中介者模式(笔记)
1 定义:1.1 定义:Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary thei
2012-05-16 23:11:21
777
原创 设计模式之07原型模式(笔记)
1 定义:1.1 定义:Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.(用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象)。1.2 通用类图:原型模式的核心是一个clone方
2012-05-16 23:04:42
863
原创 设计模式之06代理模式(笔记)
1 定义:1.1 定义:Provide asurrogate or placeholder for another object to control access to it.(为其他对象提供一种代理以控制对这个对象的访问)。1.2 通用类图:1.3 通用代码:代理模式也叫做委托模式,它是一项基本设计技巧。许多其它的模式,如状态模式、策略模式、访问者模式本质上是在
2012-05-16 22:54:55
1271
1
原创 设计模式之05构建者模式(笔记)
1 定义:1.1 定义:Separate theconstruction of a complex object from its representation so that the sameconstruction process can create different representations.(将一个复杂对象的构建与它的表示分离,使用同样的构建过程可以创建不同的表示。)1.
2012-05-15 10:45:32
1004
1
原创 设计模式之04模板方法模式(笔记)
1 定义:1.1 定义:Define the skeleton of an algorithm in anoperation, deferring some steps to subclasses. Template Method lets subclassesredefine certain steps of an algorithm without changing the algor
2012-05-14 20:54:31
773
原创 设计模式之03抽象工厂模式(笔记)
1 定义:1.1 定义:抽象工厂模式(AbstractFactory Pattern)Provide an interface ofr creating families of related or dependentobjects without specifying their concrete class.(为创建一组相关或相互依赖的对象提供一个接口,而且无需指定它们的具体类。) 1
2012-05-14 19:30:09
1112
原创 设计模式之02工厂方法模式(笔记)
1 定义:1.1 定义:Define aninterface for creating an object, but let subclasses decide which class toinstantiate. Factory Method lets a class defer instantiation to subclasses.(定义一个用创建对象的接口,让子类决定实例化哪一个类。工
2012-05-14 16:17:29
1041
原创 设计模式之01单例模式(笔记)
1 定义:1.1文字定义:Ensure a classhas only one instance, and provide a global point of access to it.(确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。)1.2通用类图:图1 单例模式通用类图1.3通用代码:public class Singleton {
2012-05-14 11:48:06
1816
2
原创 六大原则之“开闭原则(OCP)“笔记
1.开闭原则:Open Closed Principle, OCP)定义:Software entities like classes, modules and functions should be open for extension but closed for modifications.(一个软件实体如类,模块和函数应该对扩展开放,对修改关闭。)2.理
2012-05-14 10:19:19
4565
3
原创 SystemProperties_SOP
属性系统是android的一个重要特性。它作为一个服务运行,管理系统配置和状态。所有这些配置和状态都是属性。每个属性是一个键值对(key/value pair),其类型都是字符串。首先:在android中设置这一属性,目的是定义一些属性供其它应用或库读取使用。如何读取/设置属性 Android上有三种主要途径来get/set属性。1、 native
2012-05-12 16:23:35
878
转载 使用Flex Bison 和LLVM编写自己的编译器
转自:http://coolshell.cn/articles/1547.html使用Flex Bison 和 LLVM编写你自己的编译器原文出处:http://gnuu.org/2009/09/18/writing-your-own-toy-compiler1、介绍我总是对编译器和语言非常感兴趣,但是兴趣并不会让你走的更远。大量的编译器的设计概念可以搞的任
2012-05-10 14:17:37
921
转载 23个经典JDK设计模式
转自:http://coolshell.cn/articles/3320.html下面是JDK中有关23个经典设计模式的示例,在stakeoverflow也有相应的讨论:http://stackoverflow.com/questions/1673841/examples-of-gof-design-patternsStructural(结构模式)Adapter:
2012-05-10 10:10:00
889
转载 开发工具-Eclipse(25个最佳闪亮的Eclipse开源工具)
6月23号Eclipse基金会发布了最新的Eclipse太阳神版本,囊括了39个项目,下面我们就来看看哪些项目是最受Eclipse开源社区喜欢的。Eclipse最初是一个Java IDE,但后来变得越来越强大,早已超出了IDE的范畴,截至目前,Eclipse可支持静态和动态编程语言,胖客户端、瘦客户端和服务器端框架,建模和业务报表,嵌入式和移动开发,Eclipse包含的项目和子项目已经超过125个
2012-05-10 09:41:12
9413
原创 Java_call_C(从本地端抛出异常)
本文将实现从C/C++代码中抛出异常,并在JAVA端处理。三个异常:值类型错误异常,键值不存在异常,存储满异常。1.在java端新建异常包,并编写异常类:com.packtpub.exception,中添加如下三个相应的异常类文件package com.packtpub.exception;public class InvalidTypeException extend
2012-05-09 15:58:59
2708
原创 Java_call_C(双向传递JAVA对象)
在上一篇,我们知道在JNI中一个jstring就代表一个String,并且事实上是一个java对象,也就是说经由JNI来传递java对象是完全可能的。但因为本地代码不能直接存取Java,所有Java对象都有一个共同的代表(表示方式):一个 jobject。在本节中,我们将传递一个自定义的颜色对象(当然其它对象也同理可以)。主要在于如何保存一个对象在本地端,以及如何将其传回java端。本文将在上
2012-05-09 14:55:29
2735
原创 Java_call_C(双向传递基本类型)
摘自:NBG(ndk.beginners.guide)第3章本节将通过一个小实例,实现java与C,通过JNI来相互传递基本类型(int , String)。例子界面如下:在界面输入“键”,‘‘值’’,再选择“类型”,“设置键值”即可将java端数据存入本地数组中。通过输入“键”,选择“类型”,再“获取值”,即可从java端将本地数据取回。原书所述程序结构图如下:
2012-05-09 13:36:25
2440
1
原创 使用JNI,在java端调用c/c++
摘自:Android.NDK.Beginners.Guide. 第3章:Interfacing Java and c/c++ with JNIAndroid离不开Java。虽然它的内核与关键库都是本地的,但应用程序框架差不多完全采用java或者说是仅封装在一个java层中。显然,有些库是可以直接从本地代码中访问,比如Open GL(第6章会讲述)。然面,大多数API只能从java端调用。不要期
2012-05-09 09:56:38
1298
《Visual C++开发典型模块大全》一书的源代码.part11
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part19
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part18
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part17
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part15
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part14
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part12
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part11
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part10
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part09
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part08
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part07
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part06
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part05
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part04
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part03
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part02
2009-06-25
《Visual C++开发典型模块大全》一书的源代码.part01
2009-06-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人