- 博客(127)
- 资源 (53)
- 收藏
- 关注
原创 Android DEX preopt prebuilt APK
AOSP编译APK的时候,默认情况下,对于prebuilt的APK,没有preopt。preopt的过程是把APK里面的.class分离出来,成为一个单独的.odex,加快Dalvik下APK的安装以及代码的执行速度。下面对于core/prebuilt.mk的补丁可以实现对prebuilt的APKpreopt的功能。--- a/core/prebuilt.mk+++ b/core/prebuilt
2016-06-23 12:41:28
826
private boolean isRecording = false;@Overridepublic void onClick(View v) { switch (v.getId()) { case R.id.button: if (isRecording) { stopRecord();
2016-05-23 22:48:10
184
原创 Lenove L421 driver
PCI Simple communications controller,对应驱动是Intel Management Engine Interface,对于正版的系统,位于C:\SWTOOLS\DRIVERS\IMEISM Bus Controller,属于Intel芯片的东西,对应的驱动是C:\SWTOOLS\DRIVERS\CHIPINF
2015-01-18 14:21:42
689
原创 MantisBT Graph support on CentOS
1.Enable graph plugin in MantisBT plugin management page2.Install php graph library# yum install php-gd php-xml3.Install msttcorefontsSearch and download from http://rpmfind.net/linux/rpm2html
2014-12-03 15:06:54
147
原创 install: cannot stat ‘javaws-wrapper.sh’: No such file or directory
When installed oracle jdk from ppa:webupd8team/java, I got this error"
2014-06-29 14:58:01
4888
原创 Exception in thread "main" java.lang.NoClassDefFoundError:
When we specify a package name in our Java code, e.g. the following code
2014-05-18 15:28:23
1169
原创 Execute multiple commands by outputstream in Java
public class MyProcess { public static void main(String[] args) { try { // bash, su or any other command invoke a shell interpreter // we execute the commands sent from outputstream by this
2014-05-18 13:00:32
717
原创 no talloc stackframe at ../source3/param/loadparm.c
In Ubuntu 14.04 with Samba server installed, every time you will get this error mes
2014-05-06 19:23:00
2436
1
原创 Setup android build environment in Ubuntu 14.04
Initializing Android build environment in Ubuntu 14.04 is easy and simple.Just invoke
2014-05-05 14:14:03
2305
原创 Android DEX Preopt prebuilt apks
--- a/core/prebuilt.mk+++ b/core/prebuilt.mk@@ -16,6 +16,16 @@ $(error dont use LOCAL_PREBUILT_JAVA_LIBRARIES anymore LOCAL_PATH=$(LOCAL_PATH)) endif +ifneq ($(filter APPS,$(LOCAL_MODULE_CLASS))
2014-05-05 11:11:13
1460
原创 Ubuntu 14.04 Apache2 File List
1.First of all, install apache2$ sudo apt-get install apache2.Secondly, edit the configuration filesHere, i choose /home/www as my file listing site root directory.$ cd /etc/apache2/sites-av
2014-05-05 08:59:40
1201
原创 Ubuntu 14.04 Apache2 file list
1.First of all, install apache2$ sudo apt-get install apache2.
2014-05-05 08:38:34
140
原创 Commandline和GUI下的clipboard的交互
Mac下echo $PATH | pbcopy,copy to clipboardecho "$(pbpaste -Prefer text)",copy from clipboardLinux下,首先需要安装xselecho $PATH | xsel --clipboard,copy to clipboardecho "$(xsel --output --clipboard)"
2013-04-24 09:20:06
872
原创 [C/C++] error: jump to case label, error: crosses initialization of ‘int a’
switch (t) { case 0: int a = 0; break; // NOT OK case 1: int b; b = 0; break; // OK default: break; }C++ case语句当中不能出现带初始化的变量声明,只能出现POD类型,同时不带初始化的变量声明。C++ Standard当中已经说明这一
2013-02-23 15:42:17
3004
原创 [Ubuntu]: Ubuntu 10.04 LTS中安装ACE wrappers 5.8
1.获取源代码$ wget http://download.dre.vanderbilt.edu/previous_versions/ACE-src-5.8.tar.bz22.安装必要的library和tool$ sudo apt-get install libtool libssl-dev autoconf3.编译以及安装ACE wrappers$ tar -jvxf ACE
2012-12-12 08:24:45
716
原创 [Windows]: Windows XP Professional English & Chinese Simple资源分享
Windows XP Professional Englished2k://|file|en_windows_xp_professional_with_service_pack_3_x86_cd_x14-80428.iso|617756672|2A30BB63730F7887E1AC54363A8489C2|/ed2k://|file|en_windows_xp_professional_
2012-10-23 22:55:37
4159
原创 [Ubuntu]: 桌面隐藏挂载的可移动磁盘的图标
每次有新的设备或者分区挂载了,都会在桌面上显示一个图标,为了是桌面看起来更加干净,可以这么除去。ALT + F2,然后输入gconf-editor然后导航到apps -> nautilus -> desktop/apps/nautilus/desktop/volumes_visible这个值不勾选就可以了
2012-10-23 15:24:56
1607
原创 [Ubuntu]: rm: cannot remove `.pps/fuse': Transport endpoint is not connected
再Ubuntu当中卸载了PPStream之后,尝试把它的配置也删除,但是出现了标题的错误。解决方法如下,执行下面两条命令即可。$ fusermount -u .pps/fuse $ rm -rf .pps/
2012-10-14 19:12:04
1742
原创 [Ubuntu]: Ubuntu 10.04当中开启framebuffer
在运行dfb程序的时候,出现如下的提示错误:(!) DirectFB/FBDev: No supported modes found in /etc/fb.modes and current mode not supported!(!) DirectFB/FBDev: Current mode's pixelformat: rgba 6/0, 6/0, 6/0, 0/0 (4bit)(
2012-10-08 19:27:01
2284
原创 [Linux]: rar e Invalid or incomplete multibyte or wide character
在解压某个中文档案的时候出现标题描述的错误。$ rar e Bandari.Moon.Forest.ape.rar RAR 3.90 beta 2 Copyright (c) 1993-2009 Alexander Roshal 3 Jun 2009Shareware version Type RAR -? for helpExtracting from B
2012-10-06 11:54:33
3930
原创 [Ubuntu]: tftp server
1.安装对应的软件包$ sudo apt-get install xinetd tftpd tftp2.tftpd是挂载在xinetd下面的,修改配置文件$ sudo vim /etc/xinetd.d/tftpservice tftp{protocol = udpport = 69socket_type = dgra
2012-10-06 10:10:15
588
原创 在ext4文件系统,虚拟机关于Host I/O cache的启动警告
<!--p, li {white-space:pre-wrap}-->The virtual machine execution may run into an error condition as described below. We suggest that you take an appropriate action to avert the error.T
2012-09-04 16:01:29
3779
原创 [Ubuntu]: 10.04当中安装使用sunpinyin
对于9.10+的Ubuntu发行版本$ sudo add-apt-repository ppa:ibus-dev/ibus-1.3-lucid$ sudo apt-get update$ sudo apt-get install ibus-sunpinyin安装好之后,注销,重新登录就可以了。在iBus的Preferences选项当中设置。对于其它Ubuntu发
2012-08-21 18:48:35
1060
原创 [Ubuntu]: 安装使用insight GDB前端
insight被认为是最好的GDB调试前端。但是需要从源码编译安装,不方便管理。现在有人在PPA做好了对应的deb包了,对于9.10+的系统,可以按照如下方式$ sudo apt-add-repository ppa:sevenmachines/dev$ sudo apt-get update$ sudo apt-get install insight对于其它的Ub
2012-08-20 10:26:14
1904
原创 [Ubuntu]: Stuck at "Moving files to trash"
在用delete删除文件的时候,卡在了"Moving files to trash"这个进度条上面。原因是Trash下面的文件info的记录信息和files下的文件不对应了。就是用其它工具或者命令对~/.local/share/Trash/files里面的文件进行的移动等操作,导致~/.local/share/Trash/files和~/.local/share/Trash/info下
2012-08-15 10:59:30
869
原创 [C/C++]: C++ const引用浅析
顾名思义,const修饰的意思就是不能直接改变的值。在C++的编码过程当中很多地方可以用到。1.许多对象初始化之后,其值不用再改变2.符号常量,使代码可以更加容易维护3.某些指针只是获取所指的对象的值,而不能改变其所指对象的值4.防止函数调用过程当中对所传递参数的修改用const修饰的对象,有以下需要牢记的特性:1.定义的时候必须初始化,后续不能再改变其值2
2012-08-14 14:49:09
4619
原创 [Ubuntu]: Ubuntu当中安装insight GDB前端
Insight被称为是最好的GDB前端,要胜于xxxgdb,gdbtui,cgdb等。但是需要从源码安装,这个显得有点麻烦,不好管理。如果不希望编译安装,可以从ppa当中获取,已经有人对应把它作成了deb包了,方便极了。1.添加如下的源到/etc/apt/source.list当中deb http://ppa.launchpad.net/sevenmachines/dev/
2012-08-13 22:02:47
1797
原创 Ubuntu 10.04 LTS配置vsftpd
$ sudo apt-get install vsftpd$ sudo service vsftpd start配置文件的修改,/etc/vsftpd.confanonymous_enable=YES#允许匿名用户登录,在没有指明用户名的情况下,默认是匿名访问的允许root用户登录
2012-07-30 10:43:11
87
原创 [Debian]: ls,man,grep彩色显示
习惯了ls的彩色显示,习惯了man的彩色显示以及vi的键盘操作,grep的彩色显示,Debian安装好之后,上面说的这些配置似乎都没有,需要手动设定。ls的彩色终端显示在文件~/.bashrc当中,注释下面这段内容或者手动添加上去即可。export LS_OPTIONS='--color=auto'eval "`dircolors`"alias ls='ls $LS_OPT
2012-07-13 16:00:08
2220
原创 dd对整个disk的操作
dd一般对一个分区方便地操作。下面是dd对整个disk操作的例子。http://wiki.edseek.com/guide:mount_loopbackhttp://www.andremiller.net/content/mounting-hard-disk-image-including-partitions-using-linuxhttp://bbs.chinaunix.net/f
2012-05-17 09:10:59
227
原创 monaco font at Ubuntu
1.sudo mkdir /usr/share/fonts/truetype/custom 2.sudo mv Monaco_Linux.ttf /usr/share/ts/truetype/custom/ 3.sudo fc-cache -f -v
2012-05-17 09:04:24
234
原创 Makefile当中使用alias命令
Unless you've told it otherwise, make isn't using bash, it's using sh. While sh is probably a symlink to bash, when invoked as "sh" it doesn't read your .bashrc (nor the system default). You can
2012-05-17 08:58:14
1829
原创 启动C:\PROGRA~1\ThinkPad\UTILIT~1\PWMTR32V.DLL出现问题
Thinkpad L421出现这个电源管理工具的启动错误。系统误删除了必要的组件,导致一个DLL无法运行起来。 重新安装MICROSOFT VISUAL C++ 2005 RUNTIME LIBRARIES即可。这个文件在系统里面自带有,路径是C:\SWTOOLS\ReadyApps\PWRMGRV\VC80_X86.exe安装好之后,注销,然后重新登录就可以了。保守起
2012-05-11 15:48:59
1717
原创 SVN:把chmod对文件的操作作为一次改动提交
SVN上的一个文件没有执行权限,每次下载code过后都需要手动增加x权限。这样子显得非常麻烦。执行下面的这个命令可以很好解决问题。$ svn propset svn:executable ON [filename]参考:http://blog.chilly.ca/?p=167http://svnbook.red-bean.com/en/1.0/re23.html
2012-05-09 09:37:31
181
原创 [Linux]: SVN使用小技巧
1.返回到某一版本1).使用svn update指定版本号$ svn update -r 1760# 上面的使当前的repository回到版本17602).使用svn revert$ svn revert -r 1882:1760# 上面的使版本1882回到17603).使用svn export指定单个文件$ svn export http://your-file
2012-04-24 08:56:34
6923
原创 showModalDialog的一个实例
test.html页面通过函数调用showModalDialog,显示show_modal_dialog.html页面,并向show_modal_dialog.html传递参数。在show_modal_dialog.html页面通过dialogArguments或者opener获取函数传递过来的参数。test.html内容testing page function
2012-03-29 21:02:20
2980
原创 showModalDialog的一个实例
test.html页面通过函数调用showModalDialog,显示show_modal_dialog.html页面,并向show_modal_dialog.html传递参数。在show_modal_dialog.html页面通过dialogArguments或者opener获取函数传递过来的参数。test.html内容testing page function s
2012-03-29 21:01:21
169
原创 使用ImageMagick快速制作开机启动logo
Linux video graphic开机logo需要的是ppm格式的图片,同时是非压缩格式,ASCII。使用GIMP制作显得麻烦,同时似乎有bug,在调整colors的时候,会出现下面的错误,Procedure 'file-ppm-save' returned no return values忽然想起还有ImageMagick这款强大的图像处理工具。一条命令就搞定了,不想GIMP
2012-03-18 08:53:16
1267
原创 一个包含HTML表格所有element的简单示例
包括HTML关于表格的,,,,,,,,,所有元素的HTML示例。简单的HTML表格包含,,,元素就可以了。包含完整的表格元素的表格,对表格更加好管理。HTML Element Test Page Monthly savings MonthSavings January$100 February$80 Sum$1
2012-02-28 17:40:57
656
原创 [Linux]: Ooo Extension install error: (com.sun.star.registry.CannotRegisterImplementationException)
安装Openoffice的一个Extension的时候出现了如下错误(com.sun.star.registry.CannotRegisterImplementationException) { { Message = "", Context = (com.sun.star.uno.XInterface) @0 } }解决方法$ sudo aptitude instal
2012-02-13 21:46:25
682
1
Line Number Addin for VC6.0
2014-10-08
Visual Assist for VC6.0
2014-10-08
snow.leopard.10.6.1.10.6.2.intel.amd.made.by.hazard.torrent
2012-10-23
ARM® and Thumb®-2 Instruction Set Quick Reference Card
2012-03-20
C程序设计-谭浩强-3rd-pdf-ppt-src.zip
2011-01-09
Hacking: The Art of Exploitation pdf
2010-12-30
arm汇编语言ppt.tar.bz2
2010-12-22
ipv6介绍ppt.tar.bz2
2010-12-22
stardict-3[1].0.2.tar.bz2
2010-08-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人