在前面的一节中,我们已经使用arduino创建了一个publisher节点,接下来将会用arduino来创建一个subscriber,接收电脑传去的信息并做出相应的反应。 1启动Arduino 将arduino开发板连接到电脑的usb口,在arduino IDE中进行设置。 选择Tools->Boa ...
分类:
其他好文 时间:
2017-08-20 12:33:39
阅读次数:
248
Scrapy中使用xpath时,根据xpath的语法不一定能得到想要的。 如下面的html源码: 要得到img_1000后面picture的source路径,通过xpath的语法我没有得到直接取到的方法,折中办法参考:http://www.cnblogs.com/Garvey/p/6697162.h ...
分类:
其他好文 时间:
2017-08-20 10:19:47
阅读次数:
211
Scrapy抓取数据输出到CSV文件,使其按照items.py中定义的字段的顺序排列输出。 ...
分类:
其他好文 时间:
2017-08-20 00:48:06
阅读次数:
203
这次去WZ出差,还是很累的,之前一年多没有搞嵌入式了,更重要的是之前没有接触太深刻GPIO的用法等等原因,导致很心累。 必须掌握的技能: (1)SPI和IIC总线,模拟和专用外设两种方式,他们的重要性不言而喻; (2)GPIO的用法,基本中的基本; (3)时序; 时序是很重要的概念,无论是在裸机还是 ...
分类:
其他好文 时间:
2017-08-19 18:35:43
阅读次数:
148
A lot of things, we can be touched, but we can not shed tears. 很多事情,我们可以感动,却不能流泪。 Sometimes I was touched by the scenes I saw, that often made me thin ...
分类:
其他好文 时间:
2017-08-19 14:09:58
阅读次数:
148
1、Apache worker/prefwork模式说明 在linux中,我们可以用httpd-l 查看安装的模块是prefork模式还是worker模式 [root@LAMP ~]# /application/apache/bin/apachectl -l|egrep "worker|prefok ...
分类:
其他好文 时间:
2017-08-17 10:34:52
阅读次数:
240
老牛帮助 1.环境配置 ideaiui:2017.02 tomcat:9 2.配置过程 1. 建立spring mvc 选择javaee 环境,保留web.xml文件,然后把要导入项目H:\百度云同步盘\框架资料\springMvc\跟我学spring-mvc源码\spirngmvc-chapter... ...
分类:
Web程序 时间:
2017-08-16 15:33:32
阅读次数:
175
【059-Spiral Matrix II(螺旋矩阵II)】 【LeetCode-面试算法经典-Java实现】【全部题目文件夹索引】 原题 Given an integer n, generate a square matrix filled with elements from 1 to n2 i ...
分类:
编程语言 时间:
2017-08-15 15:20:04
阅读次数:
170
1.SpinEdit 常用设置 最大值:SpinEdit.ProperTies.MaxValue=41; 最小值:SpinEdit.ProperTies.MinValue=37; 无小数:SpinEdit.ProperTies.IsFloatValue=False; 增长步进:SpinEdit.Pr ...
分类:
其他好文 时间:
2017-08-15 12:35:57
阅读次数:
258