1.操作符offset
操作符offset在汇编语言中是由编译器处理的符号,他的功能是取得标号的偏移地址
比如下面程序:
assume cs:codesg
codesg segment
start:mov ax,offset start
相当于mov ax,0
s:mov ax,offset s
相当于mov ax,3
codesg ends
end start
在上...
分类:
其他好文 时间:
2014-07-22 22:59:34
阅读次数:
506
异常一:Can‘tcreatehandlerinsidethreadthathasnotcalledLooper.prepare()这个异常是因为非主线程中默认没有创建对象。所以就要看看该方法所在的线程是不是主线程一看。真的不是。于是取消newThread().start();搞定。问题1:@OverridepublicvoidonClick(DialogInterfacedialog,i..
分类:
其他好文 时间:
2014-05-03 00:48:54
阅读次数:
276
在《Zygote进程【3】——SystemServer的诞生》一文中介绍了SystemServer的诞生,本文来看一下SystemServer中初始化的系统服务。
AccountManagerServiceAccessibilityManagerService
ActivityManagerService
AlarmManagerService
AppWidgetService...
分类:
移动开发 时间:
2014-05-03 00:16:21
阅读次数:
404
首先用package system安装android-mode, 然后编辑~/.emacs.d/init.el文件,添加下面几行:(require 'android-mode)
(setq android-mode-sdk-dir "/opt/android-sdk-linux/")现在重新启动emacs,然后M-x 中运行命令android-start-emulator此时会提示输入Androi...
分类:
移动开发 时间:
2014-05-02 22:49:40
阅读次数:
561
//字符串全排列package com.demo.acm;public class
AllSortChar { public static void allSort(char[] buf,int start,int end){
if(start==end){ ...
分类:
其他好文 时间:
2014-05-02 19:43:21
阅读次数:
256
1.session:在服务器上保存。打开session:session_start();要放在代码的最前面。
浏览器默认保存20分钟,清除session:unset($...);session_destroy();。2.cookie:在客户端上保存,不安全。setcookie("","","");....
分类:
其他好文 时间:
2014-05-02 09:45:31
阅读次数:
262
1、具体错误如下
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop }
2014-5-1 23:17:23 org.apache.catalina.core.AprLifecycleListener init
信息: Loade...
分类:
其他好文 时间:
2014-05-02 05:12:30
阅读次数:
257
1、具体报错如下
2014-5-1 23:02:38 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/UploadFile] threw exception [An exception occurred proce...
分类:
其他好文 时间:
2014-05-02 04:53:03
阅读次数:
325
1、具体报错如下
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop }
2014-5-1 23:10:21 org.apache.catalina.core.AprLifecycleListener init
信息: Loade...
分类:
其他好文 时间:
2014-05-02 02:17:00
阅读次数:
353
VMware也用了一年了,一直好好的,今天突然出现启动不了VMware里的linux系统了,Authorization
Service问题,在windows系统里查看服务,找到VMware Authorization Service,点启动,弹出无法启动VMware
Authorization Se...
分类:
Windows程序 时间:
2014-05-01 19:04:13
阅读次数:
2955