device

Docker container can't see a serial port device

泪湿孤枕 提交于 2019-11-29 09:33:19
问题 I'm trying to run a Docker container with access to a serial port on the host. Here is what I did: I used a Mac Installed drivers on the host (http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41) Plugged in the device Ran ls /dev/t* that returned /dev/tty.usbserial - so it worked Ran the container, docker run -it --privileged -v /dev:/dev node:4.4.0 /bin/bash , and then ls /dev/t* inside the container which didn't return the /dev/tty.usbserial device... I played a lot with

devcon disable cannot disable device not found

Deadly 提交于 2019-11-29 08:35:04
问题 I'm on Windows 8.1 trying to disable my clickpad programatically. I've installed the correct x64 bit version of devcon as noted here. I can find the correct device but devcon disable with the same parameters fails. PS C:\...\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64> .\devcon.exe disable 'ACPI\SYN1ECA*' ACPI\SYN1ECA\4&22077A96&0 : Disable failed No matching devices found. Which is rather confusing. It obviously finds the right device, but then reports "No matching devices found".

How do you get the current battery level in .NET CF 3.5?

℡╲_俬逩灬. 提交于 2019-11-29 05:18:40
How - or what's the best way - to retrieve the device's current battery level in .NET CF 3.5 on Windows Mobile 5 and 6? Noldorin I think you want to use the Microsoft.WindowsMobile.Status namepsace (specifically the SystemState class. using Microsoft.WindowsMobile.Status; ... BatteryLevel batteryLevel = SystemState.PowerBatteryStrength; BatteryState batteryState = SystemState.PowerBatteryState; See this post for the full code sample. You probably want the State Notification Broker class that Noldorin is recommending. I don't think it gives you very fine grain information. You get information

Sharing devices (webcam, USB drives, etc) with Docker

淺唱寂寞╮ 提交于 2019-11-29 02:58:30
I have a need to share specific devices from /dev on my host Linux machine with my docker containers. The --privileged flag works for sharing any devices in /dev that are present at the time docker run is called, but any subsequently added or removed devices do not propagate into the container. I tried docker run -v=/dev:/dev ... but that ended up screwing with the permissions and ownership of files like /dev/pts, leading to the host machine to not be able to create new psuedo-terminals. I also tried the --device flag, but that doesn't allow you to share a device that doesn't yet exist.

How to get a device identifier using Phonegap

岁酱吖の 提交于 2019-11-29 02:03:31
I need to get any number, serial, key or whatever to identify every device where my phonegap app is running, I think uuid also changes when the app updates so it wouldn't work for me. The scenario here is that the user can synchronize data from the app, so I need to know which device has synchronized and which has not, or if it needs to update new data that maybe others devices have already done, etc any ideas? <script type="text/javascript" charset="utf-8"> document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var element = document.getElementById(

Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

感情迁移 提交于 2019-11-29 01:46:59
问题 I'm getting "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" error while installing the application on my device today. It is working fine till yesterday, today only im facing this problem. I have deleted some files on my SD card, but still facing the issue. I'm sure it is not the issue with the space on SD card. Can anybody suggest how to resolve this. --nehatha 回答1: It got resolved by having android:installLocation="preferExternal" for <manifest> tag of manifest file. Like below: <

ImageView displaying in layout but not on actual device

别说谁变了你拦得住时间么 提交于 2019-11-28 22:40:06
I have an ImageView that I want to display matching the full width of the device, I realized that like this: <ImageView android:id="@+id/home_bar_newvault" android:layout_width="wrap_content" android:layout_height="40dp" android:scaleType="centerCrop" android:layout_alignParentBottom="true" android:src="@drawable/home_bar" /> The home_bar is a PNG image file with the following dimensions: 2399x254. When I choose to view the Graphical Layout of the UI it displays the imageview correctly at the bottom of the activity. However, when I start the application on my device it won't display the

How to detect a mobile device manufacturer and model programmatically in Android?

耗尽温柔 提交于 2019-11-28 22:39:39
问题 I want to find device specification of a mobile phone for examples, the device manufacturer, model no ( and may be types of sensors in the device, wifi chipset etc..). I want to get the device manufacture/model number (eg. Samsung GT-I9100 i.e Galaxy S2) programmatically. The manufacture/model number is also used in Google Play when installing an app. I want to use this information to make some configuration changes in my hardware dependent app (for eg. power measurement). 回答1: You can get as

VirtualBox下Centos6 配置eth0 提示Device does not see...

荒凉一梦 提交于 2019-11-28 20:33:15
故障现象 重启网络: service network restart 得到以下提示信息: Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [ FAILED ] 解决问题的过程 运行ifconfig命令查看网卡设备: ifconfig -a 我的到了以下信息: 只出现了eth1而没有出现eth0, 然后通过查看虚拟机的网卡配置,我们可以得到网卡的mac地址: 而后通过查看 /etc/sysconfig/network-scripts/ 文件夹下的网卡配置: ll /etc/sysconfig/network-scripts/ | grep "ifcfg-" 我发现可以能得到ifcfg-eth0的信息: 尝试把ifcfg-eth0重命名成ifcfg-eth1,并且把文件里的 DEVICE 参数值从 eth0 改成 eth1 ,重启网络。至此,问题搞定。 反思和总结 Centos网络配置文件 RedHat系列的linux所有有关网络的配置文件,都放在了 /etc/sysconfig

Looking for experiences on the Apple MFi program registration process [closed]

落花浮王杯 提交于 2019-11-28 20:25:23
I'm working with a group of friends on a small electronic device. We're getting promising results with the prototype and we're very excited about releasing it into the market. We would love to implement our device as an iphone external accessory and I'm trying to gather reliable information. Everything looks pretty confusing though. The proper way to introduce an iphone peripheral into the market seems to be through the Mfi (Made for iphone) program. These are the facts: We have limited resources and we would like to know more about the associated costs of getting approved by Apple. If we