device

How to create a virtual audio device

点点圈 提交于 2019-12-05 11:52:59
I am working on a project in C# for which I need to create several virtual audio devices. Later I will be doing some switching with them on my own. Does maybe anyone know a nice library that would allow me to do it problematically on my own. To create instances of audio devices. (commercial is OK, but free .dll would be better) Another solution, that would be an optional solution, is to find a software that creates virtual audio devices according to my desires. Mark Heath Unfortunately, you won't be able to create virtual audio devices in C#. You need to create windows device drivers using the

How to page multiple plots in R in separate jpeg files?

a 夏天 提交于 2019-12-05 11:43:23
I'd like to plot multiple plots in separate bitmap files using the file name pattern (for example, for JPEG) file.%03d.jpg in R. I tried using something like: somevar <- 1 jpg(paste(sep='',filename,'.%03d.jpg')) while(somevar <= n) { plot(data[somevar]) dev.new() somevar <- somevar + 1 } dev.off() but it creates one .jpg file and several Rplotnnn.pdf files. How can I change the default device to jpg , and use the custom file name pattern? I think this should work somevar <- 1 while(somevar <= n) { jpg(sprintf("%s%03.jpg", filename, somevar)) plot(data[somevar]) dev.off() somevar <- somevar + 1

Android Studio - Can not open device monitor

爷,独闯天下 提交于 2019-12-05 10:15:10
I just downloaded Android Studio and it seems to import my existing Eclipse project well. However, if I try to open "Android Device Monitor" I get the message "An error has occurred" with a reference to a log file. My log file is included underneath. I am not sure why there is a reference to "Eclipse" int it? Anyhow, all in all, I have no idea where to go from here !SESSION 2015-01-05 04:00:15.329 ----------------------------------------------- eclipse.buildId=unknown java.version=1.8.0_25 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command

Restrict sales of an app by specific devices?

我们两清 提交于 2019-12-05 08:40:42
Is it possible to restrict sales of an app on the Android Market by specific devices, or by features of a device (screen resolution, processor, diskspace etc..)? I know that I'm going to be bombarded by people saying that if you design your app well, it should be able to run on any size device. That's all fine and well, but there are reasons that you might still want to restrict by feature set. One reason that comes readily to mind is screen resolution. Clearly, not all apps work on all screen sizes, especially if you have a lot of images that have been crafted to take full advantage of a

开源监控工具Hyperic 的 Network Device配置过程

白昼怎懂夜的黑 提交于 2019-12-05 04:36:15
Hyperic中,Network Device 设备插件可以监控基于SNMP协议(使用 SNMP GET请求数据)的设备,包括主机,路由器,风扇,温湿度仪器等。当然也可以接收 SNMP TRAP事件。 Hyperic 资源模型 Network Device 对应的是 Hyperic 中的 Platform (平台) Network Device Interface 对应的是 Hyperic 中的 platform service(平台服务) Network Device Interface 从属于 Network Device; 配置 有如下配置选项,先上一个图: 具体如下: 属性 说明 interface. index 可选择, ifDescr,ifName,ifAlias,ifIndex snmpIp SNMP代理的 IP 地址,通常为被监控设备的IP地址 snmpPort SNMP代理的端口,通常为被监控设备的端口 snmpTransport SNMP协议,TCP 或 UDP snmpVersion SNMP版本,当前支持 v2c, v1, v3 snmpCommunity SNMP Community snmpUser SNMP 用户名 (v3 only) snmpPassword SNMP 口令 (v3 only) snmpAuthType SNMP 授权类型(v3

linux / libusb get usb device path

流过昼夜 提交于 2019-12-05 04:00:55
I use libusb to enumerate over a few usb-devices. Now i like to get the "device-path". I think it's not called usb device-path, because i was not successful with google. If i connect a usb-device with linux, i get a message in dmesg , here are a few examples for such a "device-path" with an usb temperature sensor (something like this ): Directly to a usb port: [68448.099682] generic-usb 0003:0C45:7401.0056: input,hidraw1: USB HID v1.10 Keyboard [RDing TEMPer1V1.2] on usb-0000:00:12.0-1/input0 => 12.0-1 Directly to another port: [68560.853108] generic-usb 0003:0C45:7401.0058: input,hidraw1: USB

How can I make my device vibrate?

末鹿安然 提交于 2019-12-05 03:57:41
I'm making a game in Flash for Android with AS3. I want the user to know that he pressed a button by making the device vibrate for a brief second. Can someone explain to me how I can make this happen? Do I need to import a specific class and what should the code look like? Thanks in advance! To use the Vibration extension, an AIR application does the following: Checks if the extension is supported by calling isSupported. Causes the device to vibrate by calling vibrate(), specifying the duration of the vibration in milliseconds as a parameter. var vibe:Vibration; if (Vibration.isSupported) {

Resolve Windows device path to drive letter

五迷三道 提交于 2019-12-05 03:34:05
How do you resolve an NT style device path, e.g. \Device\CdRom0 , to its logical drive letter, e.g. G:\ ? Edit: A Volume Name isn't the same as a Device Path so unfortunately GetVolumePathNamesForVolumeName() won't work. Hopefully the following piece of code will give you enough to solve this - after you've initialised it, you just need to iterate through the collection to find your match. You may want to convert everything to upper/lower case before you insert into the collection to help with lookup performance. typedef basic_string<TCHAR> tstring; typedef map<tstring, tstring>

Best practices for targetting a wide range of devices and screen sizes

梦想的初衷 提交于 2019-12-05 02:48:46
问题 As you know android today is many versions many constructors, many screen sizes,... it's quite difficult for developers today to write programs that targets a big part of devices. What would be THE developer must-know practices for this ? tips for fluid layouts. "standards" for developing on any android version. ... Any other ideas ? 回答1: For Layouts First, you should start off by reading the official Supporting Multiple Screens Best Practices. There are a lot of good tips there, as well as a

Virtual parallel port emulator

我们两清 提交于 2019-12-05 02:26:07
In my computer networks course we are supposed to learn parallel port programming by using the native registers (like using outportb like commands). I don't have a parallel port (because I live in 2011) but want to practice the programs (I installed the old turboc 3 IDE using dosbox). Is there a program which emulates parallel ports like this program emulates serial ports? Since the environment is fake anyway, i.e. you don't have an actual port to play with, you could just as well emulate the port functionality in your program. Here's how to do it in Windows using Structured Exception Handling