Do not resume MPMoviePlayerController when application enters foreground

I am developing an iPhone application which plays the video using MPMoviePlayerController. When I switch to background(device with multi-tasking support), the video play is paused and when I bring...

Android emulator crashes on Ubuntu 11.10

I installed the Android SDK on my Ubuntu 11.10 (32-bit) machine. I also installed Eclipse (3.7) and the associated plugins for Android development, all on openjdk6. Using eclipse, I successfully...

Pyinstaller error ImportError: No module named 'requests.packages.chardet.sys

I can't seem to find the root cause of this. I don't know if it's pyinstaller, a pip problem, the requests module, or something else as nothing can be eliminated conclusively. I wrote a script in...

Parallel testing on android

I successfully configured my selenium grid with appium. I successfully created to the driver for two different android devices. Let's say d1 and d2. now I want to maintain sink in between them...

How do I discover the PCIe bus topology and slot numbers on the board?

For example, when I use multi-GPU system with CUDA C/C++ and GPUDirect 2.0 P2P, and I use nested PCI-Express Switches, as shown on picture, then I must know how many switches between any two GPUs...

Massive live video streaming using Linux

I am considering different ways to stream a massive number of live videos to the screen in linux/X11, using multiple independent processes. I started the project initially with openGL/GLX and...

Common AWS failures - Handling AZ failover

Specifically I have a question what is the recommended way to organize AZ failover in AWS environment. Also it will be good to understand typical AWS failures in order to organize Application HA...

Check if WiFi and WiFi Direct can work simultaneously

Not all Android devices support simultaneous WiFi and WiFi-Direct connection - eg, Samsung S3, RedMi, OnePlus, Nexus, allows for both, but most Motorola phones I've tested on (Moto E1, E2, E3)...

Gnome 3 - dconf / gsettings - how to assign multiple keybindings?

Goal: Assign both the Super_L or Super_R keys as triggers for the overlay menu. Environment: Gnome 3.26.2, Fedora 27, Dell XPS 9550, Kinesis Advantage2 Why: For work I use a laptop either by...

force app orientation to landscape in code

I'm building a multi-device application in C++ in Rad Studio Rio (10.3.2). The primary target is an iPhone. I'd like to have a button click that forces the app to landscape regardless of the...

using the tf.data API with distributed TF

I'm running training using TF r1.8.0 on a 4 GPU machine, and I'm trying to replace my existing training code using tf.data and the high level TF Estimator. My previous code largely followed the...

Interrupt scheduling and handling in linux

let's say we are getting 100 interrupts from Net device, 50 interrupts from USB, 25 interrupts from SPI device, 25 interrupts from I2c. It is coming in sequence as follows 5Net - 4USB - 2SPI -2I2C...

detect active keyboard language on text input - react native

on a multi-lang device, where user can switch the keyboard/language. how to detect what keyboard the user is using? for example, if the user has arabic and english keyboards. how to detect if he...

Embed VCL form in FMX form

The main program we are working on is completly designed with the VCL, quite large and partly about 20 years old. In the next version it shall get a more modern UI under consideration of UWP...

Cannot Create mbuf pool with dpdk

all I tried to run vhost app in examples/, and facing the issue below: []# examples/vhost/build/app/vhost-switch -l 0-3 -n 4 -- --socket-file /tmp/sock0 --client -p 0x1 --stats 20 EAL: Detected 24...

Numba and guvectorize for CUDA target: Code running slower than expected

Notable details Large datasets (10 million x 5), (200 x 10 million x 5) Numpy mostly Takes longer after every run Using Spyder3 Windows 10 First thing is attempting to use guvectorize with the...

Binding web requests to specific network adapter

Background I have a mobile embedded device (Ubuntu/Mono) with 2 network adapters. One is WiFi and the other is GSM. The requirement is that when the WiFi adapter is connected to the internet...

why is onDestroy() called when switching to another app

Okay, I have read the section on the activity lifecycle, but there is something I still don't get. Why is onDestroy() being called in my app, when I am switching to another app that runs on my...

Newbie cannot properly run or debug fresh project using Gluon multi-view with FXML in IntelliJ

I created a brand new Gluon mobile multi view with FXML project in IntelliJ CE 2018.2.1 using the Gluon plugin version 2.7.0 and Gradle 4.10.1 I open the Gradle tool window, Pick Project(root),...

Swap between multiple webrtc streams in MediaRecorder

I'm planning on creating a browser application that will take in multiple webrtc streams from mobile device cameras and record them using the browser mediarecorder API. The trick is I want the...

chrome on android : my webpages sometimes appears to be full black - need to ex rotate to get it shown?

got this really odd and frustrating issue on my android tablet/android phone, got a webapp (html5/javascript/css) that works fine on chrome desktop - but on mobile and tablet chrome, it happens...

How to set the target triplet from a crate in Rust for the entire program?

I am exploring ideas for using Rust in a multi-target embedded project. The current idea I have is to have a crate for every MCU I have. An MCU crate will contain the implementations for things...

CoreML / MLModelConfig preferredMetalDevice - understanding device placement heuristics

*TL/DR :* Is there any public document that clearly states CoreML's strategy for GPU device placement when running inference models on macOS? How does it decide if it should run on integrated,...

Benefit of Android P Multi-Camera Support

Android P introduced multi-camera support: https://source.android.com/devices/camera/multi-camera. This allows developers to use multiple camera streams simultaneously as one camera ID can include...

navigator.mediaDevices.getUserMedia API rejecting with error "NotReadableError: Concurrent mic process limit."

During an active media flow(voice) navigator.mediaDevices.getUserMedia works fine when connected to internal mic, as soon as I switch to Bluetooth device and rerun the same API to fetch the latest...

UWP using Windows Desktop Extension Crashes at Launch when Submitting to Store

I am having troubles getting my app accepted by the Microsoft Store. My app has the following properties: Minimum Windows 10 version: 10.0.17763 Maximum Windows 10 version: 10.0.17763 References...

AVAudioUnitMidiInstrument can change program in simulator, but not on device?

TL;DR: I can change MIDI instruments in my iOS app when running in the Xcode simulator, but not when running on-device. I've been following a few of Gene De Lisa's posts, to learn how to use MIDI...

Make TensorFlow use the GPU on an ARM Mac

I have installed TensorFlow on an M1 (ARM) Mac according to these instructions. Everything works fine. However, model training is happening on the CPU. How do I switch training to the GPU? In:...

PyTorch custom forward function does not work with DataParallel

Edit: I have tried PyTorch 1.6.0 and 1.7.1, both give me the same error. I have a model that allows users to easily switch between different architectures A and B. The forward functions for both...

Problems with Blazor NET MAUI

So there is this new thing of Microsoft wanna-be React Native https://docs.microsoft.com/en-us/dotnet/maui/ Right off the bat, I was trying to get it working with Visual Studio 2019. I was...