代码改变世界

LINUX C

2013-08-18 00:49 by anjsoft, 134 阅读, 0 推荐, 收藏, 编辑
摘要:1.生成configure a. autoscan =>configure.scan => configure.in b. aclocal => aclocal.m4 c. autoconf => configure 2. 新建Makefile.am AUTOMAKE_OPTIONS=foreign bin_PROGRAMS=helloworld helloworld_SOUR... 阅读全文

高级UNIX环境编程2

2013-08-17 23:34 by anjsoft, 180 阅读, 0 推荐, 收藏, 编辑
摘要:perror("error:") ; strerror 日历时间:time_t (1970.1.1开始的秒数) struct timeval (秒数和微秒) struct tm struct t m * localtime(const time_t *t); === time_t mktime(struct ™ *tmbuf); struct t m* gmtime( const ... 阅读全文

高级UNIX环境编程

2013-08-17 15:20 by anjsoft, 138 阅读, 0 推荐, 收藏, 编辑
摘要:常规文件 只有索引节号(i-number,是一批i-node的索引),i-node不含文件名及数据字节,包括文件类型,链接数量,uid,gid,访问权限,字节数,最后访问时间,最后修改时间,信息节点最后修改时间,文件内容磁盘块指针 目录:使用名称来标识文件,实际中总是用目录来访问文件,每个目录包含一个两列表,一列是文件名称,一列是索引节号,名称/信息节点对被称为链接(link) 块特殊文件:包含固... 阅读全文

posix ipc

2013-08-14 21:41 by anjsoft, 140 阅读, 0 推荐, 收藏, 编辑
摘要:消息队列 mq_open /mq_close/mq_unlink mq_getattr/mq_setattr mq_send/mq_receive/mq_notify 信号量 sem_open/sem_close/sem_unlink sem_init/sem_destroy sem_wait/sem_trywait/sem_post/sem_getvalue 共享内存 shm_oepn/shm... 阅读全文

node.js

2013-08-10 20:43 by anjsoft, 132 阅读, 0 推荐, 收藏, 编辑
摘要:永远使用 var 定义变量以避免引入全局变量,因为全局变量会污染 命名空间,提高代码的耦合风险。 阅读全文

cocos2dx工程

2013-08-03 15:58 by anjsoft, 148 阅读, 0 推荐, 收藏, 编辑
摘要:1. create-android-project.sh 进入 pro.android/ ln -s ../Resources ./Resources 阅读全文

facebook

2013-08-03 09:44 by anjsoft, 228 阅读, 0 推荐, 收藏, 编辑
摘要:keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 阅读全文

服务器程序开发模型

2013-07-20 15:02 by anjsoft, 144 阅读, 0 推荐, 收藏, 编辑
摘要:C/S ; P2P 阅读全文

TCP/IP学习笔记

2013-07-20 08:56 by anjsoft, 215 阅读, 0 推荐, 收藏, 编辑
摘要:1、 2、 >>> int socket(int af, int type,int protocol);//创建套接字,返回从文件描述表中取出新的索引号(int);AF_INET,SOCK_DGRAM/SOCK_STREAM,0;阻塞式socket int close(int d);/int shutdown(int socket,int direction);//关闭 //将i... 阅读全文

C++学习笔记

2013-07-19 21:01 by anjsoft, 109 阅读, 0 推荐, 收藏, 编辑
摘要:1. using std::out;//相当与java中import using namespace std; 2. VC6 /GZ 编译器选项,在调试模式下捕获发行版本中的错误。 /Ob0 不生成内联 __ 强制内联关键字 3. 在控制台程序中可以作用 AFXCOLL.H中列出的所有调用(MFC) 阅读全文