haiker
haiker · 共 148 篇文章
android常用类
android.content.Context android.Manifest android.app.Activity android.app.Service android.net.wifi.WifiManager android.content.BroadcastReceiver android.content.Intent android.content.IntentFilter android.content.BroadcastReceiver java.net.URLConnection android.os.Handler android.view.LayoutInflate…
2011-05-23 09:31 · Android · 评论(0)
rabbitmqctl命令详解
This is the manual page for rabbitmqctl(1). See a list of all manual pages . For more general documentation, please see the administrator's guide . Table of Contents Name Synopsis Description Options Commands Application and Cluster Management Cluster management Closing individual connections User …
2011-05-20 15:10 · Shell · 评论(0)
Android开发者应该深入学习的10个开源应用项目
Android开发带来新一轮热潮让很多移动开发者都投入到这个浪潮中去了,创造了许许多多相当优秀的应用。其中也有许许多多的开发者提供了应用开源项目,贡献出他们的智慧和创造力。学习开源代码是掌握技术的一个最佳方式。下面推荐几个应用开源项目,这些项目不仅提供了优秀的创意,也可以直接掌握 Android内核的接口使用: 1.Android团队提供的示例项目 如果不是从学习Android SDK中提供的那些样例代码开始,可能没有更好的方法来掌握在Android这个框架上开发。由Android的核心开发团队提供了15个优秀的示例项目,包含了游戏、图像处理、时间显示、开始菜单快捷方式等。 地址: http…
2011-05-20 14:20 · Android · 评论(0)
八款开源Android游戏引擎
很多初学Android游戏开发的朋友,往往会显得有些无所适从,他们常常不知道该从何处入手,每当遇到自己无法解决的难题时,又往往会一边羡慕于 iPhone下有诸如Cocos2d-iphone之类的免费游戏引擎可供使用,一边自暴自弃的抱怨Android平台游戏开发难度太高,又连个像样的游 戏引擎也没有,甚至误以为使用Java语言开发游戏是一件费力不讨好且没有出路的事情。 事实上,这种想法完全是没有必要且不符合实际的,作为能和苹果iOS分庭抗礼的Android(各种意义上),当然也会有相当数量的游戏引擎存在。仅仅因为我们处于这个狭小的天地间,与外界接触不够,所以对它们的存在茫然不知罢了。 下面我就…
2011-05-20 14:20 · Android · 评论(0)
常用的comet框架
Atmosphere pushlet DWR cometd 另外 Servlet 3.0 也增加了对comet的支持 还有html5的WebSocket也是一大亮点,不过这个技术还不成熟,不能大众化
2011-05-20 11:46 · Java · 评论(0)
ios NSString
NSString* firstName = @"Albert"; NSString* lastName = @"Elinstein"; NSString* fullName = [firstName stringByAppendingString:lastName]; NSString* sentence = @"Welcome"; sentence = [sentence stringByAppendingString:@"to the "]; NSString* dayOfWeek = nil; NSString* first = @"Monday"; dayOfWeek1 = [[NS…
2011-05-13 16:26 · Android · 评论(0)
Stop Handling Exceptions: Your Code Will Run Faster
Recently there was a bigger discussion at dynaTrace around the cost of exceptions. When working with customers we very often find a lot of exceptions they are not aware of. After removing these exceptions, the code runs significantly faster than before. This creates the assumption that using except…
2011-04-21 11:41 · Java · 评论(0)
WIN7 下 STS只能查看一个类中当前选择的方法问题
现在在使用sts2.6版,发现在win7下,有时候只能查看当前编辑类的部分方法,使用起来非常不方便,经过半天琢磨,发现时个设置问题, 在window->prefences->java->editor中的Only show the selected java element取消掉即可。 现在使用起来方便多了。
2011-04-16 18:26 · Java · 评论(0)
MySQL server has gone away 问题的解决方法
1、应用程序(比如PHP)长时间的执行批量的MYSQL语句。 最常见的就是采集或者新旧数据转化。 解决方案: 在my.ini 文件中添加或者修改以下两个变量: wait_timeout= 2880000 interactive_timeout = 2880000 关于两个变量的具体说明可以google或者看官方手册。 如果不能修改my.cnf,则可以在连接数据库的时候设置CLIENT_INTERACTIVE,比如: sql = "set interactive_timeout=24*3600"; mysql_real_query(...) 2、执行一个SQL,但SQL语句过大或者语句中含有B…
2011-04-11 11:27 · MySQL · 评论(0)
java模板引擎
主页地址 http://code.google.com/p/trimpath/wiki/JavaScriptTemplateSyntax 代码下载 使用: Updated Feb 04, 2010 by steve....@gmail.com JavaScriptTemplateAPI JavaScript Templates API { JavaScript Templates (JST) home | API | syntax | modifiers | download | community } Using JavaScript Templates First, in your HT…
2011-03-07 13:52 · Javascript · 评论(0)
java中对中文的判断
答案使用正则式 Pattern ptn = Pattern.compile("[\u4e00-\u9fa5]"); if("中".matches("[\u4e00-\u9fa5]")) { System.out.println("中文"); }
2011-03-06 19:47 · Java · 评论(0)