device

How to set fake GPS location on IOS real device

自闭症网瘾萝莉.ら 提交于 2019-11-28 04:54:34
Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use 'My Fake Location'. Unfortunately, I didn't find the same app for IOS 7. Any ideas to solve my problem? Of course ios7 prohibits creating fake locations on real device. For testing purpose there are two approches: 1) while device is connected to xcode, use the simulator and let it play a gpx track. 2) for real world testing, not connected to simu, one possibility is that your app, has a special modus built in, where you set it to "playback" mode. In that mode the app has to create the

Get the full audio device name from Windows

旧城冷巷雨未停 提交于 2019-11-28 04:15:05
问题 Is there a way to get the full audio device name in Windows XP and later? I can use MIXERCAPS but the szPname member will limit to 32 characters (including NULL). For an audio device name of "Microphone (High Definition Audio Device)", I only get back "Microphone (High Definition Aud". This is due to MAXPNAMELEN being defined to 32. I have tried redefining it to a larger number to no effect. Here is the code I am using: MIXERCAPS mc; ZeroMemory( &mc, sizeof(MIXERCAPS) ); mm = mixerGetDevCaps(

Why does adb return offline after the device string?

无人久伴 提交于 2019-11-28 04:04:16
I use "adb devices" to get following result. Only one device is connected to PC by USB, but we get 8 lines of result. Could anyone suggest the reason? WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline Try the following: Unplug the usb and plug it back again. Go to the Settings -> Applications -> Development of your device and uncheck the USB debugging mode and then check it back again. Restart the adb on your PC. adb kill-server and then adb start-server Restart your device and

Difference between target google APIs and target android

安稳与你 提交于 2019-11-28 03:26:17
I'm developing android with SDK 2.3.3 using Eclipse IDE. As you all know to run my app, I should generate virtual device. From 'create new AVD' window, I can see many targets. There are 2 targets for API level 10 such as 'android 2.3.3' and Google APIs(Google Inc). Among those targets, I'm uncertain which one I should choose. My question is what's the difference between them. Thanks in advance Dan Zack Marrapese The Google API includes Google Maps and other Google-specific libraries. The Android one only includes core Android libraries. As for which one to choose, I would go with the Android

How to get a list of video capture devices (web cameras) on Mac OS? (C++)

喜夏-厌秋 提交于 2019-11-27 23:21:33
So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple or C++ console app. By list I mean something like such console output: 1) Asus Web Camera 2) Sony Web Camera So It seems simple but I have one requirement - use of native OS apis as much as possible - no external libs - after all - all we want is to print out a a list - not to fly onto the moon!) (and no use of objective-C, please - pure C/C++) How to do such thing? also from this series: How to get a list of video capture devices on linux? and special details on getting cameras

Read barcodes from input-event (linux, c)

守給你的承諾、 提交于 2019-11-27 23:19:45
I have a small program that read barcodes from /dev/input/event4. This is the code: #include <sys/file.h> #include <stdio.h> #include <string.h> #include <linux/input.h> int main (int argc, char *argv[]) { struct input_event ev; int fd, rd; //Open Device if ((fd = open ("/dev/input/event4", O_RDONLY|O_NONBLOCK)) == -1){ printf ("not a vaild device.\n"); return -1; } while (1){ memset((void*)&ev, 0, sizeof(ev)); rd = read (fd, (void*)&ev, sizeof(ev)); if (rd <= 0){ printf ("rd: %d\n", rd); sleep(1); } if(rd>0 && ev.value==0 && ev.type==1){ printf("type: %d, code: %d, value: %d, rd: %d\n", ev

Serial Communication with Silverlight 5 (COM port)

依然范特西╮ 提交于 2019-11-27 22:34:59
I'm working on an ASP.NET website in which I'll need to access an usb device from the client side. I've seen that Silverlight 5, through the use of P/Invoke, allows us to access dlls on the client machine. I plan to add a silverlight control in one of my page that will interact with my usb Device. This, way, each customer using this kind of device, will only need to connect on my website and start working with it. Nonetheless, being a beginner at that kind of interaction with an usb device, how can I manage to do this ? Which windows dll will provide me with a good way of interacting with an

How to get a list video capture devices NAMES (web cameras) using Qt (crossplatform)? (C++)

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 21:41:30
So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple C++ Qt console app. By list I mean something like such console output: 1) Asus Web Camera 2) Sony Web Camera So my question is how to cout such list using Qt C++? (if it is possible I'd love to see how to do it in pure Qt - no extra libs...) also from this series: How to get a list of video capture devices on linux? and special details on getting cameras NAMES with correct, tested answers How to get a list of video capture devices on Mac OS? with correct, not yet tested by my

Android Market - This application is available to over 0 devices?

痴心易碎 提交于 2019-11-27 20:32:48
I have published apk to the Android Market, activated and setup for free for all countries. Android Market says, my application is not compatible with any of the devices. I can see an application when I access Android Market from the PC browser but I can not download it from any of the Android phone (the same device used to test application before release). How is that possible if I have just few requirements? I have tested the application on a few quite old devices before upload and it worked. Information from the Publishing options: This application is only available to devices with these

Tensorflow: executing an ops with a specific core of a CPU

自作多情 提交于 2019-11-27 19:32:12
It is currently possible to specify which CPU or GPU to use with the tf.device(...) function for specific ops, but is there anyway where you can specify a core of a CPU? There's no API for pinning ops to a particular core at present, though this would make a good feature request . You could approximate this functionality by creating multiple CPU devices, each with a single-threaded threadpool, but this isn't guaranteed to maintain the locality of a core-pinning solution: with tf.device("/cpu:4"): # ... with tf.device("/cpu:7"): # ... with tf.device("/cpu:0"): # ... config = tf.ConfigProto