摘要: Please have a look over here :)http://stackoverflow.com/questions/4256107/running-bash-commands-in-pythonMainlyvim /tmp/call.pyDon't useos.system. Usesubprocess.Like in your case:#bashCommand ="cwm --rdf test.rdf --ntriples > test.nt"bashCommand ="ls"import subprocess#proc 阅读全文
posted @ 2013-04-15 18:11 spaceship9 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Here's what i got from the factory:To get more information: http://www.kuaipan.cn/file/id_104438662447499411.htmMQ-5传感器简介:MQ-5气体传感器所使用的气敏材料是在清洁空气中电导率较低的二氧化锡(SnO2)。当传感器所处环境中存在可燃气体时,传感器的电导率随空气中可燃气体浓度的增加而增大。使用简单的电路即可将电导率的变化转换为与该气体浓度相对应的输出信号。 MQ-5气体传感器对丁烷、丙烷、甲烷的灵敏度高,对甲烷和丙烷可较好的兼顾。这种传感器可检测多种可燃性气体,特别是天 阅读全文
posted @ 2013-04-15 02:02 spaceship9 阅读(1499) 评论(0) 推荐(0) 编辑
摘要: this tutorial is very neat.Mine is like this :While the one from sparkfun is like this:Anyway their circuit are almost the same.(The blue one's better for safty )So the codes are functional for those two different coloured board.BMP085 PinPin FunctionVCCPower (1.8V-3.6V)GNDGroundEOCEnd of conver 阅读全文
posted @ 2013-04-14 22:06 spaceship9 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: Nail a marker here:http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/definingviews.htmlTo Be Continued--------------------------------------------TIME LINE 21:42 2013 04 13--------------------------------------------------------http://pyramid.readthedocs.org/en/1.4-branch/narr 阅读全文
posted @ 2013-04-13 21:43 spaceship9 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Here's something I made to help you understand Pyramid well.You may need to read very specific tutorials in details in those 5 steps:1. A Hello World! using Pyramid web frameworkhttp://docs.pylonsproject.org/projects/pyramid/en/latest/My knowledge and experience:Raju's blog is really helpful 阅读全文
posted @ 2013-04-13 21:17 spaceship9 阅读(438) 评论(0) 推荐(0) 编辑
摘要: How to record your desktop and webcam, or stream them?Here's the solution:Go visit:https://help.ubuntu.com/community/Webcam#VLCHere's some key references:VLC is neatIt's better to use the VLC GUI interface to operate.3.2. VLC3.2.1. Using the GUIIn VLC, choose 'Open capture device' 阅读全文
posted @ 2013-04-12 14:02 spaceship9 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 我购买的是这个模块:6.45元/个先解释一下这个模块的原理:人体红外线感应模块工作原理一、红外光谱 人们肉眼看得见的光线叫可见光,可见光的波长为380~750nm。可见光的波长从短到长依次排序是紫光→蓝光→青光→绿光→黄光→橙光→红光。波长比红光更长的光,叫做红外光,或叫做红外线(红外)。红外光是人们无法用肉眼看见的光线。民 部分光线的波长分布如下: 紫光(O.40~0.43μm);蓝光(0.43~0.47μm);青光(O.47~0.50μm);绿光(0.50~0.56μm);黄光(0.56~0.59μm);橙光(0.59~0.62μm);红光(0.62~0.76μm);红外(0.7... 阅读全文
posted @ 2013-04-12 13:51 spaceship9 阅读(7558) 评论(0) 推荐(1) 编辑
摘要: I am proud to be a former Archlinux user. And Am To Be. hahaTo set up your wireless drivers or modules, this page will be helpful. https://wiki.archlinux.org/index.php/Wireless_Setupusuallypi@raspberrypi ~ $ dmesg | grep rtl8187[14856.735462] rtl8187: Customer ID is 0xFF[14856.738270] Registered led 阅读全文
posted @ 2013-04-11 21:19 spaceship9 阅读(591) 评论(1) 推荐(1) 编辑
摘要: We will need to read those references if we want to go further.Webcam streaming with Raspberry PiandHow To : Stream A Webcam From The Raspberry PiHow To : Stream A Webcam From The Raspberry Pi Part 2and the easiest way:How To: Raspberry PI Web Cam Serverget some key words from the article above:just 阅读全文
posted @ 2013-04-11 20:25 spaceship9 阅读(557) 评论(0) 推荐(0) 编辑
摘要: Tom Igoe's page on stepper motors.Stepper MotorsA stepper motor is a motor controlled by a series of electromagnetic coils. The center shaft has a series of magnets mounted on it, and the coils surrounding the shaft are alternately given current or not, creating magnetic fields which repulse or 阅读全文
posted @ 2013-04-11 13:02 spaceship9 阅读(409) 评论(0) 推荐(0) 编辑