自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 通过命令行创建Android项目

-n 项目名称-t Android平台-p 保存路径-k 包名-a

2014-10-11 13:43:15 473

原创 CentOS添加用户的root权限

修改 /etc/sudoers 文件,找到root一行,在root下面添加一行,如下所示:## Allow root to run any commands anywhereroot    ALL=(ALL)     ALLtommy   ALL=(ALL)     ALL修改完毕,现在可以用tommy帐号登录,然后用命令 sudo su - ,即可获得root权限进行操作。

2014-09-25 14:54:19 578

原创 android.database.sqlite.SQLiteDiskIOException: disk I/O error: COMMIT

The documentation of that exception says:/** * An exception that indicates that an IO error occured while accessing the  * SQLite database file. */Which might be an indication for the fo

2014-09-23 11:52:55 4028 1

原创 CentOS安装MySQL时报Curses library not found异常

信息如下CMake Error at cmake/readline.cmake:83 (MESSAGE):  Curses library not found.  Please install appropriate package      remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package

2014-09-16 12:47:29 807

原创 eclipse tab缩进改为空格

Window -> Preferences -> Java -> Code Style -> Formater右侧

2014-09-12 13:46:13 638

原创 go, Getting Started, Hello world

参考http://golang.org/doc/installStep 1:Download http://golang.org/dl/

2014-08-14 00:10:49 579

原创 ArrayList VS LinkedList

private static void testReadList(List list) { for (Iterator iterator = list.iterator(); iterator.hasNext();) { int num = iterator.next(); } } private static void testSetList(List list) {

2014-08-13 19:03:10 366

原创 File的getPath(),getAbsolutePath(),getCanonicalPath()区别

File file = new File("..//http_util.py");System.out.println(file.getPath()); // 定义时的路径, 处理 //System.out.println(file.getAbsolutePath()); // 不处理 . .. 但处理 //System.out.println(file.getCanonicalPath()

2014-08-08 17:11:26 507

原创 android.util.Pair

Container to ease passing around a tuple of two objects. This object provides a sensible implementation of equals(), returning true if equals() is true on each of the contained objects. p

2014-08-07 15:01:38 2529

原创 Android单元测试

在AndroidManifest.xml中

2014-08-07 13:56:57 399

原创 UNIX编程艺术

以下是UNIX编程艺术的zha模块原则:使用简洁的接口拼合简单的部件清晰原则:清晰胜于技巧组合原则:设计时考虑拼接组合分离原则:策略同机制分离,接口同引擎分离简洁原则:设计要简洁,复杂度能低则低吝啬原则:除非别无他法,不要编写庞大的程序透明性原则:设计要可见,以便审查和调试健壮性:健壮源于透明和简洁表示原则:把知识

2014-08-07 13:47:46 475

原创 android.database.CursorIndexOutOfBoundsException

android.database.Cursor 在调用 cursor.getString(index); 方法时出现

2014-08-01 09:12:27 425

原创 Ubuntu 12.04 安装python-mysqldb

sudo apt-get install  python-setuptoolssudo apt-get install python-mysqldb

2014-07-30 13:28:55 474

原创 Android API Level

Android 4.0 14ICE_CREAM_SANDWICH Platform HighlightsAndroid 3.2 13HONEYCOMB_MR2  Android 3.1.x 12HONEYCOMB_MR1 Platform HighlightsAndroid 3.0.x 11HONEYCOMB Platform HighlightsAndroid 2

2014-07-30 10:01:39 655

原创 Java中的指针

Suggestion:private static void test(final Stringbuilder sb

2014-07-28 21:34:41 547

原创 JSONObject解析引发java.lang.OutOfMemoryError问题

先看代码

2014-07-28 20:20:39 3764

原创 eclipse error : Jobs should be canceled by the plugin that scheduled them during shutdown

!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceDropAdapter$1

2014-07-25 14:07:41 2115

原创 adb命令行详解

step1:手机连上电脑step

2014-07-18 18:53:26 598

原创 Collections.emptyList()引发的java.lang.UnsupportedOperationException

缘由:private static List getEmptyList() {return Collections.emptyList();}public static void main(String[] args) {try {List list1 = new ArrayListList list2 = getEmptyList();list2.addAll

2014-07-18 13:51:32 4490

原创 Windows安装Maven

Step:参考Mavenzhu'ye

2014-07-18 13:34:48 443

原创 Eclipse安装Marketplace Client

Step1:Open your EclipseStep2:

2014-07-18 13:09:45 492

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除