- 博客(21)
- 收藏
- 关注
原创 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
619
原创 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
4148
原创 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
870
原创 eclipse tab缩进改为空格
Window -> Preferences -> Java -> Code Style -> Formater右侧
2014-09-12 13:46:13
676
原创 go, Getting Started, Hello world
参考http://golang.org/doc/installStep 1:Download http://golang.org/dl/
2014-08-14 00:10:49
699
原创 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
412
原创 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
545
原创 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
2570
原创 UNIX编程艺术
以下是UNIX编程艺术的zha模块原则:使用简洁的接口拼合简单的部件清晰原则:清晰胜于技巧组合原则:设计时考虑拼接组合分离原则:策略同机制分离,接口同引擎分离简洁原则:设计要简洁,复杂度能低则低吝啬原则:除非别无他法,不要编写庞大的程序透明性原则:设计要可见,以便审查和调试健壮性:健壮源于透明和简洁表示原则:把知识
2014-08-07 13:47:46
519
原创 android.database.CursorIndexOutOfBoundsException
android.database.Cursor 在调用 cursor.getString(index); 方法时出现
2014-08-01 09:12:27
455
原创 Ubuntu 12.04 安装python-mysqldb
sudo apt-get install python-setuptoolssudo apt-get install python-mysqldb
2014-07-30 13:28:55
503
原创 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
691
原创 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
2155
原创 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
4555
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人