上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 76 下一页
摘要: 修改 /etc/fstab 启动自动mount tmpfs /var/iot tmpfs defaults,size=10M 0 0 阅读全文
posted @ 2019-05-29 21:15 ahuo 阅读(923) 评论(0) 推荐(0) 编辑
摘要: /home/pi/.config/lxsession/LXDE-pi/autostart 启动计算器 @galculator 浏览器 @chromium-browser http://127.0.0.1 阅读全文
posted @ 2019-05-29 16:25 ahuo 阅读(566) 评论(0) 推荐(0) 编辑
摘要: sudo vi /etc/lightdm/lightdm.conf 取消其中的注释 #xserver-command=X 并修改为 xserver-command=X -s 0 -dpms -s # –设置屏幕保护不启用dpms 关闭电源节能管理重启树莓派 sudo reboot 阅读全文
posted @ 2019-05-29 16:17 ahuo 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 在 /etc/pip.conf 添加如下内容,启用源 [global] extra-index-url=https://www.piwheels.org/simple 下载后 pip install **.whl 安装 国内源: 新版ubuntu要求使用https源,要注意。 清华:https:// 阅读全文
posted @ 2019-05-29 14:23 ahuo 阅读(4683) 评论(0) 推荐(0) 编辑
摘要: vi /etc/init.d/sss sudo update-rc.d sss defaults 阅读全文
posted @ 2019-05-23 17:09 ahuo 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 树莓派系统包含了18b20的驱动(1-wire interface),我们只需要将其开启即可。有两种开启方式: 方式一:输入raspi-config命令,然后在interfacing options –> 1-wire中设为enable。方式二:在/boot/config.txt文件中,添加dtov 阅读全文
posted @ 2019-05-16 09:09 ahuo 阅读(195) 评论(0) 推荐(0) 编辑
摘要: sudo raspi-configInterfacing Options -》 VNC1、停止VNC窗口: vncserver -kill:1 2、修改密码 vncpasswd 3、重启服务 service vncserver restart 阅读全文
posted @ 2019-05-15 15:53 ahuo 阅读(186) 评论(0) 推荐(0) 编辑
摘要: sudo pip install rpi.gpio 阅读全文
posted @ 2019-05-15 13:00 ahuo 阅读(2528) 评论(0) 推荐(0) 编辑
摘要: LCD和hdmi切换 /home/LCD-show-master 目录下 LCD-hdmi LCD35-show 时区修改 sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime date -R wifi配置 cat /etc/wpa_sup 阅读全文
posted @ 2019-05-14 22:18 ahuo 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: nohup python test.py > nohup.out 2>&1 & 发现nohup.out中显示不出来python程序中print的东西。 这是因为python的输出有缓冲,导致nohup.out并不能够马上看到输出。 python 有个-u参数,使得python不启用缓冲。 nohup 阅读全文
posted @ 2019-04-22 14:07 ahuo 阅读(877) 评论(0) 推荐(0) 编辑
摘要: mod 取余是用函数mod(numer1,number2),其返回的值为其余数值 如:mod(id,2) = 1 返回id号是奇数的id Email后缀提取 emailorg=RIGHT(EMail,LENGTH(EMail)- INSTR(EMail,'@')) 阅读全文
posted @ 2019-04-19 09:47 ahuo 阅读(140) 评论(0) 推荐(0) 编辑
摘要: select ('123a' REGEXP '[^0-9.]'); --‘123a'中含有字符'a' 输出结果为1 mysql中常量true输出为1 false输出为0非数字和字母SELECT * from s WHERE (name1 REGEXP '[A-Za-z0-9]')=0 阅读全文
posted @ 2019-04-19 09:17 ahuo 阅读(7479) 评论(0) 推荐(0) 编辑
摘要: 不支持的 select * into order_new from orders 改为 Create table order_new(select * from orders) 阅读全文
posted @ 2019-04-18 10:56 ahuo 阅读(485) 评论(0) 推荐(0) 编辑
摘要: http://tushare.org/ https://tushare.pro/ 阅读全文
posted @ 2019-03-28 11:23 ahuo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: function main(splash, args) splash.images_enabled = false //不加载图片 assert(splash:go(args.url)) assert(splash:wait(1.5)) return { html = splash:html(), png = splash:png(), har = sp... 阅读全文
posted @ 2019-03-27 14:16 ahuo 阅读(382) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 76 下一页