React-native-ble-plx is it possible to send an image exery second - react-native

I'm trying to dev an android app that can scan ble device, connect to one of them and then send an image every second or every 2 second to an RPI 3. The image would be a screenshot, resulting in some kind of screen mirroring with 1 images per seconds. I have an app that can scan ,detect and connect to my RPI with BLE, but i can't seem to find how to send files or images as i don't understand how the write functions works. I don't really understand the characteristics and services. I'd like to write the image in the /tmp directory of my RPI. Do any one of you have an example or could explain me how to do it ?

Related

Teachable machine on PC

Hi there i am pretty new to programming, but is it possible to use Google's teachable machine in command prompt on PC? Or it is a special application?
My plan is that.
One folder contains the image 1
Other Folder contains image 2
Then it teaches it self with the images in folder two
Then i have a third folder and only keep the images the third folder which are 50% more likely image 1 or image 2.
Just like on their website but in local pc, and mass scale.
Is it possible or it is too hard just asking :D
https://teachablemachine.withgoogle.com/train/image

iTunes Connect Screenshots Continue to Fail

I'm trying to upload new images to iTunes Connect. However, they continue to fail. I've checked many many times now and no dice. The screenshot sizes match Apple's requirements. Saving it as a .jpg continues to fail. Saving it as a .png with no Alpha continues to fail. Spent most of my work day on here finding other solutions that I've tried and still fails.
Other things I tried was using different browsers, saving the image file as generic as possible (ex. 1.png, and I've tried using screenshots pulled from an actual device as well as the Xcode simulator.
I am trying to do this via a windows machine. Has anybody been able to successfully upload screenshots through iTunes Connect using a Windows machine? At this point that is the only thing I can think of as to why it continues to fail.
Try waiting... in my experience, iTunes connect is not all that reliable, and waiting a day solved the screenshot upload issue for me.
Also, if you have not already, open the screenshots in an image editor, and insure they are exactly the right size... I have found that my screenshots always end up a pixel to skinny for some reason.
Lastly, keep in mind new rules for the iPhone 6 and 6 Plus.

In OSX (Mountain Lion) Only allowing an application to open if a condition is met

Is there any simple way to do this?
I basically want iTunes to not open if an external hard drive is not connected. This is essentially a user issue - as despite asking multiple times, my girlfriend will forget and open an audio or video file without the external HDD connected (where the iTunes library is kept) and so the usual rigamarole occurs... the media file will then try and add itself to the iTunes library, which can't be found, so it'll default back to it's position on the internal hard disk, and then when I come to use it, it'll try and consolidate it for me (which is nice), except it then decides it needs to organise it - and this takes about 6 hours due to the amount of music I have on there.
I've tried changing the internal (default) iTunes music folder path to an alias to the external one, but that starts throwing out some beastly errors once you get into the loop (when the alias is essentially a pointer to an invalid location).
Is Automator something that could be used? Sorry I'm not very pro with OS X I'm afraid.
Thanks,
Duncan
It seems a straightforward way to do this is just to move the iTunes.app onto the external hard drive, and replace iTunes.app in the Applications folder with an alias pointing to iTunes on the external HDD (called iTunes).
As iTunes is system protected, you'll need to change the permissions of iTunes.app to move it, which you can do via gui or terminal (sudo chmod...)
Simples.

Titanium remote images initial run

My issue:
I want my application to have an initial data set, including images, for the first run.
But after that if the user connects to the internet, they can download newer images.
From what i can google, the way to do that is to use image caching.
How do i do initial caching of the images for the first run on the application? (if the application runs offline the first time)
You can put initial files inside your project and Titanium will include them during build process. To update them in the future you have to use Titanium.Filesystem.File object.

DirectShow - Capture Webcam While Viewing It?

I am trying to make a webcam application in c# that allows users to record video. I have been using DirectShow.Net to preview the webcam and to take snapshots. But need to be able to capture video and audio while previewing the webcam at the same time. One thing I tried was using capturing multiple snapshots and converting them to a video using ffmpeg, however this obviously does not capture audio. Any ideas on how I could accomplish this?
Things you should be aware of:
Capture device is typically used exclusively, so can be used in a single graph
Graphs change state as a whole, you cannot stop a part of the graph, esp. to start/stop recording separately from previewing
The simplest is to create a graph which does both recording and preview:
A more complicated scenario is to create 2 graphs for capture+preview and for recording and copy data from the first to the second, so that you could start/stop recording separately and seamlessly.