摘要: 模块以Email为例: 1、执行build目录下的脚本文件envsetup.sh $ source ./build/envsetup.sh 2、选择版本(user为用户版本 eng为工程版本) $ lunch You're building on Linux Lunch menu... pick a 阅读全文
posted @ 2017-10-18 16:56 LeeAaron 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 1、打开 xxx@ubuntu:~$ sudo vim /etc/resolvconf/resolv.conf.d/base 2、输入以下DNS,保存退出。 nameserver 8.8.8.8 nameserver 114.114.114.114 3、更新resolv.conf文件 xxx@ubu 阅读全文
posted @ 2017-10-16 22:00 LeeAaron 阅读(2958) 评论(2) 推荐(0) 编辑
摘要: 1、打开配置文件: $ sudo vim /etc/network/interfaces 2、修改文件内容: # This file describes the network interfaces available on your system # and how to activate the 阅读全文
posted @ 2017-10-10 17:22 LeeAaron 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1、在保证能上网的前提下,安装samba软件包,中途出现是否执行,一直点击回车键 #sudo apt-get install samba #sudo apt-get install smbclient 2、配置samba服务 #sudo vim /etc/samba/smb.conf 在文件结尾添加 阅读全文
posted @ 2017-03-02 14:18 LeeAaron 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 正常来说,Linux在识别网卡时第一张会是eth0,第二张才是eth1。有时候我们使用虚拟机克隆技术后网卡的信息就会改变,新克隆出来的虚拟主机网卡名字可能变为eth1.无论我们怎么修改都无法改变,这就对我们使用N台虚拟机进行HA-heartbeat实验时造成了困扰。 在这里成这样是因为复制系统的过程 阅读全文
posted @ 2017-01-04 16:33 LeeAaron 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: //快速排序法 void QuickSort(int *a, int left, int right) { int i = left; int j = right; int k = a[left]; if (i >= j) { return; } while (i = a[i])) { i++; } a[j] = a[i]; } a[i] = k; ... 阅读全文
posted @ 2016-09-28 17:35 LeeAaron 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: 今天在网上看程序时忽然发现别人的函数参数中有省略号,甚是吃惊,发现其函数中使用了va_start,经过查资料大概明白其用法,个人觉得很好用! 阅读全文
posted @ 2016-07-06 16:58 LeeAaron 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 本文章转自:http://blog.csdn.net/wolfliuming/article/details/5875625磁卡上的数据记录是按照IS07811的标准规定,有三个磁道。一磁道的数据记录密度为210bpi,最多可记录79个字母和数字,每个字符由7位编码.... 阅读全文
posted @ 2016-07-05 16:51 LeeAaron 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: “流言”银行卡、公交卡、电话卡都不能和手机放在一起,因为手机工作时的电磁波会把卡消磁的。 “真相”日常生活中可能接触到各种卡,比如公交卡、二代身份证、食堂饭卡、小区门禁卡、IC电话卡、银行卡等等。其中只有背面带有磁条的磁卡才有可能被消磁。没有磁条的卡,比如公交卡、... 阅读全文
posted @ 2016-07-05 16:48 LeeAaron 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: 1、限幅滤波法(又称程序判断滤波法)A、名称:限幅滤波法(又称程序判断滤波法)B、方法:根据经验判断,确定两次采样允许的最大偏差值(设为A),每次检测到新值时判断:如果本次值与上次值之差A,则本次值无效,放弃本次值,用上次值代替本次值。C、优点:能有效克服因偶然因素引... 阅读全文
posted @ 2016-06-24 11:10 LeeAaron 阅读(797) 评论(0) 推荐(0) 编辑