上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页
摘要: 迅雷,搜狐微门户,腾讯 弹出拦截http://files.cnblogs.com/ahuo/CloseAD.rar 阅读全文
posted @ 2012-07-19 23:46 ahuo 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Ubuntu默认将内存的一半作为ramdisk空间使用。挂载点为/dev/shm 文件类型为tmpfs /dev/shm 不完全是RamDisk,若它使用超过电脑一半以上的RAM,就会开始吃SWAP。另外它没用到的部份,会自动释放出来给系统使用 ramdisk作用可以将缓存放到其中,这样延长硬盘寿命,并且提高电脑速度 1,修改ramdisk操作 调整/dev/shm目录的大小 1)查看大小 df -h /dev/shm 2)修改大小 vi /etc/fstab tmpfs /dev/shm tmpfs defaults,size=4096M 0 0 size参数也可以... 阅读全文
posted @ 2012-07-18 14:53 ahuo 阅读(557) 评论(0) 推荐(0) 编辑
摘要: Ubuntu Linux系统包含两类环境变量:系统环境变量和用户环境变量。系统环境变量对所有系统用户都有效,用户环境变量仅仅对当前的用户有效。修改用户环境变量用户环境变量通常被存储在下面的文件中:~/.profile~/.bash_profile或者~./bash_login~/.bashrc上述文件在Ubuntu 10.0以前版本不推荐使用。系统环境变量系统环境变量一般保存在下面的文件中:/etc/environment/etc/profile/etc/bash.bashrc/etc/profile和/etc/bash.bashrc在Ubuntu 10.0版本中不推荐使用。加入环境变量如想将 阅读全文
posted @ 2012-07-17 23:50 ahuo 阅读(199) 评论(0) 推荐(0) 编辑
摘要: int _tmain(int argc, _TCHAR* argv[]){USES_CONVERSION;FILE* pf = _wfopen(L"w.xml",L"r");CHAR buf[1024]={0};int r = fread(buf,sizeof(CHAR),sizeof(buf),pf);TiXmlDocument doc;doc.Parse(buf,0,TIXML_ENCODING_UTF8);TiXmlElement* pPluginRoote = doc.RootElement()->FirstChildElement(&qu 阅读全文
posted @ 2012-07-13 17:50 ahuo 阅读(389) 评论(0) 推荐(0) 编辑
摘要: [1] 首先创建库文件libhello.c#include <stdio.h>#include "libhello.h"void hello(){printf("welcome to Linux!\n");}[2] 创建头文件libhello.hvoid hello();[3] 先将其编译成目标文件:gcc -c libhello.c[4] 现在我们创建libhello静态库文件:gcc -c libhello.c -o libhello.oar rcs libhello.a libhello.o [5] 写一个测试程序test.c:#inc 阅读全文
posted @ 2012-07-11 15:28 ahuo 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 用变量a给出下面的定义a) 一个整型数(An integer)b) 一个指向整型数的指针(A pointer to an integer)c) 一个指向指针的的指针,它指向的指针是指向一个整型数(A pointer to a pointer to an integer)d) 一个有10个整型数的数组(An array of 10 integers)e) 一个有10个指针的数组,该指针是指向一个整型数的(An array of 10 pointers to integers)f) 一个指向有10个整型数数组的指针(A pointer to an array of 10 integers)g) 一 阅读全文
posted @ 2012-07-09 18:25 ahuo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 最近vs2005老是占用很高的CPU问题出在只能intellisense上/Program Files/Microsoft Visual Studio 8/VC/vcpackages/feacp.dll文件改名就好了 阅读全文
posted @ 2012-07-09 15:19 ahuo 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Printenv打印环境变量。Uboot> printenvbaudrate=115200ipaddr=192.168.1.1ethaddr=12:34:56:78:9A:BCserverip=192.168.1.5Environment size: 80/8188 bytesSetenv设置新的变量Uboot> setenv myboard AT91RM9200DKUboot> printenvbaudrate=115200ipaddr=192.168.1.1ethaddr=12:34:56:78:9A:BCserverip=192.168.1.5myboard=AT91R 阅读全文
posted @ 2012-07-07 23:33 ahuo 阅读(226) 评论(0) 推荐(0) 编辑
摘要: ram启动1.解压uclinux_ram.bin.gz 得 uclinux_ram.bintftp 然后 go 0xc0080002.tftp 0x0c208000 ,镜像被自动下载到RAM中的0x0c208000位置,然后执行bootm 0x0c208000 命令uclinux_rom.bin文件放在RAM的 0x0c208000 位置处,是因为uclinux_rom.bin是压缩文件 ,在用bootm启动时需要将原始文件解压缩到0x0c008000 位置(此地址在编译时就确定了),然后跳转到这里开始执行。所以必须使得uclinux_rom.bin的存放位置避开程序解压缩后的存储区域,否则二 阅读全文
posted @ 2012-07-07 12:42 ahuo 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 在linux-2.4.x/include/asm-armnommu/arch-s3c44b0/中system.h中armch_rest添加cpu_reset(0x800000); 阅读全文
posted @ 2012-07-07 12:23 ahuo 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 发现系统网络不能用,proc下是空的后来发现init没有编译到系统里menuconfig——》user——》core app——》init修改rc文件加入网关 :route add default gw 192.168.1.1 eth0就有下面的执行过程了Shell invoked to run file: /etc/rcCommand: hostname SamsungCommand: /bin/expand /etc/ramfs.img /dev/ram0Command: /bin/expand /etc/ramfs2048.img /dev/ram1Command: mount -t p 阅读全文
posted @ 2012-07-07 11:28 ahuo 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 今天由于要用到静态链接库,所以就学习了一下相关知识,总结如下:静态链接库(一般命名为libxxx.a)就是很多.o文件的集合,在你的项目中如果有一个子模快,这个子模块只是给总控模块提供一个函数接口,那么你就可以考虑把这个子模快编译成静态链接库libxxx.a,然后在总控模块中编译的时候,只需-L包含... 阅读全文
posted @ 2012-07-05 17:15 ahuo 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: vmware-toolbox-cmd timesync enablesudo /etc/init.d/vmware-tools restart 阅读全文
posted @ 2012-07-02 18:01 ahuo 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 安装sudo apt-get install tftp-hpa tftpd-pha openbsd-inetd配置# /etc/default/tftpd-hpaTFTP_USERNAME="tftp"TFTP_DIRECTORY="/tftpboot"TFTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="-l -c -s /tftpboot"验证ps aux |grep tftp重启sudo /etc/init.d/tftpd-hpa restart 阅读全文
posted @ 2012-07-01 18:37 ahuo 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 编译 gcc -g test.c -o test 启动 gdb test 1:查看代码 (gdb) list 行号查看指定行号附近的代码。(gdb) search KeyWord查找当前文件下一个KeyWord(gdb) reverse-search KeyWord查找当前文件上一个KeyWord 阅读全文
posted @ 2012-06-30 14:43 ahuo 阅读(381) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页