自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 linux 查找上一个命令 set -o vi

linux 查找上一个命令 set -o vi

2013-01-07 13:28:46 1098

转载 vi的复制粘贴命令

vi的复制粘贴命令vi编辑器有3种模式:命令模式、输入模式、末行模式。掌握这三种模式十分重要:  命令模式:vi启动后默认进入的是命令模式,从这个模式使用命令可以切换到另外两种模式,同时无论在任何模式下只要按一下[Esc]键都可以返回命令模式。在命令模式中输入字幕“i”就可以进入vi的输入模式编辑文件。  输入模式:在这个模式中我们可以编辑、修改、输入等编辑工作,在编辑

2012-11-23 12:53:47 437

转载 Android.mk

Android.mk文件时android 中的一个非常重要的概念。我们有以下几个方便的时候需要使用它。1:添加新的apk源码文件编译。这里我们先参考下AlarmClock的Android.mk文件LOCAL_PATH:= $(call my-dir)include $(CLEAR_VARS)LOCAL_SRC_FILES := $(call all-subdir-jav

2012-11-22 17:42:49 497

转载 Beyond Compare as a Diff and Merge tool with Git

One of the first real points of frustration a developer encounters with Git is the initial unresolved merge conflict.Beyond Compare is an excellent file comparison utility and can be configured with

2012-11-20 13:10:18 2590

转载 如何使用inotify_init,inotify_add_watch,inotify_rm_watch,read编写监控程序

inotify是什么?用它能干些什么?         通俗点说它是一个内核用于通知用户空间程序文件系统变化的系统,并且它是powerful yet simple的。 inotify的用户接口原型主要有以下3个:#include  初始化:int inotify_init(void);               int    fd  =  inotify_init();

2012-09-27 15:22:27 1394

转载 Ubuntu右键打开终端以及使用root权限打开文件夹或文件的方法

把终端加到右键菜单:sudo apt-get install nautilus-open-terminal右键单击文件或文件夹以 root 权限打开:sudo apt-get install nautilus-gksu重新加载文件夹nautilus -q

2012-04-25 13:55:31 4273

转载 Linux查看CPU和内存使用情况

在系统维护的过程中,随时可能有需要查看 CPU 使用率,并根据相应信息分析系统状况的需要。在 CentOS 中,可以通过 top 命令来查看 CPU 使用状况。运行 top 命令后,CPU 使用状态会以全屏的方式显示,并且会处在对话的模式 -- 用基于 top 的命令,可以控制显示方式等等。退出 top 的命令为 q (在 top 运行中敲 q 键一次)。  操作实例:   在命令行中

2012-04-19 08:38:55 415

转载 How to compile Andriod in Ubuntu 64 bit system

Step 0:Install below package, there are all needed in later:apt-get install zlib1g-devapt-get install flexapt-get install libncurses-devapt-get install libx11-devapt-get install gperf

2012-04-17 17:55:17 810

转载 用反射来调用Android里的隐藏Class

Object obj = new Object();Method method = Class.forName("android.os.ServiceManager").getMethod("getService", String.class);System.out.println(method.invoke(obj, "phone"));

2012-03-23 14:39:03 881

原创 函数指针 网址备注

http://www.newty.de/http://en.wikipedia.org/wiki/Callback_(computer_programming)

2012-03-19 21:36:05 646

转载 Java本地接口(JNI)编程指南和规范(第五章)

第五章局部和全局引用参考 :The Java Native InterfaceProgrammer's Guide and Specificationhttp://java.sun.com/docs/books/jni/html/jniTOC.html AndroidJNIhttp://unity3d.com/support/documentation/Script

2012-03-17 13:35:20 2593

转载 C++中的虚函数(virtual function)

1.简介     虚函数是C++中用于实现多态(polymorphism)的机制。核心理念就是通过基类访问派生类定义的函数。假设我们有下面的类层次:class A{public:    virtual void foo() { cout };class B: public A{public:    virtual void foo() { cout

2012-03-17 09:54:57 380

转载 Linux axel下载工具使用

axel是Linux环境下,一个多线程下载工具,速度比wget下载略快安装axel:apt-get install axel下载:axel [参数] urlaxel -s 1024 url   每秒1KB速度下载axel -n 10 url     同时10个线程同时下载

2012-03-16 20:33:44 736

转载 android 编译部分模块

从网上看的别人的: 在android的顶层目录里,运行下面的命令:source build/envsetup.sh 运行命令后,就添加了很多命令到sh解释器,具体命令如下:-croot:   Changes directory to the top ofthe tree.-m:       Makes from the top of the tree.-mm:

2012-03-16 09:20:38 426

转载 vi命令一览表

文本编辑器是所有计算机系统中最常用的一种工具。UNIX下的编辑器有ex,sed和vi等,其中,使用最为广泛的是vi,而vi命令繁多,论坛里好像这方面的总结不多,以下稍做总结,以资共享!渴望更正和补充! 进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :

2012-03-16 09:17:38 328

转载 标准C++的类型转换符:static_cast、dynamic_cast、reinterpret_cast和const_cast(转载)

C 风格(C-style)强制转型如下: (T) exdivssion // cast exdivssion to be of type T 函数风格(Function-style)强制转型使用这样的语法: T(exdivssion) // cast exdivssion to be of type T  这两种形式之间没有本质上的不同,它纯粹就是一个把括号放在哪的问题。我把这

2012-03-16 09:16:33 421

转载 Install Guide: XBMC Using PPA On Ubuntu 11.10

sudo add-apt-repository ppa:nathan-renniewaldock/xbmc-stablesudo apt-get updatesudo apt-get install xbmc

2012-03-12 10:48:55 443

空空如也

空空如也

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

TA关注的人

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