2010年12月24日
摘要: From:http://hi.baidu.com/cjxgotofly/blog/item/ef981434e2e112355ab5f55f.htmljava.lang.OutOfMemoryError异常解决方法原因:常见的有以下几种:1.内存中加载的数据量过于庞大,如一次从数据库取出过多数据;2.集合类中有对对象的引用,使用完后未清空,使得JVM不能回收;3.代码中存在死循环或循环产生过多重复的对象实体;4.使用的第三方软件中的BUG;5.启动参数内存值设定的过小;常见错误提示:1.tomcat:java.lang.OutOfMemoryError: PermGen space2.tomc 阅读全文
posted @ 2010-12-24 17:56 dartagnan 阅读(116991) 评论(2) 推荐(4) 编辑
摘要: 作为Ubuntu默认的桌面环境,GNOME 是一种支持多种平台的开发&桌面环境,并且 GNOME 拥有很多强大的特性,如高质量的平滑文本渲染,首个国际化和可用性支持等。好了,以下是我使用 Ubuntu 时发现的一些有用的技巧,这里分享给大家。 1、用快捷键启动程序 为您指定的程序添加一个键盘快捷键,只需按相应快捷键便能启动程序等,就像我们使用 XP 时为快捷方式添加热键一样,GNOME 也有这些功能,而且设置并不难。首先打开终端输入: gconf-editor 依次打开“Apps->Metacity->keybinding Commands”,这里一共能定义12条命令,如下 阅读全文
posted @ 2010-12-24 16:56 dartagnan 阅读(869) 评论(0) 推荐(0) 编辑
摘要: Exersise 1:把多个字段关联到一个row里面In the future, remember that the mapping between the from columns and to resources is done using the respective ordering of the two arrays. If we had more columns we wanted to bind, and more Views to bind them in to, we would specify them in order, for example we might use 阅读全文
posted @ 2010-12-24 15:56 dartagnan 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Android Activity 有三种Menu:Options Menu,Context Menu, Panel Menu。options menu: 按MENU键来显示, 在屏幕最下面最多显示6个菜单选项(icon menu,不可以有checkable),如果多于6个的其他的会以“more” icon menu来调出(expanded menu),通过activity的onCreateOptionsMenu来生成,只能在menu第一次生成时调用;想改变options menu,只能在onPrepareOptionsMenu里来实现;处理 options menu 里菜单项,要用activi 阅读全文
posted @ 2010-12-24 10:58 dartagnan 阅读(698) 评论(0) 推荐(0) 编辑