摘要: 1. definitionlong ptrace(int request, pid_t pid, void * addr, void * data)request , trace type;the request determine the meaning of the other parameters and return value.2.possibility of request[cpp] view plaincopy#definePTRACE_TRACEME0#definePTRACE_PEEKTEXT1#definePTRACE_PEEKDATA2#definePTRACE_PEEK 阅读全文
posted @ 2012-04-02 20:05 cascais 阅读(457) 评论(0) 推荐(0) 编辑
摘要: [plain] view plaincopyip_addr="$1"name="$2"passwd="$3"command1="$4"command2="$5"command3="$6"echo"open$ip_addr">ftp_inputecho"user$name$passwd">>ftp_inputecho"binary">>ftp_inputecho"epsv4&qu 阅读全文
posted @ 2012-04-02 20:04 cascais 阅读(167) 评论(0) 推荐(0) 编辑
摘要: socket API原本是为网络通讯设计的,但后来在socket的框架上发展出一种IPC机制,就是UNIX Domain Socket。虽然网络socket也可用于同一台主机的进程间通讯(通过loopback地址127.0.0.1),但是UNIX Domain Socket用于IPC更有效率:不需要经过网络协议栈,不需要打包拆包、计算校验和、维护序号和应答等,只是将应用层数据从一个进程拷贝到另一个进程。 这是因为,IPC机制本质上是可靠的通讯,而网络协议是为不可靠的通讯设计的。UNIX Domain Socket也提供面向流和面向数据包两种API接口,类似于TCP和UDP,但是面向消息的UNI 阅读全文
posted @ 2012-04-02 20:02 cascais 阅读(1535) 评论(0) 推荐(1) 编辑
摘要: Android use UNIX Domain Socket for get debug log.usually name "tombstone_0X" and so on in /data/log/logcat/1. ServerFirst , it has a socket server. it's a executable program.The code was in "system/core/debuggerd/debuggerd.c"in the main, it open a IPC socket[cpp] view plainco 阅读全文
posted @ 2012-04-02 19:59 cascais 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 1. AJAXa. ajax所包含的技术 大家都知道ajax并非一种新的技术,而是几种原有技术的结合体。它由下列技术组合而成。 1).使用CSS和XHTML来表示。 2). 使用DOM模型来交互和动态显示。 3).使用XMLHttpRequest来和服务器进行异步通信。 4).使用javascript来绑定和调用b. Ajax的原理简单来说通过XmlHttpRequest对象来向服务器发异步请求,从服务器获得数据,然后用javascript来操作DOM而更新页面。这其中最关键的一步就是从服务器获得请求数据。要清楚这个过程和原理,我们必须对 XMLHttpRequest有所了解。 XMLHttp 阅读全文
posted @ 2012-04-02 19:58 cascais 阅读(130) 评论(0) 推荐(0) 编辑
摘要: exec is used for start another program in the c code of linux1.execl[cpp] view plaincopyintexecl(constchar*path,constchar*arg,...)the last parameter must end up with NULL.[cpp] view plaincopy#include<stdio.h>#include<unistd.h>intmain(){execl("/home/cascais/code/hello","hel 阅读全文
posted @ 2012-04-02 19:56 cascais 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 瀑布模型(waterfall mode) 可行性分析、需求分析、设计、编码、测试、运行维护 软件开发的各项活动严格按照线性方式进行,当前活动接受上一项活动的工作结果,实施完成所需的工作内容。 优点: 线性,提供各个阶段检查点 缺点: 各阶段少有反馈 在整个生命周期后期才看到结果 快速原型模型 快速原型模型需要迅速建造一个可以运行的软件原型,实现客户或未来的用户与系统的交互,用户或客户对原型进行评价,进一步细化待开发软件的需求。 优点: 克服瀑布模型的缺点,减少由于软件需求不明确带来的开发风险。 缺点: 所选用的开发技术和工具不一定符合主流的发展;快速建立起来的系统结构加上连续的修改可能会导.. 阅读全文
posted @ 2012-04-02 19:54 cascais 阅读(194) 评论(0) 推荐(0) 编辑
摘要: SpringThe Spring Framework serves as the foundation for the wider family of Spring open source projects, including:Spring Security Spring Integration Spring Batch Spring Data Spring Web Flow Spring Web Services Spring Mobile Spring Social Spring AndroidSpring SecuritySpring Security is a powerful an 阅读全文
posted @ 2012-03-18 22:34 cascais 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Terra Nova H.Q, this is Foster.Terra Nova command, copy that.I just put up at communication station at 19-A.Copy that, commence repair.Roger that.Terra command out.Smithson is that you? You sleeping another bender off in there, or did you lock yourself again.Smithon, wake up.Yeah, it looks pretty st 阅读全文
posted @ 2012-02-16 00:24 cascais 阅读(264) 评论(0) 推荐(0) 编辑