上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 68 下一页
摘要: #include #include using namespace std; int main () { vector foo (3,100); // three ints with a value of 100 vector bar (5,200); // five ints with a value of 200 foo.swap(bar);... 阅读全文
posted @ 2018-12-12 13:06 anobscureretreat 阅读(339) 评论(0) 推荐(0)
摘要: 添加一个ubuntu的开机启动服务 分为以下几个步骤: 1)新建一个脚本文件 new_services.sh 2)设置权限 3)将脚本放置到启动目录下 4)将脚本添加到启动脚本 这里90表明一个优先级,越高表示执行的越晚。 移除ubuntu开机脚本 阅读全文
posted @ 2018-12-12 11:28 anobscureretreat 阅读(713) 评论(0) 推荐(0)
摘要: 或者 阅读全文
posted @ 2018-12-11 20:53 anobscureretreat 阅读(2732) 评论(0) 推荐(0)
摘要: ssh -p 8022 higgs@192.168.43.1 阅读全文
posted @ 2018-12-10 18:18 anobscureretreat 阅读(970) 评论(0) 推荐(0)
摘要: sudo apt-get install bochs 以后接着安装bochs-x 阅读全文
posted @ 2018-12-10 15:25 anobscureretreat 阅读(204) 评论(0) 推荐(0)
摘要: 这是未安装bochs-x的缘故 解决方案: sudo apt-get install bochs以后接着安装bochs-x. sudo apt-get install bochs-x 2.bx_dbg_read_linear: physical memory read error (phy=0x00 阅读全文
posted @ 2018-12-10 15:25 anobscureretreat 阅读(1505) 评论(0) 推荐(0)
摘要: sudo apt-get install bochs-x 阅读全文
posted @ 2018-12-10 15:19 anobscureretreat 阅读(549) 评论(0) 推荐(0)
摘要: 下载:http://www.oldlinux.org/Linux.old/bochs/ 安装bochs 运行 界面: 阅读全文
posted @ 2018-12-09 23:01 anobscureretreat 阅读(348) 评论(0) 推荐(0)
摘要: 获取result时,会阻塞,如果p里面执行的脚本时间很长,会一直等待执行完毕,然后打印出result。 阅读全文
posted @ 2018-12-09 20:17 anobscureretreat 阅读(1623) 评论(0) 推荐(0)
摘要: 能ping通返回1,不能返回0 阅读全文
posted @ 2018-12-09 20:12 anobscureretreat 阅读(761) 评论(0) 推荐(0)
摘要: 飞控是由传感器部分(即惯性导航模块,IMU)和控制部分MCU组成 四轴飞行器的传感器就是用来感知飞行器在空中的姿态和运动状态,这有个专有名词叫做运动感测追踪,英文Motion Tracking。 在消费电子市场,运动感测技术主要有四种基础运动传感器,下面分别说明其进行运动感测追踪的原理。 加速器(G 阅读全文
posted @ 2018-12-09 18:05 anobscureretreat 阅读(1180) 评论(0) 推荐(0)
摘要: 空心杯电机(coreless motor)属于直流、永磁、伺服微特电机。 空心杯电机在结构上突破了传统电机的转子结构形式,采用的是无铁芯转子。 空心杯电机具有十分突出的节能、控制和拖动特性。 空心杯电机分为有刷和无刷两种,有刷空心杯电机转子无铁芯,无刷空心杯电机定子无铁芯。 如下图,线圈中没有铁心。 阅读全文
posted @ 2018-12-09 17:55 anobscureretreat 阅读(2099) 评论(0) 推荐(0)
摘要: pip install -U scikit-learn pip install matplotlib pip install Scipy 阅读全文
posted @ 2018-12-09 00:22 anobscureretreat 阅读(130) 评论(0) 推荐(0)
摘要: 赋值(共用一个对象) 浅拷贝(新建对象) 浅拷贝(只拷贝第一层内容) 深拷贝 阅读全文
posted @ 2018-12-08 13:26 anobscureretreat 阅读(371) 评论(0) 推荐(0)
摘要: # lst = ["篮球","排球","乒乓球","足球","电子竞技","台球"] # for el in lst: # lst.remove(el) # print(lst)#['排球', '足球', '台球'] 会发现删不干净 原因是:删除一个.元素的索引重新排序,for循环向后走一个,就漏掉一个删掉了索引是0的元素,然后索引是1的元素补充到索引为0的位置上,然后索引指向1,... 阅读全文
posted @ 2018-12-08 13:23 anobscureretreat 阅读(549) 评论(0) 推荐(0)
摘要: 1.切换拼音和字母 control+空格<或者直接按caps lock> 2.切换字母的大小写dd 按住shift+字母-->大写字母 3.撤销 撤销:command+z 回撤:shift+command+z 4.剪切 1.先复制目标文件 2.option+command+v 或 按住option+ 阅读全文
posted @ 2018-12-08 12:55 anobscureretreat 阅读(350) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2018-12-08 11:53 anobscureretreat 阅读(339) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2018-12-08 11:50 anobscureretreat 阅读(2289) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2018-12-08 11:45 anobscureretreat 阅读(541) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2018-12-08 11:43 anobscureretreat 阅读(139) 评论(0) 推荐(0)
摘要: "; } ?> 阅读全文
posted @ 2018-12-08 11:38 anobscureretreat 阅读(170) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-08 11:37 anobscureretreat 阅读(349) 评论(0) 推荐(0)
摘要: "35","Ben"=>"37","Joe"=>"43"); foreach($age as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo ""; } ?> 阅读全文
posted @ 2018-12-08 11:36 anobscureretreat 阅读(145) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-08 11:34 anobscureretreat 阅读(206) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-08 01:12 anobscureretreat 阅读(113) 评论(0) 推荐(0)
摘要: tcp协议:可靠的、面向连接的协议(eg:打电话)、传输效率低全双工通信(发送缓存&接收缓存)、面向字节流。使用TCP的应用:Web浏览器;文件传输程序 udp协议:不可靠的、无连接的服务,传输效率高(发送前时延小),一对一、一对多、多对一、多对多、面向报文(数据包),尽最大努力服务,无拥塞控制。使 阅读全文
posted @ 2018-12-08 01:11 anobscureretreat 阅读(233) 评论(0) 推荐(0)
摘要: 套接字socket 套接字起源于 20 世纪 70 年代加利福尼亚大学伯克利分校版本的 Unix,即人们所说的 BSD Unix。 因此,有时人们也把套接字称为“伯克利套接字”或“BSD 套接字”。一开始,套接字被设计用在同 一台主机上多个应用程序之间的通讯。这也被称进程间通讯,或 IPC。套接字有 阅读全文
posted @ 2018-12-08 01:10 anobscureretreat 阅读(174) 评论(0) 推荐(0)
摘要: test.sh 输出 阅读全文
posted @ 2018-12-07 23:58 anobscureretreat 阅读(712) 评论(0) 推荐(0)
摘要: test.sh 执行 输出 阅读全文
posted @ 2018-12-07 23:48 anobscureretreat 阅读(1718) 评论(0) 推荐(0)
摘要: test.sh 执行 输出 执行 输出 阅读全文
posted @ 2018-12-07 23:38 anobscureretreat 阅读(2397) 评论(0) 推荐(0)
摘要: test.sh 执行 输出 执行 输出 阅读全文
posted @ 2018-12-07 23:33 anobscureretreat 阅读(909) 评论(0) 推荐(0)
摘要: 创建一个文件和一个文件夹 test.sh 执行 输出 执行 输出 阅读全文
posted @ 2018-12-07 23:22 anobscureretreat 阅读(4975) 评论(0) 推荐(0)
摘要: #!/bin/bashecho "enter the name:"read filenameif test -x $filename ; then./$filenameelsesudo chmod +x $filenamels -l $filenamefi //sss.sh 运行 输出: 再次运行 阅读全文
posted @ 2018-12-07 23:13 anobscureretreat 阅读(4893) 评论(0) 推荐(0)
摘要: 没有该文件则创建,有则 ls -l 输出文件信息。 输出 阅读全文
posted @ 2018-12-07 23:00 anobscureretreat 阅读(2973) 评论(0) 推荐(0)
摘要: 快捷键 功能描述 h 光标向左移动一位 j 光标向下移动一位 k 光标向上移动一位 l ... 阅读全文
posted @ 2018-12-07 16:00 anobscureretreat 阅读(514) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2018-12-07 15:56 anobscureretreat 阅读(132) 评论(0) 推荐(0)
摘要: 输出: 阅读全文
posted @ 2018-12-07 15:52 anobscureretreat 阅读(296) 评论(0) 推荐(0)
摘要: if read -t 5 -p "please enter your name:" name then echo "hello $name ,welcome to my script" else echo "sorry,too slow" fi exit 0 输出 阅读全文
posted @ 2018-12-07 15:48 anobscureretreat 阅读(306) 评论(0) 推荐(0)
摘要: math方法: math.pi = π 值3.141592653 math.pow(2,4) = 16 2的4次方 math.sqrt(144) = 12 144开平方=12 阅读全文
posted @ 2018-12-07 15:14 anobscureretreat 阅读(181) 评论(0) 推荐(0)
摘要: 通过shell脚本对MongoDB进行自动化操作 运行写好的 ./show.sh 脚本 发现能够建立mongo链接 或者把mongo作为shell解析器: 阅读全文
posted @ 2018-12-07 15:12 anobscureretreat 阅读(942) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 68 下一页