iPhone开发中常常需要将对象持久化处理,或者将数据文件反序列化,便于存储用户的配置、习惯、以及保存加载的数据等。一般对象序列化的方式有四种:plist,NSUserDefaults,sqlite以及Core Data。plist和sqlite数据库是最常用的方法。对于plist:新建plist文...
分类:
数据库 时间:
2014-07-11 22:26:31
阅读次数:
350
项目结构文件源码QR.zip第一步:导入zxing的两个架包 core.jar和javase.jar第二步:使用工具类MatrixToImageWriter.java 1 package util; 2 import com.google.zxing.common.BitMatrix; 3 impo...
分类:
编程语言 时间:
2014-07-11 21:23:42
阅读次数:
268
相关代码展示:- (IBAction)toggleRoundCorners:(id)sender { [CATransaction setDisableActions:![_enableAnimations isOn]]; [CATransaction setAnimationDuration...
分类:
其他好文 时间:
2014-07-11 21:09:18
阅读次数:
233
Spring需要applicationContext.xml来管理各个Bean,其基本格式:当中可以插入各个Bean。加入注解后会以扫描器替代 最新版的Spring至少需要spring-core-4.0.5.RELEASE.jar,spring-beans-4.0.5.RELE...
分类:
编程语言 时间:
2014-07-11 19:16:40
阅读次数:
191
Graphics 绘图类: 提供两个方法。Paint (绘图,被系统自动调用) repaint(重绘)Paint 调用原理(1.窗口最大化,再最小化窗口的大小发生变化Repaint函数被调用)package com.sunzhiyan;import java.awt.*;import javax.s...
分类:
编程语言 时间:
2014-07-11 18:49:34
阅读次数:
186
1. [代码][JavaScript]代码 /*!* jLim Core** jLim is a small JavaScript base code. It can be used to built your own* JavaScript library or framework.** @ve....
分类:
编程语言 时间:
2014-07-09 18:52:21
阅读次数:
264
try { psv.SetPlotConfigurationName(ps, cOre, null); } catch (SystemException ex) { ed.WriteMessage("\n错误行开始:"); ed.WriteMessage("\n错误状态:" + ex.InnerEx...
分类:
其他好文 时间:
2014-07-09 13:59:42
阅读次数:
128
参考文章:spice wiki1: gtk+-3.0安装2: 安装依赖 a:1 sudo apt-get install build-essential autoconf git-core b:1 sudo apt-get install libtool liblog4cpp5-dev libavc...
分类:
其他好文 时间:
2014-07-09 13:19:08
阅读次数:
432
不同的操作系统对应不同的事件驱动机制,在Linux 2.6之后使用epoll机制,对应的事件驱动模块是ngx_epoll_module。Nginx的ngx_event_core_module模块根据操作系统确定使用哪一个事件驱动模块。事件驱动模块在ngx_module_t的ctx通用接口是ngx_event_module_t,定义如下所示:
typedef struct {
ngx_st...
分类:
其他好文 时间:
2014-07-09 12:01:13
阅读次数:
230
public class ResonpeRandomImgDemo extends HttpServlet { int width=100; int height=30;public void doGet(HttpServletRequest request, HttpServletResponse...
分类:
其他好文 时间:
2014-07-08 22:34:56
阅读次数:
262