/**
* 计算产生校验码
*
* @param data
* 需要校验的数据
* @return
*/
public static String Make_CRC(byte[] data) {
byte[] buf = new byte[data.length];// 存储需要产生校验码的数据
for (int i = 0; i < da...
分类:
编程语言 时间:
2015-05-29 12:00:18
阅读次数:
174
/*Name:uboot之makefile分析Data:2015-3-3Author:suj_un*/Uboot之makefile分析编译uboot,内核或者其他软件只需要执行make命令就可以生成可执行文件。执行命令后是怎么工作的?要知道这个就要看makefile了。现在就来揭开这玩意神秘的面纱。...
分类:
其他好文 时间:
2015-05-29 11:44:57
阅读次数:
130
经过上一篇,发现2.6.31版本的补丁不能正常运行(还未找到原因),现改用2.6.33版本:kernel:linux-2.6.33.9patch:patch-2.6.33.9-rt解压并打好补丁后,按照如下步骤进行:1.配置内核make mrprobe //清除环境变量,即清除配置文件make me...
分类:
其他好文 时间:
2015-05-29 00:22:03
阅读次数:
240
方式一: 在mac上安装nginx,依次安装对应的依赖pcre./configure --prefix=/usr/local/pcre-8.37 --libdir=/usr/local/lib/pcre --includedir=/usr/local/include/pcre make && mak...
分类:
系统相关 时间:
2015-05-28 22:54:07
阅读次数:
265
学习Logistic Regression的笔记与理解1.首先从结果往前来看下how logistic regression make predictions。设我们某个测试数据为X(x0,x1,x2···xn),Θ(θ0,θ1,θ2,···θn)为我们的学习算法所学到的参数,那么写成向量的话就变成...
分类:
其他好文 时间:
2015-05-28 21:13:02
阅读次数:
157
需求:使用Python操控ZooKeeper
1.由于python客户端依赖c的客户端所以要先安装c版本的客户端
cd zookeeper-3.4.5/src/c
./configure
make
make install
2.测试c版本客户端,需要gcc和python-devel
./cli_mt localhost:2181
Watcher SESSION_E...
分类:
编程语言 时间:
2015-05-28 19:58:54
阅读次数:
3991
1.修改build-libpcap.sh libpcap版本号2.执行脚本编译出现问题:2.发现configure过后,Makefile存在问题实际configure的-arch armv7s版本 不知为何出错。删除红框中部分make -j2 && make install通过!3.附上config...
分类:
移动开发 时间:
2015-05-28 19:50:03
阅读次数:
229
Undefinedvariable:errorMsg[dashboard.php:150→make_status_of_zbx()→get_status()→CZabbixServer->isRunning()→CZabbixServer->connect()in/data/webdata/zabbix/include/classes/server/CZabbixServer.php:270]Undefinedvariable:errorMsg[dashboard.php:150→mak..
分类:
其他好文 时间:
2015-05-28 14:19:26
阅读次数:
296
Many system administrators make a practice of using GNU Screen or tmux to manage jobs running in the terminal. If you have a long-running job that you...
分类:
其他好文 时间:
2015-05-28 14:02:19
阅读次数:
146
用./configure、make、make install安装完libev后,写一个简单程序server.c,编译,gcc server.c -o server lev。
产生如下错误:error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directo...
分类:
其他好文 时间:
2015-05-28 09:45:31
阅读次数:
306