ITeye博客

光荣在于平淡,卓越在于专注

反求诸己 · 共 252 篇文章

eclipse maven plugin 插件 安装 和 配置

环境准备: eclipse(Helios) 3.6 maven 3.0.4 maven3 安装: 安装 Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。 首先去官网下载 Maven: http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz 下载完成之后将其解压,我将解压后的文件夹重命名成 maven,并将它放在 D:\Server 目录下,即 maven 最终的路径是:D:\Server\m…

2013-12-30 12:17 · Eclipse · IDE · maven · ecl · 评论(0)

Fixing the Eclipse PermGen Space

Fixing the Eclipse PermGen Space (Out of Memory) Error When Using JDK 1.6.0_21 Eclipse has a very serious bug where it does not properly pass the memory limits from eclipse.ini to Java. As a result, Eclipse quickly runs out of memory and crashes with little warning and few obvious error messages. T…

2013-07-27 22:47 · Eclipse optimization · 评论(0)

Servlet and JSP History

Source from : http://www.pearsonitcertification.com/articles/article.aspx?p=29786&seqNum=3 The Internet's original purpose was to access and copy files from one computer to another far away (they already had short distance networks by then, but they were expensive, proprietary, and not ready for ma…

2013-07-27 09:38 · Java Servlet · 评论(0)

Servlet Versions

Servlet Versions A Servlet is the part of the Java Servlet API . This API has protocol according to which a Java class may respond to HTTP requests. The first servlet API with complete specification was released by Sun Microsystems in June 1997. This was named as Servlet 1.0. Java community process…

2013-07-27 08:41 · Java Servlet · 评论(0)

初步认识XMLHttpRequest

首先,我们先来看看XMLHttpRequest这个对象的属性。 它的属性有: onreadystatechange 每次状态改变所触发事件的事件处理程序。 responseText 从服务器进程返回数据的字符串形式。 respon***ML 从服务器进程返回的DOM兼容的文档数据对象。 status 从服务器返回的数字代码,比如常见的404(未找到)和200(已就绪) status Text 伴随状态码的字符串信息 readyState 对象状态值 0 (未初始化) 对象已建立,但是尚未初始化(尚未调用open方法) 1 (初始化) 对象已建立,尚未调用send方法 2 (发送数据) sen…

2013-03-18 22:11 · javascript 专题 · 评论(0)

Installing Tomcat on Mac OS X

To get Tomcat, visit the following link: http://tomcat.apache.org/ . Once there, click on the Tomcat 5.5 link under the Download heading. Under Core, select the tar.gz file. Download the tar.gz file. Mac OS X will probably extract the file to a .tar file in your downloads directory. Move this .tar …

2013-02-28 16:15 · 开发环境配置 · web 开发 · IDE · 评论(0)

IOS 开发资料参考

1:本地和推送通知编程指南 原文: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008194-CH1-SW1 译文:附件1-本地和推送通知编程指南.pdf 2:核心动画编程指南 原文:Core Animation Programming Guide 链接: http://developer.apple.com/libr…

2012-12-31 11:40 · iphone-软件开发- 资料参考篇 · 评论(0)

转载:移动互联网服务客户端开发技巧 ( Webview及正则)

转载自:http://www.cnblogs.com/pengyingh/articles/2341067.html 随着微博、LBS 等移动互联网服务的火爆普及,越来越多的苹果开发者希望制作各网络服务的 iPhone 客户端。CocoaChina 会员 “qdvictory” 的《基于网络的客户端开发技巧》系列文章详细介绍了 iPhone 客户端应用的开发思路和注意事项,希望对苹果开发者们有所帮助。 一、做一个程序之前,要明确你要做的是什么。这之间道道不少,不仅仅要实现功能,还要考虑到程序功能之间是如何链接,用户如何交互。在这个基础上,才能和 美工一起配合,把程序的设计做好,而仅仅的 UI…

2012-12-26 14:12 · 评论(0)

UIWebView怎么禁用掉长按后的文字选择框

dataDetectorTypes的意思是自动识别某些类型的文本,像电话号码、超链接这样的。跟长按之后的文本选择没有关系吧。 第一种情况:如果UIWebView加载的是网页文档,可以在代码中加入js代码 [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSelect='none';"]; 第二种情况:如果UIWebView加载的是PDF文档,请参阅下贴 http://www.cocoachina.com/bbs/read.php?tid=102913 webvi…

2012-12-26 14:10 · Mark-Develope Issues · 评论(0)

IOS Content Modes

Content Modes: View 通过 content mode 来控制在 view 几何变化时如何 recyle view 的内容,或者 是否 recyle view 的内容。当一个 view 首次展示,view 会被抓取一个 bitmap, 之后 view 的几何变化不会总是导致 bitmap 的重建,content mode 决定 bitmap 是否 扩展到新边界或是移动到一角或一边。 在做如下操作时,会应用 content mode * 改变 frame 或 bounds 矩形的 with 或 height * 给view 的 transform 分配一个 transform …

2012-12-19 12:07 · iphone-软件开发- UI篇 · 评论(0)

类似Mac 登录不成功的shake效果

-(void) shake { // "Shakes" similar to OS X login screen CGAffineTransform moveRight = CGAffineTransformTranslate(CGAffineTransformIdentity, 20, 0); CGAffineTransform moveLeft = CGAffineTransformTranslate(CGAffineTransformIdentity, -20, 0); [UIView animateWithDuration:0.1 animations:^{ // Translate…

2012-12-19 10:37 · iphone-软件开发-特效篇 · 评论(0)

ios资源概述

http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/LoadingResources/Introduction/Introduction.html iOS中的资源种类包括:nib文件,字符串资源,图像(images),声音(Sounds),视屏(Movies),属性列表(plist). iOS支持设备特有的资源,资源被命名为如下的格式:<basename><device><filename_extension> 这里,basename指资源的原始名字,也是我们在代码中引用的名字。 filename_ex…

2012-12-18 16:07 · iphone-软件开发-OC基础 · 评论(0)

[转载]UIView的层次结构--code

转载自:http://blog.csdn.net/theonezh/article/details/8216584 // Recursively travel down the view tree, increasing the indentation level for children - (void )dumpView:(UIView *)aView atIndent:(int )indent into:(NSMutableString *)outstring { for (int i = 0 ; i < indent; i++) [outstring appendString :@"…

2012-12-18 15:23 · iphone-软件开发- UI篇 · 评论(0)

iphone开发NSString字符串常用方法

//一、 NSString //1 、创建常量字符串。 NSString *astring = @"This is a String!"; //2 、创建空字符串,给予赋值。 NSString *astring = [[NSString alloc] init]; astring = @"This is a String!"; [astring release]; NSLog(@"astring:%@",astring); // NSString *astring = [[NSString alloc] init]; NSLog(@"0x%.8x", astring); astring=@"…

2012-12-18 10:17 · iphone-软件开发-OC基础 · 评论(0)

Objective-C消息机制的原理(转)

转自:http://my.oschina.net/amoyai/blog/94561 在Objective-C中,message与方法的真正实现是在执行阶段绑定的,而非编译阶段。编译器会将消息发送转换成对objc_msgSend方法的调用。 objc_msgSend方法含两个必要参数:receiver、方法名(即:selector),如: [receiver message]; 将被转换为:objc_msgSend(receiver, selector); objc_msgSend方法也能hold住message的参数,如: objc_msgSend(receiver, selector, …

2012-12-13 17:37 · iphone-软件开发-OC基础 · 评论(0)