题目描述: Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as po...
分类:
其他好文 时间:
2014-07-19 19:09:03
阅读次数:
282
1 obj-m += showpid.o2 obj-m += ps.o3 4 all:5 make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules6 clean:7 rm -rf *.o *.mod.c *...
分类:
其他好文 时间:
2014-07-19 17:23:58
阅读次数:
236
在编译Android的时候,经常看到这样的命令make -j8 2>&1 | tee build.log 其中 make 是编译命令,-j8 这里的 8 指的是线程数量,就是你要用几个线程去编译这个工程,一般会是 CPU核心数的2 倍。提示:开多了会卡死的!!!2是标准错误,&1是标准输出,2>.....
分类:
移动开发 时间:
2014-07-19 11:26:04
阅读次数:
268
kcov是在bcov基础上进行的,bcov已经很久没有维护了;首先需要下载依赖库libdwraft,然后在configure时候进行指定:./configure --with-libdwarf=/usr/local/lib然后make;make install(1)悲催的是编译过程中出现了错误‘PT...
分类:
其他好文 时间:
2014-07-19 00:35:24
阅读次数:
316
A relational database, like mysql, provides transactions to wrap several operations in one unit, make them all pass or all fail. All isolation levels ...
分类:
其他好文 时间:
2014-07-18 17:21:39
阅读次数:
287
1 make命令make首先是一个编译管理工具,供开发者使用的。你写一个简单的程序,源文件只有一两个,可以直接编译。但当源文件非常多时,逐一编译就会非常麻烦,并且有些一源文件是之前编译过的,如果重新编译,会非常浪费时间,特别是多人合作的大型程序。对此场景,可以使用make工具。make工具从读入一个...
分类:
其他好文 时间:
2014-07-18 14:06:02
阅读次数:
212
【练习2.1】
请定义出make-rat的一个更好的版本,使之可以正确处理整数和负数。当有理数为正时,make-rat应当将其规范化,使它的分子和分母都是正的。如果有理数为负,那么就应只让分子为负。
【分析】
分子、分母的符号总共有四种情况:
1. 分子、分母都为正数,
2. 分子为负数,分母为正数。
这两种情况下,输入和输出一致。
3. 分子、分母都为负数,
4. 分子为正数,分...
分类:
其他好文 时间:
2014-07-18 13:27:35
阅读次数:
252
nginx网站服务的安装与配置1.编写脚本,以安装nginx编写脚本前须知nginx的安装环境此案例提供两个版本的nginx(nginx-0.8.55.tar.gznginx-1.0.5.tar.gz)其为源码包,需要gcc环境(gccgcc-c++make)以及pcrepcre-develsslopenssl在root家目录下新建脚本文件install.sh[root@loc..
分类:
Web程序 时间:
2014-07-18 13:06:17
阅读次数:
368
Faced with the upcoming exam, Some useful methods referred to file operation drew tremenous attention. Now I make a summary to reading file.
import java.io.BufferedReader;
import java.io.BufferedWri...
分类:
其他好文 时间:
2014-07-18 12:26:25
阅读次数:
274
1、检查freetype是否安装
rpm -qa | grep freetype
没有的话编译freetype
这里下载
./configure --prefix=/usr/local/freetype
make && make install 即可,没有花头
2、检查libjpeg是否安装
rpm -qa | grep libjpeg
没有的话编译libjpeg
...
分类:
系统相关 时间:
2014-07-18 11:10:56
阅读次数:
256