我正在考虑使用Raspberry Pi评估用于编程ARM芯片的工具链,我想运行一个模拟Raspberry环境的Vagrant盒子.
有谁知道这样的东西是否可用?(我在网上搜索了一个解决方案,但我可能会问Google错误的问题:)
我最近玩过不同版本的Python 2.7,最后我打破了PyCharm.首先,我已经多次卸载并重新安装了Python和Pycharm而没有运气.
我觉得设置工具是主要问题,但我似乎无法正确卸载它...
下面是Pycharm给出的错误,我看到尝试手动修复setuptools的类似错误.
有人知道我的环境有什么问题吗?
Install package failed.
The following command was executed:
c:\users\ask\appdata\local\temp\tmpf3zyjdpycharm-management\setuptools-1.1.5\setup.py install
The error output of the command:
Traceback (most recent call last):
File "c:\users\ask\appdata\local\temp\tmpf3zyjdpycharm-management\setuptools-1.1.5\setup.py", line 204, in <module>
dist = setuptools.setup(**setup_params)
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\ask\appdata\local\temp\tmpf3zyjdpycharm-management\setuptools-1.1.5\setuptools\command\install.py", line 73, in run
self.do_egg_install()
File "c:\users\ask\appdata\local\temp\tmpf3zyjdpycharm-management\setuptools-1.1.5\setuptools\command\install.py", line 82, in do_egg_install
easy_install = self.distribution.get_command_class('easy_install')
File "c:\users\ask\appdata\local\temp\tmpf3zyjdpycharm-management\setuptools-1.1.5\setuptools\dist.py", line 363, in get_command_class
self.cmdclass[command] = …Run Code Online (Sandbox Code Playgroud) 有没有办法让浏览器知道其附近的iBeacon设备?
与HTML5 Geolocation的工作方式类似......
如果不是,这可以通过浏览器插件实现,可以提供javascript消费的细节吗?
我偶然发现了一个随机代码ID生成器,我无法弄清楚它是如何工作的.
SELECT TOP (5) c1
FROM
(
VALUES
('A'), ('B'), ('C'), ('D'), ('E'), ('F'), ('G'),
('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9')
) AS T1(c1)
ORDER BY ABS(CHECKSUM(NEWID()))
Run Code Online (Sandbox Code Playgroud)
我看过以下内容:
如果我然后尝试做"2089106226的订单",它显然会失败
那么什么是"ABS(CHECKSUM(NEWID())"返回以及这种类型的排序叫什么?
我已将ESP8266 Wifi连接到串行模块到串口转USB连接器.
我可以使用以下Python脚本和设置连接到ESP8266:
import serial
def echoCommand(cmd,expected_return,halt_on_fail,tOut = timeoutPeriod) :
ser.write(cmd + '\r\n')
if(echo_local_command):
print('Sent --> '+cmd)
if not echoFind(expected_return,tOut) and (halt_on_fail):
print(cmd+" failed")
sys.exit()
def echoFind(expected_return,tOut):
timeoutTime = datetime.datetime.now() + datetime.timedelta(0,tOut)
while datetime.datetime.now() < timeoutTime:
while ser.inWaiting():
ret = ser.readline().rstrip()
print ret
time.sleep(0.1)
if expected_return in ret:
return True
return False
ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=5)
echoCommand('AT+RST', 'ready', True)
Run Code Online (Sandbox Code Playgroud)
上面的工作就像一个魅力,但由于某种原因,我不能在像minicom,GTKTerm,Putty这样的终端中做同样的事情.(运行Ubuntu.任何建议的终端都会显示CR和LF?)
我使用相同的波特率和设置,但没有运气.我试图切换硬件和软件流量控制并检查要添加的CR和LF.
任何想法为什么这不起作用?
我注意到如果我打开minicom,然后运行Python脚本,ESP8266的输出会以minicom显示并发送问题.(脚本失败导致minicom拦截传入的消息)
arduino ×1
browser ×1
geolocation ×1
ibeacon ×1
iot ×1
javascript ×1
pycharm ×1
python ×1
python-2.7 ×1
raspberry-pi ×1
raspbian ×1
serial-port ×1
setuptools ×1
sql ×1
sql-order-by ×1
sql-server ×1
ubuntu ×1
vagrant ×1
wifi ×1