device

Creating full screen DirectX device causes D3DERR_INVALIDCALL

纵然是瞬间 提交于 2019-12-24 09:39:34
问题 I'm trying to create a DirectX device in full screen (up until this point in time I've been doign windowed), but the device won't get created and I get an invalid call HR fail. This is my code: md3dPP.BackBufferWidth = 1280; md3dPP.BackBufferHeight = 720; md3dPP.BackBufferFormat = D3DFMT_UNKNOWN; md3dPP.BackBufferCount = 1; md3dPP.MultiSampleType = D3DMULTISAMPLE_NONE; md3dPP.MultiSampleQuality = 0; md3dPP.SwapEffect = D3DSWAPEFFECT_DISCARD; md3dPP.hDeviceWindow = mhMainWnd; md3dPP.Windowed =

How to test app on device by installing .app (binary) file? (without using Xcode for testing)

最后都变了- 提交于 2019-12-24 07:38:36
问题 I have created an app and I want to send that to another person for testing it. ) He got an iPhone and a mac, but doesn't have xcode on his mac. (he is not an iphone programmer) So, If I send the .app file, can he test that on his iPhone? If not, how else I can do this? This is my first app :) and I have no idea about testing on real devices. So please help me. Thanks in advance. :) 回答1: You need to do what's called "ad-hoc distribution", which requires creating a special ad-hoc provisioning

Device admin confirm before DEACTIVATE

会有一股神秘感。 提交于 2019-12-24 07:35:38
问题 I want to ask a confirmation before disabling/deactivating device admin for my application. I searched a lot about it but not fing any proper solution for this. In short, I want to detect a callback when user click DEACTIVATE button from device admin and I want to ask a confirmation to use that whether are you sure you want to deactivate device admin ? If use press cancel then device admin should not be deactivated. If you observer AppLock application by DoMobile Lab from google play store,

Files within Docker bind mount directory not updating

允我心安 提交于 2019-12-24 04:44:08
问题 I am using docker bind mount to map the host /dev/serial/ folder generated by Ubuntu (which contains identifying symlinks to serial devices such as /dev/ttyUSB0 ). The full docker container run command I am using is docker run -d --restart always --privileged=true -v /dev/serial:/dev/serial DOCKER_IMAGE_NAME This works fine at first run, however if the serial device is disconnected and reconnected, the symlinks are recreated. This change does not propagate into the docker container and

repairing misconfigured mirrored zfs pool

旧街凉风 提交于 2019-12-24 03:26:21
问题 My machine boots from a mirrored zfs pool of two USB devices. The pool used to look like this: sudo zpool status pool: freenas-boot state: ONLINE scan: resilvered 891M in 15h19m with 0 errors on Wed Mar 29 03:29:55 2017 config: NAME STATE READ WRITE CKSUM freenas-boot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da0p2 ONLINE 0 0 3 da1p2 ONLINE 0 0 0 errors: No known data errors I tried to replace the media with the checksum error, but through a series of incorrectly used commands I ended up "adding"

Mozilla firefox ver 53 doesn't show “Device” option in “Responsive Design Mode”

会有一股神秘感。 提交于 2019-12-24 02:29:05
问题 According to this link, it should. But my Responsive Design Mode seems to be from before version 52, even though Firefox says it's version "53.0 (64-bit)" 回答1: I had this problem and although the other answers were somewhat helpful, they didn't really solve this for me. After doing additional research, this is what I found what I had to do: Open about:config in your address bar. In the search bar, type browser.tabs.remote.autostart Double-click on this to change the value to true. If it was

How to get real device model in Android?

蓝咒 提交于 2019-12-24 01:45:27
问题 For example, on my Xperia mini phone, Build.MODEL returns 'st15i' Build.MANUFACTURER returns 'Sony Ericsson' but I want to get 'Sony Ericsson xperia mini' for this phone. Is it possible? 回答1: For that particular phone (and perhaps for many others SonyEricsson phones) you can get the real device name only by reading system property you have mentioned: ro.semc.product.model Since android.os.SystemProperties class is hidden from public API you will need to use a reflection (or exec getprop ro

php script that detect from user agent what is the device (mobile)?

徘徊边缘 提交于 2019-12-23 20:30:16
问题 I am try to write a php script that return the device from the user agent in the header. the problem that i see that is not simple to do a regular expression, because the different between the device (am i wrong?) so i want an updated list of mobile device according to the user agent I found this list : List of user agents for mobile phones I try to find an updated xml / feed that i can take all the kinds or other way you think that best to do this . thanks. 回答1: I use this script in a

Genymotion Virtual Device OpenGl Error

这一生的挚爱 提交于 2019-12-23 17:06:48
问题 I have installed Genymotion Virtual Device for Android Studio and also created virtual device in it ,but the problem is that virtual device(in Genymotion) is not getting started and showing the following error : Unable to start virtual device To start virtual device,make sure that your video card supports OpenGl 2.0 and update the drivers Details: Failed to initialize backend EGL display (error: 4) If possible, update your video card drivers. I tried to update the video card through device

Can't show android device in ubuntu 13.04

旧时模样 提交于 2019-12-23 13:05:18
问题 I have a Android tablet device that can't be showed by android devices on my laptop(T61), but it worked fine on DELL PC with the same OS: Ubuntu 13.04. I've update the adb to the latest platform-tools:18.0.1 and export ADB_TRACE=all After : $sudo adb kill-server $sudo adb start-server $ adb devices it shows: system/core/adb/adb.c::main():Handling commandline() system/core/adb/adb_client.c::adb_query():adb_query: host:devices system/core/adb/adb_client.c::_adb_connect():_adb_connect: host