ios – Is there an iPad app that can convert bluetooth data from a device and convert it to PDF and send it to another location

We have this device which does a Service Connection Testing when testing an electrical connection at a premise. This device communicates via bluetooth to an Android application. Unfortunately we are an apple shop and the vendor is not going to build and iOS app. We have done a SWOT analysis and are exploring the option below.

We require the data from the Device to be transported to our document management system over the internet. Essentially this is how the data needs to travel Bluetooth to an iOS device (leverage the internet connectivity of the iPad) convert the data to a PDF and send it to our document management system.

My question is,

Is there any iPad app which does this ?

Has anyone built any application which has simiilar functionality ?

Is there an IoT device attached to the comms port which can do this ?

What is the best way to solve this problem wireless (the use of an android device is not an option)

The following is the device details
https://www.metrel.si/en/shop/EIS/multifunctional-testers/mi-3155-eurotestxd.html

random – Adding noise to the data

I have not used WhiteNoiseProcess before. But looking at help, what you can go is generate the noise (called noiseData below) and then add it, point by point, to your input?

p = WhiteNoiseProcess(.5); (*mean 0 and standard deviation 0.5 say*)
noiseData = RandomFunction(p, {0, 10});
ListPlot(noiseData)

Mathematica graphics

Now add the above to your data. This is your data before

myData = Transpose({Range(0, 10), Range(0, 10)});
ListLinePlot(myData)

enter image description here

This is your data after adding the noise

ListLinePlot(myData + Normal(noiseData)((1)))

enter image description here

Hi, I have a data set without replication, how can I analyze that in R or SAS

3 Genotypes, 2 temperature treatment (1= Control, 2= Stress) and CMT is the Variable I want to check the interaction of temperature and genotypes and apply Tukey and Scott Knott test.

Treatment Genotype CMT
1 BEL 84.67
1 BGB86 98.88
1 BGB444 92.45
2 BEL 80.28
2 BGB86 67.29
2 BGB444 86.11

vue.js – Cargar variables y data con pusher laravel en tiempo real

Actualmente estaba haciendo pruebas con websockets en php puro y me gusto demasiado estaba haciendo una conexion externa y guardaba la conexion en una variable algo asi
este seria mi index.html

<html>
<head>
    <style>
        input, button { padding: 10px; }
    </style>
</head>
<body>
    <input type="text" id="message" />
    <button onclick="transmitMessage()">Send</button>
    <script>
        // Create a new WebSocket.
        var socket  = new WebSocket('ws://localhost:8080/2020/rachet');

        // Define the 
        var message = document.getElementById('message');

        function transmitMessage() {
             var dataSend = {"consulta":{
                'texto':message.value
                }
            };
            socket.send( JSON.stringify(dataSend));
        }

        socket.onopen = function(e){
            alert('connected to server')
        }
        socket.onmessage = function(e) {
            alert( e.data );
        }
    </script>
</body>

y este seria mi servidor

    <?php

namespace MyApp;

use RatchetMessageComponentInterface;
use RatchetConnectionInterface;
use phpseclibNetSFTP;

class Socket implements MessageComponentInterface {
private $id_sockets;
protected $connection;
protected $shell;
protected $ruta;
public function __construct()
{
    $this->clients = new SplObjectStorage;
}

public function onOpen(ConnectionInterface $conn) {

    // Store the new connection in $this->clients
    $this->clients->attach($conn);
    $this->id_sockets = 'conectado a la red o consola de ssh2';

    $this->connection($conn->resourceId) = $this->connectSSH();

    $this->ruta($conn->resourceId) = $this->connection($conn->resourceId)->pwd();
    echo "New connection! ({$conn->resourceId})n";
}
public function connectSSH(){
    $sftp = new SFTP('pruebas');

    if (!$sftp->login('pruebas', 'pruebas123')) {
        exit('Login Failed');
    }
    return $sftp;
}
public function onMessage(ConnectionInterface $from, $msg) {
    $data = json_decode($msg,true);
    switch (key($data)) {

        case 'mensajes':
            $connect = $this->connection($from->resourceId)->pwd();
            $from->send( "Entramos en la seccion mensajes hola como estas  $connect  " );
            //echo $this->connection($from->resourceId)->pwd(); // show that we're in the 'test' directory

        break;
        case 'consulta':
            $ruta_actual = 'cd /home;';
            if ($data == 'cd') {
                # 
            }

            $this->shell($from->resourceId) = $this->connection($from->resourceId)->exec($ruta_actual.$data('consulta')('texto'));
            $connect = $this->shell($from->resourceId);

            $result =  strpos($data('consulta')('texto'), 'not found');


            $from->send( " $connect  " );

        break;
        default:
            foreach ( $this->clients as $client ) {

                if ( $from->resourceId == $client->resourceId ) {
                   $from->send( "$this->id_sockets ---- $msg" );
                    //continue;
                }
                //$client->send( "Client $from->resourceId said $msg" );
            }
        break;
    }


}

public function onClose(ConnectionInterface $conn) {
}

public function onError(ConnectionInterface $conn, Exception $e) {
}
}

Eso funciona bien me guarda la conexion de un ssh y todo bien para los exec en esta mini prueba que realice ahora bien, intente pasar esto a laravel y vi que estaba mejor usar pusher

