摘要: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plistsudo rm !$sudo rm -rf /Applications/Jenkins "/Library/Application Support/Jenkins" /Library/Documentation/Jenkinssudo rm -rf /Users/Shared/Jenkins# if you want to get rid of all the jobs and builds:sudo dscl . -delete /Users/ 阅读全文
posted @ 2013-06-20 14:15 CY. 阅读(509) 评论(0) 推荐(0) 编辑
摘要: [Question]I am running app in debug mode from eclipse, constructor ofDatabaseHleperis called butonCreate()is not called.[Soltuon]Create instance ofORMLiteHelperand callgetWritableDatabase(). When database is not created then onCreate will be invoked.[Reference]http://stackoverflow.com/questions/1026 阅读全文
posted @ 2013-06-19 22:15 CY. 阅读(498) 评论(0) 推荐(0) 编辑
摘要: DeveloperSQLiteManagerSQLGrinderDB SoloRazorSQLFroqNavicatNavicat EssentialsSQLite Manager for FireFoxDBVisualizerBaseSpatialiteMesaSQLiteOracSQLiteQuerySQLEditorIconURLhttp://www.sqlabs.net/sqlitemanager.phphttp://www.sqlgrinder.com/http://www.dbsolo.com/http://www.razorsql.com/http://www.alwintroo 阅读全文
posted @ 2013-06-18 19:57 CY. 阅读(720) 评论(0) 推荐(0) 编辑
摘要: Since those jars are added dynamically through a classpathcontainer, the devs cannot set the source path and the javadocthrough Eclipse UI (container don't allow editing those).To fix this, and to make sure that both paths are picked upnot only by the current project, but also by other projects( 阅读全文
posted @ 2013-06-18 16:17 CY. 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 关机。在连接电源的情况下同时按下以下四个键:左shift-左control-左command-开机按钮。按住大概1秒左右就可以送开。然后开机。问题解决了。 阅读全文
posted @ 2013-06-18 13:21 CY. 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 华为的USB模式搞了个光盘加USB双模式,也就是你在windows下插上手机到USB口,系统会自动加载一个光盘镜像,里面是天翼的什么宽带连接程序,这个就是光盘模式,再加上USB功能,就变成双模式了。这模式不敢说不好,反正对我来说没什么用,尤其到了Mac OS上,这种方式简直就是SB模式,我的Mac根本认不到光盘模式,认到也没用,都是windows的可执行程序。自然的,adb也就认不出android设备,当时还以为是手机太垃圾了。还去论坛问来着。 也就是在论坛逛的时候偶然间解决了我这问题。当时是想看看别人是怎么解决C8650GPS定位不行的问题,找到一篇文章,说要关掉手机的基于CDMA网络的快速 阅读全文
posted @ 2013-06-18 13:20 CY. 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: 因为ScrollView把ViewFlipper的触碰事件拦截了,所以在ScrollView上不能滑动,不过可以解决。就是想办法先响应ViewFlipper,再响应ScrollView。@Overridepublic boolean dispatchTouchEvent(MotionEvent ev){ gd.onTouchEvent(ev); //让GestureDetector响应触碰事件 super.dispatchTouchEvent(ev); //让Activity响应触碰事件 return false;}@Overridepublic boolean onTouc... 阅读全文
posted @ 2013-06-18 13:05 CY. 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 方法1、网上很多流行的方法,先测量listview或gridview的高度,然后再scrollview中设为定值public static void setListViewHeightBasedOnChildren(ListView listView) { ListAdapter listAdapter = listView.getAdapter(); if (listAdapter == null) { listView.setVisibility(View.GONE); return; } ... 阅读全文
posted @ 2013-06-18 13:03 CY. 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Memory Analysis for Android Applicationshttp://android-developers.blogspot.com/2011/03/memory-analysis-for-android.htmlAvoiding memory leakshttp://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.htmlTrack memory allocationshttp://android-developers.blogspot.com/2009/02/track-memory-all 阅读全文
posted @ 2013-06-18 12:59 CY. 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1、<viewStub />在使用普通的view时,把View的初始可见View.GONE但是在Inflate布局的时候View仍然会被Inflate,也就是说仍然会创建对象,会被实例化,会被设置属性。也就是说,会耗费内存等资源。使用viewStub,在Inflate布局的时候,只有ViewStub会被初始化,然后当ViewStub被设置为可见的时候,或是调用了ViewStub.inflate()的时候,ViewStub所向的布局就会被Inflate和实例化,然后ViewStub的布局属性都会传给它所指向的布局。这样,就可以使用ViewStub来方便的在运行时,要还是不要显示某个布 阅读全文
posted @ 2013-06-18 12:58 CY. 阅读(203) 评论(0) 推荐(0) 编辑