Pero en pusher veo que el canal de comunicacion lo manejamos como un evento y solo le enviamos mensajes seguidamente afuera solo esperamos el llamado del mismo y que responda algo como esto

Echo.channel('message').listen('MessageSend', (e) => {
             this.addMessage(e.message);
        });

con eso cuando se envie un mensaje solo responde y si intento cargar variables en el canal no lo haria como lo hace pusher, quisiera saber si algo relacionado con pusher para hacer algo asi como el websocket he invetigado y siempre me topo con lo mismo , mas bien como que es mas complicado todo con pusher :s , de antemano gracias, disculpen las molestias y bueno aun soy novato

google sheets – Get exactly data to put on email message?

I got a function to email notice like this code below:

function approvedby() {
var approvedrange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Responses 1").getRange("E2:E500");
var approved = approvedrange.getValue();

if (approved == "A"){
var ss = SpreadsheetApp.getActiveSpreadsheet(); ss.setActiveSheet(ss.getSheetByName("Responses 1"));
var s = SpreadsheetApp.getActiveSheet(); 
var dataRange = s.getRange("A2:D500");
var data = dataRange.getValues();
for (i in data) {
var rowData = data(i);  
var formno = rowData(1); 
var description = rowData(2); 
var plant = rowData(3); 

var message = 'Form No: ' + formno + "nn" + 'Description: ' + description + "nn" + 'Plant: ' + plant + "nn";
var subject = "(Approved) Form"
var email = "myemail@hotmail.com";

MailApp.sendEmail(email, subject, message);
}
}
}

Everytime i choosed “A” on Col E, this message send to my email with full data from A2 to D500.
I only want get the data on the same row when i choose “A” on Col E.

  1. Example: When i choose “A” on Col E2, the message send with the data from A2 to D2 only
  2. And when i choose “A” on Col E3, the message send with the data from A3 to D3 only.

How can i do that? Im noob at google app script.
Please help!

8 – Output node reference field data in page.html.twig

I have a homepage node-type in which I have an entity-reference field holding 3 references to 3 separate custom blocks.

The theme I’m working on requires that my 3 element reference field needs to be output in page.html.twig. I have overridden page.html.twig and I can see changes I have introduced once my caches are cleared.

My research led me to implementing a custom module to preprocess my homepage ouput and include the data I want printed from page–front.html.twig, code below:

function mymodule_preprocess_page(&$variables, $hook) {
    // $url_obj = Url::fromRoute('<front>');
    die('tested');
    dsm($variables);
    drupal_set_message('testing');
}

My problem is my preprocess function is not triggered. The module is enabled, and calling die() outside a function does “kill” the site, so the module file is recognized.

I would appreciate any help.

java – What are the steps to consume Real Time Streaming data API and do we always get a client library by their providers in order to consume it

I am having doubt most of the real time streaming API providers like twitter, YouTube etc. provide their client library as well to consume their streaming API. Is this the case with all streaming APIs.
I want to make a real time data pipeline by consuming real time streaming API and put data onto kafka topics. Suggestions for any free real time streaming API.

domain driven design – How can we use DDD when data comes from API?

And since then my application is back to having all the logic in Service layer.

There are two things that you can do here.

The key idea is that “retrieving data” is a completely different concern from “processing” data. Retrieving data needs IO, so that concern is normally managed by your application components. Processing data is a problem for your domain logic.

So we use application code to get the data, then pass the in-memory representations of that data to the domain code.

One approach is to treat “retrieve the data” as something analogous to a domain service. So the domain model defines some interface that describes an implementation agnostic retrieve of the data, and the application implements an instance of that interface, wired up to the correct IO mechanism. For use cases that need the remote data, the interface of the aggregate root includes in its target method(s) an argument of the appropriate interface.

In effect you “dependency inject” the application’s implementation of the interface into the function.

An alternative approach is to have the domain model ask for the data it needs, which the application service retrieves and passes to the domain model as a value. So all of the IO concern lives in the application component, and the aggregate root acts like a little state machine that tells the application what it wants.

switch (root.state()) {
    case I_NEED_DATA:
        data = getTheData(root.args())
        root.onData(data)
        break
    //....
}

See Cory Benfield’s talk on Building Protocol Libraries to get a broader sense for how this might work.

If the distinction between the two styles in unclear, you might reflect on how you would write an isolated test for your domain code in each case. Using the first pattern, you would end up passing a test double (aka a “mock”) to the logic under test. In the second pattern, you would end up passing plain old data (because all of the I/O that you would otherwise need to mock away is invoked by the application code, not the domain code).

automation – How to collect the data from another app before it goes to the UI?

I’m using the android app, it receives the weather forecast and displays on the screen.

How could an automation app, a script, or any solution collect the data received and allows to make some decisions/start other services before it is sent to displays on the screen?

Android at wi-fi with weather forecast.
Anything collecting the data in the background.
Uses the data collected in the background to automate decisions.

thanks.

API for raw Bitcoin latest block data?

I would like to get the full raw data on the latest bitcoin block. I was hoping I could get this from an API.

I looked at blockchain.com’s API’s but these don’t seem to provide the full data for each block including the header and transactions.

Does anyone know of a good source for this? Or should I be looking at alternatives to an API?