问:
CFD in C++, Lattice boltzmann method, I dont know what im doing
I'm trying to create my own CFD in C++. I have watched some videos on youtube about the Lattice Boltzmann method, but I cant get my simulations to look like the simulations performed in the videos with lattice Boltzmann implemented in Python.

I use SDL2 to create an image on my screen. I am not trying to create anything fast. Just something that will make pretty simulations on the CPU.

Here is my class for each cell:

```<code>//cell class
class cell {

public:
    double Fi[nL] = {0,0,0,0,0,0,0,0,0};
    double density = 0;

    double momentumX = 0;
    double momentumY = 0;

    double velocityX = 0;
    double velocityY = 0;

    double Fieq[nL] = {0,0,0,0,0,0,0,0,0};

    //obstacle
    bool obstacle = false;

    void densityOperator() {
        for (int i = 0; i < nL; i++) {
            density += Fi[i];
        }
    }

    void momentumOperator() {
        for (int i = 0; i < nL; i++) {
            momentumX += Fi[i] * cX[i];
            momentumY += Fi[i] * cY[i];
        }
    }

    void velocityOperator() {
        for (int i = 0; i < nL; i++) {

            if (density == 0) {
                density += 0.001;
            }

            velocityX += momentumX / density; // prolly very slow
            velocityY += momentumY / density;

            //velocityX += cX[i];
            //velocityY += cY[i];

        }
    }

    void FieqOperator() {
        for (int i = 0; i < nL; i++) {
            Fieq[i] = weights[i] * density *
                    (
                    1 +
                    (cX[i] * velocityX + cY[i] * velocityY) / Cs +
                    pow((cX[i] * velocityX + cY[i] * velocityY), 2) / (2 * pow(Cs, 4)) -
                    (velocityX * velocityX + velocityY * velocityY) / (2 * pow(Cs, 2))
                    );
        }
    }

    void FiOperator() {
        for (int i = 0; i < nL; i++) {
            Fi[i] = Fi[i] - (timestep / tau) * (Fi[i] - Fieq[i]);
        }
    }

    void addRightVelocity() {
        Fi[0] = 1.f;
        Fi[1] = 1.f;
        Fi[2] = 1.f;
        Fi[3] = 6.f;
        Fi[4] = 1.f;
        Fi[5] = 1.f;
        Fi[6] = 1.f;
        Fi[7] = 1.f;
        Fi[8] = 1.f;

    }

};
</code>```

Please note that im am using a vector for my cells instead of a 2d array. I am using a index function to go from x,y to 1d cordinate.

```<code>int index(int x, int y) {
    return x * nY + y;

}

</code>```

Variables:

```<code>//box
const int nX = 400;
const int nY = 100;

//viscosity
float tau = 0.5; // 0.53

//time delta time per iteration
float timestep = 1;

//distance between cells
float dist = 1000;

//Speed of sound
float Cs = 1 / sqrt(3) * (dist / timestep);

//viscociti

float v = pow(Cs, 2) * (tau - timestep / 2); // tau will need to be much smaller

//time steps
int nT = 3000;

//lattice speeds and weights
const int nL = 9;

//Ci vector direction, discrete velocity
int cX[9] = { 0, 0, 1, 1, 1, 0, -1, -1, -1 };
int cY[9] = { 0, 1, 1, 0, -1, -1, -1, 0 , 1 };

//weights, based on navier stokes
float weights[9] = { 4 / 9, 1 / 9, 1 / 36, 1 / 9, 1 / 36, 1 / 9, 1 / 36, 1 / 4, 1 / 36 };

//opposite populations
int cO[9] = { 0, 5, 6, 7, 8, 1, 2, 3, 4 };
</code>```

My main function:

```<code>int main() {

    //init vector cells

    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            cell cellUnit;

            cells.push_back(cellUnit);
            TempCells.push_back(cellUnit);

        }
    }

    //SDL

    //SDL
    //-------------------------------------------------------------
    SDL_Window* window = nullptr;
    SDL_Renderer* renderer = nullptr;

    SDL_Init(SDL_INIT_VIDEO);
    SDL_CreateWindowAndRenderer(nX* 3, nY * 3, 0, &window, &renderer);
    SDL_RenderSetScale(renderer, 3, 3);

    SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
    SDL_RenderClear(renderer);
    //-------------------------------------------------------------//

    //Circle Object Gen
    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            //cicle position
            int circleX = 5;
            int circleY = 50;
            //circle radius
            float radius = 10;

            //distance bewtween cell and circle pos
            float distance = sqrt(pow(circleX - x, 2) + pow(circleY - y, 2));

            if (distance < radius) {
                cells[index(x,y)].obstacle = true;
            }
            else {
                cells[index(x, y)].obstacle = false;
            }
        }
    }

    //add velocity

    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            cells[index(x, y)].addRightVelocity();

            //random velocity

            for (int i = 0; i < nL; i++) {

                cells[index(x,y)].Fi[i] += (rand() % 200) / 100;

            }

        }
    }

    for (int t = 0; t < nT; t++) {

        //SDL
        //--------------------------------------------------------------

        //clear renderer

        if (t % 20 == 0) {
            SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
            SDL_RenderClear(renderer);
        }

        //--------------------------------------------------------------

        //streaming:

        //because we will loop over the same populations we do not want to switch the same population twice

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                if (x == 0) {
                    cells[index(x, y)].Fi[3] += 0.4;
                }

                //for populations
                for (int i = 0; i < nL; i++) {
                    //boundary

                    //checs if cell is object or air
                    if (cells[index(x, y)].obstacle == false) {
                        //air

                        //targetet cell
                        int cellX = x + cX[i];
                        int cellY = y + cY[i];

                        //out of bounds check + rearange to other side
                        if (cellX < 0) {

                            //left to right
                            cellX = nX;

                        }
                        if (cellX >= nX) {

                            //right to left
                            cellX = 0;
                            continue;

                        }
                        if (cellY < 0) {

                            //top to buttom
                            cellY = nY;

                        }
                        if (cellY >= nY) {

                            //bottom to top
                            cellY = 0;

                        }

                        //if neighborinig cell is object --> collision with object
                        if (cells[index(cellX, cellY)].obstacle == true) {

                            //Boundary handling https://youtu.be/jfk4feD7rFQ?t=2821
                            TempCells[index(x,y)].Fi[cO[i]] = cells[index(x, y)].Fi[i];

                        }

                        //if not then stream to neighbor air cell with oposite population

                        TempCells[index(cellX, cellY)].Fi[cO[i]] = cells[index(x, y)].Fi[i];

                    }
                    else {
                        //wall

                        //SDL GRAPICHS

                        if (t % 20 == 0) {
                            SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
                            SDL_RenderDrawPoint(renderer, x, y);
                        }
                    }
                }
            }
        }

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {
                for (int i = 0; i < nL; i++) {
                    cells[index(x, y)].Fi[i] = TempCells[index(x, y)].Fi[cO[i]];
                }
            }
        }

        //collision:

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                //density:
                cells[index(x, y)].densityOperator();

                //momentum:
                cells[index(x, y)].momentumOperator();

                //velocity:
                cells[index(x, y)].velocityOperator();

                //Fieq + new new Fi:
                for (int i = 0; i < nL; i++) {

                    cells[index(x, y)].FieqOperator();

                }

                //SDL Graphics

                if (t % 20 == 0) {
                    if (cells[index(x, y)].obstacle == false) {
                        SDL_SetRenderDrawColor(renderer, cells[index(x, y)].density, cells[index(x, y)].density , 255 , 255);
                        SDL_RenderDrawPoint(renderer, x, y);
                    }
                }
            }
        }

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                cells[index(x, y)].FiOperator();

            }
        }

        //SDL Graphics

        if (t % 20 == 0 ) {
            SDL_RenderPresent(renderer);
        }
    }

    return 0;
}
</code>```

I do realize my code might be a bit messy and not easy to understand at first. And it is definitely not optimal.

If anyone has any experience in programming their own LBM in c++ i would like to hear your input.

It seams like my simulations is working but i do not get those bueatiful animations like in, https://youtu.be/ZUXmO4hu-20?t=3394

Thanks for any help.

Edit:

I have edited my script to reset, density, velocity X Y and Momentum X Y

Simulation visualised by density, pink is higher, loops if density exceeds color range of 255

Simulation visualised by density

Simulation visualised by density

Body:
I'm trying to create my own CFD in C++. I have watched some videos on youtube about the Lattice Boltzmann method, but I cant get my simulations to look like the simulations performed in the videos with lattice Boltzmann implemented in Python.

I use SDL2 to create an image on my screen. I am not trying to create anything fast. Just something that will make pretty simulations on the CPU.

Here is my class for each cell:

//cell class
class cell {

public:
    double Fi[nL] = {0,0,0,0,0,0,0,0,0};
    double density = 0;

    double momentumX = 0;
    double momentumY = 0;

    double velocityX = 0;
    double velocityY = 0;

    double Fieq[nL] = {0,0,0,0,0,0,0,0,0};

    //obstacle
    bool obstacle = false;

    void densityOperator() {
        for (int i = 0; i < nL; i++) {
            density += Fi[i];
        }
    }

    void momentumOperator() {
        for (int i = 0; i < nL; i++) {
            momentumX += Fi[i] * cX[i];
            momentumY += Fi[i] * cY[i];
        }
    }

    void velocityOperator() {
        for (int i = 0; i < nL; i++) {

            if (density == 0) {
                density += 0.001;
            }

            velocityX += momentumX / density; // prolly very slow
            velocityY += momentumY / density;

            //velocityX += cX[i];
            //velocityY += cY[i];

        }
    }

    void FieqOperator() {
        for (int i = 0; i < nL; i++) {
            Fieq[i] = weights[i] * density *
                    (
                    1 +
                    (cX[i] * velocityX + cY[i] * velocityY) / Cs +
                    pow((cX[i] * velocityX + cY[i] * velocityY), 2) / (2 * pow(Cs, 4)) -
                    (velocityX * velocityX + velocityY * velocityY) / (2 * pow(Cs, 2))
                    );
        }
    }

    void FiOperator() {
        for (int i = 0; i < nL; i++) {
            Fi[i] = Fi[i] - (timestep / tau) * (Fi[i] - Fieq[i]);
        }
    }

    void addRightVelocity() {
        Fi[0] = 1.f;
        Fi[1] = 1.f;
        Fi[2] = 1.f;
        Fi[3] = 6.f;
        Fi[4] = 1.f;
        Fi[5] = 1.f;
        Fi[6] = 1.f;
        Fi[7] = 1.f;
        Fi[8] = 1.f;

    }

};

Please note that im am using a vector for my cells instead of a 2d array. I am using a index function to go from x,y to 1d cordinate.

int index(int x, int y) {
    return x * nY + y;

}

Variables:

//box
const int nX = 400;
const int nY = 100;

//viscosity
float tau = 0.5; // 0.53

//time delta time per iteration
float timestep = 1;

//distance between cells
float dist = 1000;

//Speed of sound
float Cs = 1 / sqrt(3) * (dist / timestep);

//viscociti

float v = pow(Cs, 2) * (tau - timestep / 2); // tau will need to be much smaller

//time steps
int nT = 3000;

//lattice speeds and weights
const int nL = 9;

//Ci vector direction, discrete velocity
int cX[9] = { 0, 0, 1, 1, 1, 0, -1, -1, -1 };
int cY[9] = { 0, 1, 1, 0, -1, -1, -1, 0 , 1 };

//weights, based on navier stokes
float weights[9] = { 4 / 9, 1 / 9, 1 / 36, 1 / 9, 1 / 36, 1 / 9, 1 / 36, 1 / 4, 1 / 36 };

//opposite populations
int cO[9] = { 0, 5, 6, 7, 8, 1, 2, 3, 4 };

My main function:

int main() {

    //init vector cells

    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            cell cellUnit;

            cells.push_back(cellUnit);
            TempCells.push_back(cellUnit);

        }
    }

    //SDL

    //SDL
    //-------------------------------------------------------------
    SDL_Window* window = nullptr;
    SDL_Renderer* renderer = nullptr;

    SDL_Init(SDL_INIT_VIDEO);
    SDL_CreateWindowAndRenderer(nX* 3, nY * 3, 0, &window, &renderer);
    SDL_RenderSetScale(renderer, 3, 3);

    SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
    SDL_RenderClear(renderer);
    //-------------------------------------------------------------//

    //Circle Object Gen
    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            //cicle position
            int circleX = 5;
            int circleY = 50;
            //circle radius
            float radius = 10;

            //distance bewtween cell and circle pos
            float distance = sqrt(pow(circleX - x, 2) + pow(circleY - y, 2));

            if (distance < radius) {
                cells[index(x,y)].obstacle = true;
            }
            else {
                cells[index(x, y)].obstacle = false;
            }
        }
    }

    //add velocity

    for (int x = 0; x < nX; x++) {
        for (int y = 0; y < nY; y++) {

            cells[index(x, y)].addRightVelocity();

            //random velocity

            for (int i = 0; i < nL; i++) {

                cells[index(x,y)].Fi[i] += (rand() % 200) / 100;

            }

        }
    }

    for (int t = 0; t < nT; t++) {

        //SDL
        //--------------------------------------------------------------

        //clear renderer

        if (t % 20 == 0) {
            SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
            SDL_RenderClear(renderer);
        }

        //--------------------------------------------------------------

        //streaming:

        //because we will loop over the same populations we do not want to switch the same population twice

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                if (x == 0) {
                    cells[index(x, y)].Fi[3] += 0.4;
                }

                //for populations
                for (int i = 0; i < nL; i++) {
                    //boundary

                    //checs if cell is object or air
                    if (cells[index(x, y)].obstacle == false) {
                        //air

                        //targetet cell
                        int cellX = x + cX[i];
                        int cellY = y + cY[i];

                        //out of bounds check + rearange to other side
                        if (cellX < 0) {

                            //left to right
                            cellX = nX;

                        }
                        if (cellX >= nX) {

                            //right to left
                            cellX = 0;
                            continue;

                        }
                        if (cellY < 0) {

                            //top to buttom
                            cellY = nY;

                        }
                        if (cellY >= nY) {

                            //bottom to top
                            cellY = 0;

                        }

                        //if neighborinig cell is object --> collision with object
                        if (cells[index(cellX, cellY)].obstacle == true) {

                            //Boundary handling https://youtu.be/jfk4feD7rFQ?t=2821
                            TempCells[index(x,y)].Fi[cO[i]] = cells[index(x, y)].Fi[i];

                        }

                        //if not then stream to neighbor air cell with oposite population

                        TempCells[index(cellX, cellY)].Fi[cO[i]] = cells[index(x, y)].Fi[i];

                    }
                    else {
                        //wall

                        //SDL GRAPICHS

                        if (t % 20 == 0) {
                            SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
                            SDL_RenderDrawPoint(renderer, x, y);
                        }
                    }
                }
            }
        }

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {
                for (int i = 0; i < nL; i++) {
                    cells[index(x, y)].Fi[i] = TempCells[index(x, y)].Fi[cO[i]];
                }
            }
        }

        //collision:

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                //density:
                cells[index(x, y)].densityOperator();

                //momentum:
                cells[index(x, y)].momentumOperator();

                //velocity:
                cells[index(x, y)].velocityOperator();

                //Fieq + new new Fi:
                for (int i = 0; i < nL; i++) {

                    cells[index(x, y)].FieqOperator();

                }

                //SDL Graphics

                if (t % 20 == 0) {
                    if (cells[index(x, y)].obstacle == false) {
                        SDL_SetRenderDrawColor(renderer, cells[index(x, y)].density, cells[index(x, y)].density , 255 , 255);
                        SDL_RenderDrawPoint(renderer, x, y);
                    }
                }
            }
        }

        for (int x = 0; x < nX; x++) {
            for (int y = 0; y < nY; y++) {

                cells[index(x, y)].FiOperator();

            }
        }

        //SDL Graphics

        if (t % 20 == 0 ) {
            SDL_RenderPresent(renderer);
        }
    }

    return 0;
}

I do realize my code might be a bit messy and not easy to understand at first. And it is definitely not optimal.

If anyone has any experience in programming their own LBM in c++ i would like to hear your input.

It seams like my simulations is working but i do not get those bueatiful animations like in, https://youtu.be/ZUXmO4hu-20?t=3394

Thanks for any help.

Edit:

I have edited my script to reset, density, velocity X Y and Momentum X Y

Simulation visualised by density, pink is higher, loops if density exceeds color range of 255

Simulation visualised by density

Simulation visualised by density


来源: stackexchange

问:
getting res.flush is not a function in express-sse
I am trying to use express-sse to generate a notification and call the api automatically when an order is placed.

Here is my API:

```<code>
router.post("/createOrder", async (req, res) => {
    try {
        let { orderItems, email, orderStatus, paymentStatus, orderType, orderAmount, tableId } = req.body

        const order = await Order.create({
            orderItems, email, orderStatus, paymentStatus, orderType, orderAmount
        });
        await Table.updateOne({ tableId: tableId },
            {
                $set: {
                    currentOrders: { $push: { orderItems, email, orderStatus, paymentStatus, orderType, orderAmount } },
                    status: 'occupied'
                }
            })
        sse.send(order, "order_created");

        res.status(200).json({ message: "Order Placed" })

    } catch (err) {
        res.status(500).json("Server Error!")
        console.log(err);
    }
});
</code>```

the server crashes with error res.flush is not a function.

error

I tried sending the sse after res.status(). It works and I get the response at me sse stream endpoint SSE stream response but then the call gets closed in postman and I get error: Cannot set headers after they are sent to the client.

headers error

ContentLicense: CC BY-SA 4.0

Body:
I am trying to use express-sse to generate a notification and call the api automatically when an order is placed.

Here is my API:

router.post("/createOrder", async (req, res) => {
    try {
        let { orderItems, email, orderStatus, paymentStatus, orderType, orderAmount, tableId } = req.body

        const order = await Order.create({
            orderItems, email, orderStatus, paymentStatus, orderType, orderAmount
        });
        await Table.updateOne({ tableId: tableId },
            {
                $set: {
                    currentOrders: { $push: { orderItems, email, orderStatus, paymentStatus, orderType, orderAmount } },
                    status: 'occupied'
                }
            })
        sse.send(order, "order_created");

        res.status(200).json({ message: "Order Placed" })

    } catch (err) {
        res.status(500).json("Server Error!")
        console.log(err);
    }
});

the server crashes with error res.flush is not a function.

error

I tried sending the sse after res.status(). It works and I get the response at me sse stream endpoint SSE stream response but then the call gets closed in postman and I get error: Cannot set headers after they are sent to the client.

headers error


问:
Is there a way to get rectangle points on an image which has an white rectangle with black color drawing
I'm trying to get four coordinates on an image which has an white rectangle with black color drawing.

I'v tried the extreme point technic from opencv

```<code>leftmost = tuple(contour[contour[:,:,0].argmin()][0])
rightmost = tuple(contour[contour[:,:,0].argmax()][0])
topmost = tuple(contour[contour[:,:,1].argmin()][0])
bottommost = tuple(contour[contour[:,:,1].argmax()][0])
</code>```

but I got below image

However What I really want is the every vertex of a white rectangle.

Is there a way to get the four red points?

Body:
I'm trying to get four coordinates on an image which has an white rectangle with black color drawing.

I'v tried the extreme point technic from opencv

leftmost = tuple(contour[contour[:,:,0].argmin()][0])
rightmost = tuple(contour[contour[:,:,0].argmax()][0])
topmost = tuple(contour[contour[:,:,1].argmin()][0])
bottommost = tuple(contour[contour[:,:,1].argmax()][0])

but I got below image

However What I really want is the every vertex of a white rectangle.

Is there a way to get the four red points?


问:
I'd like to delay the Cookie Banner popup on my Wordpress site, currently using Complianz plug in - how to configure?
From the Complianz site - the instructions were to modify the following code in a text editor and save it - changing line 11 to the desired m/s.

Copy and pasted code below from Complianz site.
`

```<code><?php
function cmplz_delay_banner() {
    ob_start(); ?>
    <script>
        document.addEventListener("cmplz_before_cookiebanner", function() {
            document.querySelector('#cmplz-cookiebanner-container').classList.add('cmplz-hidden');
        });
        document.addEventListener("cmplz_cookie_warning_loaded", function() {
            setTimeout(function(){
                document.querySelector('#cmplz-cookiebanner-container').classList.remove('cmplz-hidden');
            }, 3000);
        });

    </script>
    <?php
    $script = ob_get_clean();
    $script = str_replace(array('<script>', '</script>'), '', $script);
    wp_add_inline_script( 'cmplz-cookiebanner', $script);
}
add_action( 'wp_enqueue_scripts', 'cmplz_delay_banner', PHP_INT_MAX );
</code>```

`

I've done that and the next steps for configuration are to " Save this as a .php file in the folder /wp-content/mu-plugins/ on your website"

Where would I go to do that from the dashboard?

Thanks in advance!

I've read this post of Must-use plugins but still unsure of where to navigate on the dashboard to get to wp-content/

Body:
From the Complianz site - the instructions were to modify the following code in a text editor and save it - changing line 11 to the desired m/s.

Copy and pasted code below from Complianz site.
`

<?php
function cmplz_delay_banner() {
    ob_start(); ?>

    <?php
    $script = ob_get_clean();
    $script = str_replace(array(''), '', $script);
    wp_add_inline_script( 'cmplz-cookiebanner', $script);
}
add_action( 'wp_enqueue_scripts', 'cmplz_delay_banner', PHP_INT_MAX );

`

I've done that and the next steps for configuration are to " Save this as a .php file in the folder /wp-content/mu-plugins/ on your website"

Where would I go to do that from the dashboard?

Thanks in advance!

I've read this post of Must-use plugins but still unsure of where to navigate on the dashboard to get to wp-content/


问:
Comparing an image (face) against a list of images [Face Verificaiton]
I built an Android application that leverages Google's ML-Kit for Face Detection, then I wrote a Python script that sits on an external service that gets executed through an API call.

Here's the current workflow of the app:

Android app opens frontal camera, waits for a face to be detected (Google's ML-Kit Face Detection)

I convert the image to base64 and do an API call to execute a Python script.

The script takes the base64 image as an input, fetches a list of base64 images (from a database) and compares the face against the array of images using Python's face_recognition

The whole process takes around 15 seconds to finish (too much in my case).

My question is the following: What is best method/workflow to compare an image (face) (that is detected using Google's MLKit) against a list of other images that I already have on an Android app (built using Java)?


问:
Extract images from playwright page without requesting them again?
Let's say I've requested a page and it's fully loaded. Is it possible to save the images from the rendered/loaded page without sending another request for the image? This would be to avoid just collecting the individual image urls and hammering the server for each image again.</p>


问:
PHP ffmpeg having problem extracting Image as a thumbnail
I am using a below repo via composer everything works well but i have a problem extracting the image as a poster ( thumbnail )

https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming#extracting-image

I used below code.

```<code>$video = $ffmpeg->open('./videos/example1.mp4");
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(51));
$frame->save('/var/media/poster.jpg');
</code>```

But got an error below using mac os

Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-ss' '00:00:51.00' '-i' './videos/example1.mp4' '-vframes' '1' '-f' 'image2' './videos/example1/poster.jpg': Error Output: ffmpeg version N-109428-g10a56363a7-tessus https://evermeet.cx/ffmpeg/

Just want to know what is missing, i have already run chmod -R 0777 . to have a sufficient permissions.

Body:
I am using a below repo via composer everything works well but i have a problem extracting the image as a poster ( thumbnail )

https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming#extracting-image

I used below code.

$video = $ffmpeg->open('./videos/example1.mp4");
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(51));
$frame->save('/var/media/poster.jpg');

But got an error below using mac os

Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffmpeg failed to execute command '/usr/local/bin/ffmpeg' '-y' '-ss' '00:00:51.00' '-i' './videos/example1.mp4' '-vframes' '1' '-f' 'image2' './videos/example1/poster.jpg': Error Output: ffmpeg version N-109428-g10a56363a7-tessus https://evermeet.cx/ffmpeg/

Just want to know what is missing, i have already run chmod -R 0777 . to have a sufficient permissions.


问:
Python: Start visibility section/track in hidden (Sequencer) Unreal 5
I’ve looked at everything, sequencer_key_examples.py and sequencer_examples.py, and API code, and even tried Chat gepto. It is out of my understanding.

Unreal 5, use in the editor - Python Editor Script Plugin

I have the code below, how do I get the visibility_section to start off?

In my understanding, I did the following, the actor starts with a section that will be disabled and the next section enabled.
It worked partially because I have to manually check and disable Visible.

```<code> binding = level_sequence.add_possessable(actor)
 # Add a track visibility for the actor
 visibility_track = binding.add_track(unreal.MovieSceneVisibilityTrack)
 visibility_track.set_property_name_and_path('bHidden', 'bHidden')

 visibility_section = visibility_track.add_section()
 visibility_section.set_start_frame_seconds(0)
 visibility_section.set_end_frame_seconds((i * range) + start)

 # Add a section for the sprite to be visible
 visibility_section = visibility_track.add_section()
 visibility_section.set_start_frame_seconds((i * interval)+Start)
 visibility_section.set_end_frame_seconds(length_in_seconds * Finish)
</code>```

Thank you!

Start visibility section/track in hidden with python code!

Body:
I’ve looked at everything, sequencer_key_examples.py and sequencer_examples.py, and API code, and even tried Chat gepto. It is out of my understanding.

Unreal 5, use in the editor - Python Editor Script Plugin

I have the code below, how do I get the visibility_section to start off?

In my understanding, I did the following, the actor starts with a section that will be disabled and the next section enabled.
It worked partially because I have to manually check and disable Visible.

 binding = level_sequence.add_possessable(actor)
 # Add a track visibility for the actor
 visibility_track = binding.add_track(unreal.MovieSceneVisibilityTrack)
 visibility_track.set_property_name_and_path('bHidden', 'bHidden')

 visibility_section = visibility_track.add_section()
 visibility_section.set_start_frame_seconds(0)
 visibility_section.set_end_frame_seconds((i * range) + start)

 # Add a section for the sprite to be visible
 visibility_section = visibility_track.add_section()
 visibility_section.set_start_frame_seconds((i * interval)+Start)
 visibility_section.set_end_frame_seconds(length_in_seconds * Finish)

Thank you!

Start visibility section/track in hidden with python code!


问:
How to Troubleshoot IIS Error 502.3 Codes 12030 and 12152 Sporadically Occurring
I have set up a server using IIS on Windows Service 2016 using python FastAPI with uvicorn. Sending individual querying works well, but I had been moving to testing the API with parallel queries using k6. I had been sending queries with 30 VU across 1min with a random sleep between, resulting in around 2.1 requests/sec. However I noticed that the service had been having sporadic 502.3 errors about 15% of the time.

The error codes tagged to it were: 12030 and 12152. According to https://learn.microsoft.com/en-us/windows/win32/winhttp/error-messages:

ERROR_WINHTTP_CONNECTION_ERROR

12030

The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. For example, WinHTTP version 5.1 does not support SSL2 unless the client specifically enables it.

ERROR_WINHTTP_INVALID_SERVER_RESPONSE

12152

The server response cannot be parsed.

The failure percentage seems to scale with higher number of requests per second.

I had checked the httperr logs under C:\Windows\System32\LogFiles\HTTPERR, but only saw Timer_ConnectionIdle which I read to be not an issue.

How else can I troubleshoot these error 502.3 to see what the issue is?

UPDATE 2022/12/20:

Managed to get the FRT for one of the occurrences. How to proceed to troubleshoot? It does seem to be just indicate 502.3 error

Event: MODULE_SET_RESPONSE_ERROR_STATUS

ModuleName: httpPlatformHandler

Notification: EXECUTE_REQUEST_HANDLER

HttpStatus: 502

HttpReason: Bad Gateway

HttpSubStatus: 3

ErrorCode: 2147954552


问:
Dynamically create React form while using Formik
I'm building a React application that uses Material UI (MUI). I am using MUI to create a form which utilizes Formik and contains many similarly-structured elements:

<Grid container>
  <Grid item>
    <FormControl>
      <InputLabel id="element1-label">Element1</InputLabel>
      <Select
        required
        id="element1"
        name="element1"
        label="Element1"
        value={formik.values.element1}
        onChange={formik.handleChange}
      >
        {element1Options}
      </Select>
    </FormControl>
  </Grid>
  { /* ... more elements */ }
  <Grid item>
    <FormControl>
      <InputLabel id="elementN-label">ElementN</InputLabel>
      <Select
        required
        id="elementN"
        name="elementN"
        label="ElementN"
        value={formik.values.elementN}
        onChange={formik.handleChange}
      >
        {elementNOptions}
      </Select>
    </FormControl>
  </Grid>
</Grid>
```
<p>Because of this repetition, I moved the changing information into a list to dynamically create the form</p>
<pre class="lang-js prettyprint-override"><code>import React from "react";
import { Grid } from "@mui/material";
import Select from "@mui/material/Select";
import { useFormik } from "formik";

// Object that stores form elements' data
const FORM_ELEMENTS = [
  {name: "element1", displayName: "Element1", component: Select, children: element1Options},
  ...,
  {name: "elementN", displayName: "ElementN", component: Select, children: elementNOptions}
]

// Function that maps elements of `FORM_ELEMENTS` to JSX objects (using MUI components)
function FormListMapper(element) {
  const ComponentType = element.component;

  return (
    <Grid item>
      <FormControl>
        <InputLabel id={`${element.name}-label`}>{element.displayName}</InputLabel>
        <ComponentType
          required
          id={element.name}
          name={element.name}
          label={element.displayName}
          value={formik.values[element.name]}
          onChange={formik.handleChange}
        >
          {element.children}
        </ComponentType>
      </FormControl>
    </Grid>
  )
}

export default function MyForm() {
  // Define the Formik object
  const formik = useFormik({
    initialValues: { someValues },
    validationSchema: validationSchema,
    onSubmit: (values) => { someFunction(values) }
  });

  // Put this here only so it can reference `formik` after it has been defined. Really should be out of export (if my understanding is correct)
  const FormList = FORM_ELEMENTS
  .map((element) => (
    FormListMapper(element)
  ))

  // Return the dynamically generated form
  return (
    <Grid container>
      {FormList}
    </Grid>
  )
</code>```

The only problem with this is that I get an error saying that formik is referenced before it is initialized.

I'm wondering if there is any way to get around this issue - perhaps using a UseEffect? I am a newcomer to React (and front-end dev in general), so I'm afraid I don't have the experience to handle this on my own.

Any advice is greatly appreciated, thanks!

Body:
I'm building a React application that uses Material UI (MUI). I am using MUI to create a form which utilizes Formik and contains many similarly-structured elements:

<Grid container>
  <Grid item>
    <FormControl>
      <InputLabel id="element1-label">Element1</InputLabel>
      <Select
        required
        id="element1"
        name="element1"
        label="Element1"
        value={formik.values.element1}
        onChange={formik.handleChange}
      >
        {element1Options}
      </Select>
    </FormControl>
  </Grid>
  { /* ... more elements */ }
  <Grid item>
    <FormControl>
      <InputLabel id="elementN-label">ElementN</InputLabel>
      <Select
        required
        id="elementN"
        name="elementN"
        label="ElementN"
        value={formik.values.elementN}
        onChange={formik.handleChange}
      >
        {elementNOptions}
      </Select>
    </FormControl>
  </Grid>
</Grid>

Because of this repetition, I moved the changing information into a list to dynamically create the form

import React from "react";
import { Grid } from "@mui/material";
import Select from "@mui/material/Select";
import { useFormik } from "formik";

// Object that stores form elements' data
const FORM_ELEMENTS = [
  {name: "element1", displayName: "Element1", component: Select, children: element1Options},
  ...,
  {name: "elementN", displayName: "ElementN", component: Select, children: elementNOptions}
]

// Function that maps elements of `FORM_ELEMENTS` to JSX objects (using MUI components)
function FormListMapper(element) {
  const ComponentType = element.component;

  return (
    <Grid item>
      <FormControl>
        <InputLabel id={`${element.name}-label`}>{element.displayName}</InputLabel>
        <ComponentType
          required
          id={element.name}
          name={element.name}
          label={element.displayName}
          value={formik.values[element.name]}
          onChange={formik.handleChange}
        >
          {element.children}
        </ComponentType>
      </FormControl>
    </Grid>
  )
}

export default function MyForm() {
  // Define the Formik object
  const formik = useFormik({
    initialValues: { someValues },
    validationSchema: validationSchema,
    onSubmit: (values) => { someFunction(values) }
  });

  // Put this here only so it can reference `formik` after it has been defined. Really should be out of export (if my understanding is correct)
  const FormList = FORM_ELEMENTS
  .map((element) => (
    FormListMapper(element)
  ))

  // Return the dynamically generated form
  return (
    <Grid container>
      {FormList}
    </Grid>
  )

The only problem with this is that I get an error saying that formik is referenced before it is initialized.

I'm wondering if there is any way to get around this issue - perhaps using a UseEffect? I am a newcomer to React (and front-end dev in general), so I'm afraid I don't have the experience to handle this on my own.

Any advice is greatly appreciated, thanks!


问:
createSharedElementStackNavigator returns navigation.dangerouslyGetState
I'm currently facing an error using the react navigation shared element within my project. When defining the Stack and using Stack.Navigator, it returns an error with

navigation.dangerouslyGetState

I've read the documentation and viewed a number of videos on the net to see if i am missing anything. However, could not come to any conclusion.

Please find code below:

```<code>import React from "react"
import { createStackNavigator } from '@react-navigation/stack';
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';
import { NavigationContainer, DefaultTheme, useLinkProps } from '@react-navigation/native';
import Search from "./screens/Search"
import Home from "./screens/Home"

import Entypo from "react-native-vector-icons/Entypo";
import {  Text, TouchableOpacity, View } from "react-native";

export default function Navigation( { navigation }) {
    const Stack = createSharedElementStackNavigator();

    const MyTheme = {
        ...DefaultTheme,
        colors: {
          ...DefaultTheme.colors,
          background: '#FFF',
        }
    }

    return (
        <NavigationContainer theme={MyTheme}>
            <Stack.Navigator initialRouteName="Home">

                <Stack.Screen name="Home" component={Home} options={({route}) => ({
                    headerShown: false,
                })}/>

                <Stack.Screen name="Search" component={Search} options={({route}) => ({
                    headerShown: true,
                    headerTitle: 'Search',
                    headerTitleStyle: {fontSize: 22, fontFamily: 'Gilroy-Bold'},
                    headerBackTitleVisible: false,
                    headerShadowVisible: false,
                    headerBackImage: () => (

                            <View style={{backgroundColor: '#ffffff', borderRadius: '50%', marginLeft: 15, marginBottom: 5}}>
                                <Entypo name="chevron-small-left" size={30} color="#37BD6B"/>
                            </View>
                    )

                })}/>

            </Stack.Navigator>
        </NavigationContainer>
    )
}
</code>```

When reading over the error, this is displayed:

Type '{ children: Element[]; initialRouteName: string; }' is not
assignable to type 'IntrinsicAttributes &
((Pick<DefaultRouterOptions & { children: ReactNode;
screenOptions?: StackNavigationOptions | ((props: { ...; }) =>
StackNavigationOptions) | undefined; } & StackNavigationConfig,
"children" | ... 2 more ... | "keyboardHandlingEnabled"> & { ...; }) |
PropsWithChildren<...>)'.   Type '{ children: Element[];
initialRouteName: string; }' is missing the following properties from
type 'Pick<DefaultRouterOptions & { children: ReactNode;
screenOptions?: StackNavigationOptions | ((props: { route:
RouteProp<Record<string, object | undefined>, string>; navigation:
any; }) => StackNavigationOptions) | undefined; } &
StackNavigationConfig, "children" | ... 2 more ... |
"keyboardHandlingEnabled">': mode, headerMode,
keyboardHandlingEnabledts(2322)

I dont think im missing any props according to the documentation

Thanks in advance

Body:
I'm currently facing an error using the react navigation shared element within my project. When defining the Stack and using Stack.Navigator, it returns an error with

navigation.dangerouslyGetState

I've read the documentation and viewed a number of videos on the net to see if i am missing anything. However, could not come to any conclusion.

Please find code below:

import React from "react"
import { createStackNavigator } from '@react-navigation/stack';
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';
import { NavigationContainer, DefaultTheme, useLinkProps } from '@react-navigation/native';
import Search from "./screens/Search"
import Home from "./screens/Home"

import Entypo from "react-native-vector-icons/Entypo";
import {  Text, TouchableOpacity, View } from "react-native";

export default function Navigation( { navigation }) {
    const Stack = createSharedElementStackNavigator();

    const MyTheme = {
        ...DefaultTheme,
        colors: {
          ...DefaultTheme.colors,
          background: '#FFF',
        }
    }

    return (
        <NavigationContainer theme={MyTheme}>
            <Stack.Navigator initialRouteName="Home">

                <Stack.Screen name="Home" component={Home} options={({route}) => ({
                    headerShown: false,
                })}/>

                <Stack.Screen name="Search" component={Search} options={({route}) => ({
                    headerShown: true,
                    headerTitle: 'Search',
                    headerTitleStyle: {fontSize: 22, fontFamily: 'Gilroy-Bold'},
                    headerBackTitleVisible: false,
                    headerShadowVisible: false,
                    headerBackImage: () => (

                            <View style={{backgroundColor: '#ffffff', borderRadius: '50%', marginLeft: 15, marginBottom: 5}}>
                                <Entypo name="chevron-small-left" size={30} color="#37BD6B"/>
                            </View>
                    )

                })}/>

            </Stack.Navigator>
        </NavigationContainer>
    )
}

When reading over the error, this is displayed:

Type '{ children: Element[]; initialRouteName: string; }' is not
assignable to type 'IntrinsicAttributes &
((Pick<DefaultRouterOptions & { children: ReactNode;
screenOptions?: StackNavigationOptions | ((props: { ...; }) =>
StackNavigationOptions) | undefined; } & StackNavigationConfig,
"children" | ... 2 more ... | "keyboardHandlingEnabled"> & { ...; }) |
PropsWithChildren<...>)'.   Type '{ children: Element[];
initialRouteName: string; }' is missing the following properties from
type 'Pick<DefaultRouterOptions & { children: ReactNode;
screenOptions?: StackNavigationOptions | ((props: { route:
RouteProp<Record<string, object | undefined>, string>; navigation:
any; }) => StackNavigationOptions) | undefined; } &
StackNavigationConfig, "children" | ... 2 more ... |
"keyboardHandlingEnabled">': mode, headerMode,
keyboardHandlingEnabledts(2322)

I dont think im missing any props according to the documentation

Thanks in advance


问:
Missing value where TRUE/FALSE needed error in smcure model
I'm creating a cure model in R to predict Loan Default. I'm seeking someone to help me debug this error. I think it may have to do with my columns.

```<code>library(smcure)

smcure(Surv(DURATION, DEFAULT) ~ CHK_ACCT+HISTORY+NEW_CAR+USED_CAR+FURNITURE+`RADIO/TV`+EDUCATION+
RETRAINING+AMOUNT+SAV_ACCT+EMPLOYMENT+INSTALL_RATE+MALE_DIV+MALE_SINGLE+MALE_MAR_or_WID+
`CO-APPLICANT`+GUARANTOR+PRESENT_RESIDENT+REAL_ESTATE+PROP_UNKN_NONE+AGE+OTHER_INSTALL+RENT+
OWN_RES+NUM_CREDITS+JOB+NUM_DEPENDENTS+TELEPHONE+FOREIGN,

cureform=~CHK_ACCT+HISTORY+NEW_CAR+USED_CAR+FURNITURE+`RADIO/TV`+EDUCATION+RETRAINING+AMOUNT+SAV_ACCT+
EMPLOYMENT+INSTALL_RATE+MALE_DIV+MALE_SINGLE+MALE_MAR_or_WID+`CO-APPLICANT`+GUARANTOR+PRESENT_RESIDENT+
REAL_ESTATE+PROP_UNKN_NONE+AGE+OTHER_INSTALL+RENT+OWN_RES+NUM_CREDITS+JOB+NUM_DEPENDENTS+
TELEPHONE+FOREIGN,
model="ph", data = CD)
</code>```

Error in while (convergence > eps & i < emmax) { :
missing value where TRUE/FALSE needed

Does anyone know what this error may mean?

Attached I have a subset of the data I used.

Data

```structure(list(CHK_ACCT = c(0, 1, 3, 0, 0, 3, 3, 1, 3, 1, 1,
0, 1, 0, 0, 0, 3, 0, 1, 3, 3, 0, 0, 1, 3, 0, 3, 2, 1, 0, 1, 0,
1, 3, 2, 1, 3, 2, 2, 1, 3, 1, 1, 0, 0, 3, 3, 0, 3, 3, 1, 1, 3,
3, 1, 3, 1, 3, 2, 0, 1, 1, 1, 1, 3, 3, 3, 1, 3, 3, 3, 3, 0, 1,
0, 0, 0, 1, 3, 1, 3, 3, 3, 0, 0, 3, 1, 1, 0, 0, 3, 0, 3, 2, 1,
1, 3, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 0, 1, 1, 2, 1, 3, 0, 3,
0, 0, 0, 1, 0, 3, 3, 2, 1, 0, 0, 1, 1, 0, 1, 0, 3, 3, 3, 3, 3,
1, 1, 2, 2, 1, 0, 0, 3, 1, 0, 3, 0, 3, 3, 3, 2, 1, 1, 0, 0, 0,
1, 3, 3, 3, 3, 1, 3, 3, 0, 1, 3, 1, 0, 3, 1, 1, 0, 3, 0, 0, 3,
0, 3, 1, 0, 3, 1, 3, 1, 1, 0, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 1
), DURATION = c(6, 48, 12, 42, 24, 36, 24, 36, 12, 30, 12, 48,
12, 24, 15, 24, 24, 30, 24, 24, 9, 6, 10, 12, 10, 6, 6, 12, 7,
60, 18, 24, 18, 12, 12, 45, 48, 18, 10, 9, 30, 12, 18, 30, 48,
11, 36, 6, 11, 12, 24, 27, 12, 18, 36, 6, 12, 36, 18, 36, 9,
15, 36, 48, 24, 27, 12, 12, 36, 36, 36, 7, 8, 42, 36, 12, 42,
11, 54, 30, 24, 15, 18, 24, 10, 12, 18, 36, 18, 12, 12, 12, 12,
24, 12, 54, 12, 18, 36, 20, 24, 36, 6, 9, 12, 24, 18, 12, 24,
14, 6, 15, 18, 36, 12, 48, 42, 10, 33, 12, 21, 24, 12, 10, 18,
12, 12, 12, 12, 12, 48, 36, 15, 18, 60, 12, 27, 12, 15, 12, 6,
36, 27, 18, 21, 48, 6, 12, 36, 18, 6, 10, 36, 24, 24, 12, 9,
12, 24, 6, 24, 18, 15, 10, 36, 6, 18, 11, 24, 24, 15, 12, 24,
8, 21, 30, 12, 6, 12, 21, 36, 36, 21, 24, 18, 15, 9, 16, 12,
18, 24, 48, 27, 6, 45, 9, 6, 12, 24, 18), HISTORY = c(4, 2, 4,
2, 3, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 4, 0, 2, 2, 4, 2, 4, 4,
4, 2, 0, 1, 2, 3, 2, 2, 2, 4, 2, 4, 4, 2, 2, 2, 2, 2, 3, 4, 4,
4, 2, 2, 4, 2, 3, 3, 2, 2, 3, 1, 2, 4, 2, 4, 2, 4, 0, 0, 2, 2,
2, 2, 2, 2, 2, 4, 4, 4, 2, 4, 2, 3, 0, 2, 2, 2, 2, 2, 2, 4, 4,
2, 2, 0, 4, 4, 4, 4, 2, 0, 4, 2, 4, 3, 2, 2, 3, 4, 2, 4, 1, 2,
2, 2, 3, 2, 2, 4, 2, 4, 2, 4, 4, 4, 2, 4, 2, 4, 2, 4, 2, 2, 4,
4, 2, 3, 2, 2, 2, 4, 3, 2, 4, 2, 2, 2, 2, 2, 4, 1, 4, 4, 4, 4,
2, 2, 2, 4, 3, 2, 4, 1, 2, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 4, 0,
2, 3, 2, 3, 1, 2, 4, 2, 4, 3, 3, 1, 4, 4, 4, 1, 4, 2, 0, 2, 0,
2, 2, 2, 4, 4, 2, 2, 3), NEW_CAR = c(0, 0, 0, 0, 1, 0, 0, 0,
0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0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0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0), AMOUNT = c(1169,
5951, 2096, 7882, 4870, 9055, 2835, 6948, 3059, 5234, 1295, 4308,
1567, 1199, 1403, 1282, 2424, 8072, 12579, 3430, 2134, 2647,
2241, 1804, 2069, 1374, 426, 409, 2415, 6836, 1913, 4020, 5866,
1264, 1474, 4746, 6110, 2100, 1225, 458, 2333, 1158, 6204, 6187,
6143, 1393, 2299, 1352, 7228, 2073, 2333, 5965, 1262, 3378, 2225,
783, 6468, 9566, 1961, 6229, 1391, 1537, 1953, 14421, 3181, 5190,
2171, 1007, 1819, 2394, 8133, 730, 1164, 5954, 1977, 1526, 3965,
4771, 9436, 3832, 5943, 1213, 1568, 1755, 2315, 1412, 1295, 12612,
2249, 1108, 618, 1409, 797, 3617, 1318, 15945, 2012, 2622, 2337,
7057, 1469, 2323, 932, 1919, 2445, 11938, 6458, 6078, 7721, 1410,
1449, 392, 6260, 7855, 1680, 3578, 7174, 2132, 4281, 2366, 1835,
3868, 1768, 781, 1924, 2121, 701, 639, 1860, 3499, 8487, 6887,
2708, 1984, 10144, 1240, 8613, 766, 2728, 1881, 709, 4795, 3416,
2462, 2288, 3566, 860, 682, 5371, 1582, 1346, 1924, 5848, 7758,
6967, 1282, 1288, 339, 3512, 1898, 2872, 1055, 1262, 7308, 909,
2978, 1131, 1577, 3972, 1935, 950, 763, 2064, 1414, 3414, 7485,
2577, 338, 1963, 571, 9572, 4455, 1647, 3777, 884, 1360, 5129,
1175, 674, 3244, 4591, 3844, 3915, 2108, 3031, 1501, 1382, 951,
2760, 4297), SAV_ACCT = c(4, 0, 0, 0, 0, 4, 2, 0, 3, 0, 0, 0,
0, 0, 0, 1, 4, 4, 0, 2, 0, 2, 0, 1, 4, 0, 0, 3, 0, 0, 3, 0, 1,
4, 0, 0, 0, 0, 0, 0, 2, 2, 0, 1, 0, 0, 2, 2, 0, 1, 4, 0, 0, 4,
0, 4, 4, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 3, 0, 4, 0, 4, 0, 0, 4,
0, 0, 0, 4, 0, 4, 2, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 4, 4, 3, 0,
4, 1, 0, 4, 1, 0, 0, 0, 4, 0, 0, 0, 4, 2, 1, 0, 0, 0, 2, 4, 4,
4, 2, 2, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1, 4, 3, 2,
4, 0, 3, 0, 0, 0, 0, 1, 0, 1, 0, 3, 1, 0, 0, 3, 1, 0, 1, 0, 1,
4, 1, 0, 2, 0, 2, 2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 2, 0, 0,
0, 0, 4, 3, 0, 0, 0, 0, 1, 0, 3, 1, 0, 0, 1, 0, 0, 1, 4, 0),
    EMPLOYMENT = c(4, 2, 3, 3, 2, 2, 4, 2, 3, 0, 1, 1, 2, 4,
    2, 2, 4, 1, 4, 4, 2, 2, 1, 1, 2, 2, 4, 2, 2, 4, 1, 2, 2,
    4, 1, 1, 2, 2, 2, 2, 4, 2, 2, 3, 4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 48,
    44, 48, 44, 26, 36, 39, 42, 34, 63, 36, 27, 30, 57, 33, 25,
    31, 37, 37, 24, 30, 26, 44, 24, 58, 35, 39, 23, 39, 28, 29,
    30, 25, 31, 57, 26, 52, 31, 23, 23, 27, 50, 61, 25, 26, 48,
    29, 22, 37, 25, 30, 46, 51, 41, 40, 66, 34, 51, 39, 22, 44,
    47, 24, 58, 52, 29, 27, 47, 30, 28, 56, 54, 33, 20, 54, 58,
    61, 34, 36, 36, 41, 24, 24, 35, 26, 39, 39, 32, 30, 35, 31,
    23, 28, 25, 35, 47, 30, 27, 23, 36, 25, 41, 24, 63, 27, 30,
    40, 30, 34, 29, 24, 29, 27, 47, 21, 38, 27, 66, 35, 44, 27,
    30, 27, 22, 23, 30, 39, 51, 28, 46, 42, 38, 24, 29, 36, 20,
    48, 45, 38, 34, 36, 30, 36, 70, 36, 32, 33, 20, 25, 31, 33,
    26, 34, 33, 26, 53, 42, 52, 31, 65, 28, 30, 40, 50, 36, 31,
    74, 68, 20, 33, 54, 34, 36, 29, 21, 34, 28, 27, 36, 40),
    OTHER_INSTALL = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1,
    0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
    0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0,
    1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0,
    0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0,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200L), class = c("tbl_df", "tbl", "data.frame"))
```

Body:
I'm creating a cure model in R to predict Loan Default. I'm seeking someone to help me debug this error. I think it may have to do with my columns.

library(smcure)

smcure(Surv(DURATION, DEFAULT) ~ CHK_ACCT+HISTORY+NEW_CAR+USED_CAR+FURNITURE+`RADIO/TV`+EDUCATION+
RETRAINING+AMOUNT+SAV_ACCT+EMPLOYMENT+INSTALL_RATE+MALE_DIV+MALE_SINGLE+MALE_MAR_or_WID+
`CO-APPLICANT`+GUARANTOR+PRESENT_RESIDENT+REAL_ESTATE+PROP_UNKN_NONE+AGE+OTHER_INSTALL+RENT+
OWN_RES+NUM_CREDITS+JOB+NUM_DEPENDENTS+TELEPHONE+FOREIGN,

cureform=~CHK_ACCT+HISTORY+NEW_CAR+USED_CAR+FURNITURE+`RADIO/TV`+EDUCATION+RETRAINING+AMOUNT+SAV_ACCT+
EMPLOYMENT+INSTALL_RATE+MALE_DIV+MALE_SINGLE+MALE_MAR_or_WID+`CO-APPLICANT`+GUARANTOR+PRESENT_RESIDENT+
REAL_ESTATE+PROP_UNKN_NONE+AGE+OTHER_INSTALL+RENT+OWN_RES+NUM_CREDITS+JOB+NUM_DEPENDENTS+
TELEPHONE+FOREIGN,
model="ph", data = CD)

Error in while (convergence > eps & i < emmax) { :
missing value where TRUE/FALSE needed

Does anyone know what this error may mean?

Attached I have a subset of the data I used.

Data

structure(list(CHK_ACCT = c(0, 1, 3, 0, 0, 3, 3, 1, 3, 1, 1,
0, 1, 0, 0, 0, 3, 0, 1, 3, 3, 0, 0, 1, 3, 0, 3, 2, 1, 0, 1, 0,
1, 3, 2, 1, 3, 2, 2, 1, 3, 1, 1, 0, 0, 3, 3, 0, 3, 3, 1, 1, 3,
3, 1, 3, 1, 3, 2, 0, 1, 1, 1, 1, 3, 3, 3, 1, 3, 3, 3, 3, 0, 1,
0, 0, 0, 1, 3, 1, 3, 3, 3, 0, 0, 3, 1, 1, 0, 0, 3, 0, 3, 2, 1,
1, 3, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 0, 1, 1, 2, 1, 3, 0, 3,
0, 0, 0, 1, 0, 3, 3, 2, 1, 0, 0, 1, 1, 0, 1, 0, 3, 3, 3, 3, 3,
1, 1, 2, 2, 1, 0, 0, 3, 1, 0, 3, 0, 3, 3, 3, 2, 1, 1, 0, 0, 0,
1, 3, 3, 3, 3, 1, 3, 3, 0, 1, 3, 1, 0, 3, 1, 1, 0, 3, 0, 0, 3,
0, 3, 1, 0, 3, 1, 3, 1, 1, 0, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 1
), DURATION = c(6, 48, 12, 42, 24, 36, 24, 36, 12, 30, 12, 48,
12, 24, 15, 24, 24, 30, 24, 24, 9, 6, 10, 12, 10, 6, 6, 12, 7,
60, 18, 24, 18, 12, 12, 45, 48, 18, 10, 9, 30, 12, 18, 30, 48,
11, 36, 6, 11, 12, 24, 27, 12, 18, 36, 6, 12, 36, 18, 36, 9,
15, 36, 48, 24, 27, 12, 12, 36, 36, 36, 7, 8, 42, 36, 12, 42,
11, 54, 30, 24, 15, 18, 24, 10, 12, 18, 36, 18, 12, 12, 12, 12,
24, 12, 54, 12, 18, 36, 20, 24, 36, 6, 9, 12, 24, 18, 12, 24,
14, 6, 15, 18, 36, 12, 48, 42, 10, 33, 12, 21, 24, 12, 10, 18,
12, 12, 12, 12, 12, 48, 36, 15, 18, 60, 12, 27, 12, 15, 12, 6,
36, 27, 18, 21, 48, 6, 12, 36, 18, 6, 10, 36, 24, 24, 12, 9,
12, 24, 6, 24, 18, 15, 10, 36, 6, 18, 11, 24, 24, 15, 12, 24,
8, 21, 30, 12, 6, 12, 21, 36, 36, 21, 24, 18, 15, 9, 16, 12,
18, 24, 48, 27, 6, 45, 9, 6, 12, 24, 18), HISTORY = c(4, 2, 4,
2, 3, 2, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 4, 0, 2, 2, 4, 2, 4, 4,
4, 2, 0, 1, 2, 3, 2, 2, 2, 4, 2, 4, 4,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 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0), AMOUNT = c(1169,
5951, 2096, 7882, 4870, 9055, 2835, 6948, 3059, 5234, 1295, 4308,
1567, 1199, 1403, 1282, 2424, 8072, 12579, 3430, 2134, 2647,
2241, 1804, 2069, 1374, 426, 409, 2415, 6836, 1913, 4020, 5866,
1264, 1474, 4746, 6110, 2100, 1225, 458, 2333, 1158, 6204, 6187,
6143, 1393, 2299, 1352, 7228, 2073, 2333, 5965, 1262, 3378, 2225,
783, 6468, 9566, 1961, 6229, 1391, 1537, 1953, 14421, 3181, 5190,
2171, 1007, 1819, 2394, 8133, 730, 1164, 5954, 1977, 1526, 3965,
4771, 9436, 3832, 5943, 1213, 1568, 1755, 2315, 1412, 1295, 12612,
2249, 1108, 618, 1409, 797, 3617, 1318, 15945, 2012, 2622, 2337,
7057, 1469, 2323, 932, 1919, 2445, 11938, 6458, 6078, 7721, 1410,
1449, 392, 6260, 7855, 1680, 3578, 7174, 2132, 4281, 2366, 1835,
3868, 1768, 781, 1924, 2121, 701, 639, 1860, 3499, 8487, 6887,
2708, 1984, 10144, 1240, 8613, 766, 2728, 1881, 709, 4795, 3416,
2462, 2288, 3566, 860, 682, 5371, 1582, 1346, 1924, 5848, 7758,
6967, 1282, 1288, 339, 3512, 1898, 2872, 1055, 1262, 7308, 909,
2978, 1131, 1577, 3972, 1935, 950, 763, 2064, 1414, 3414, 7485,
2577, 338, 1963, 571, 9572, 4455, 1647, 3777, 884, 1360, 5129,
1175, 674, 3244, 4591, 3844, 3915, 2108, 3031, 1501, 1382, 951,
2760, 4297), SAV_ACCT = c(4, 0, 0, 0, 0, 4, 2, 0, 3, 0, 0, 0,
0, 0, 0, 1, 4, 4, 0, 2, 0, 2, 0, 1, 4, 0, 0, 3, 0, 0, 3, 0, 1,
4, 0, 0, 0, 0, 0, 0, 2, 2, 0, 1, 0, 0, 2, 2, 0, 1, 4, 0, 0, 4,
0, 4, 4, 0, 0, 0, 0, 4,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0, 0,
    0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,
    0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
    0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0,
    1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
    1, 0, 0, 0, 0, 0, 0, 1, 1), AGE = c(67, 22, 49, 45, 53, 35,
    53, 35, 61, 28, 25, 24, 22, 60, 28, 32, 53, 25, 44, 31, 48,
    44, 48, 44, 26, 36, 39, 42, 34, 63, 36, 27, 30, 57, 33, 25,
    31, 37, 37, 24, 30, 26, 44, 24, 58, 35, 39, 23, 39, 28, 29,
    30, 25, 31, 57, 26, 52, 31, 23, 23, 27, 50, 61, 25, 26, 48,
    29, 22, 37, 25, 30, 46, 51, 41, 40, 66, 34, 51, 39, 22, 44,
    47, 24, 58, 52, 29, 27, 47, 30, 28, 56, 54, 33, 20, 54, 58,
    61, 34, 36, 36, 41, 24, 24, 35, 26, 39, 39, 32, 30, 35, 31,
    23, 28, 25, 35, 47, 30, 27, 23, 36, 25, 41, 24, 63, 27, 30,
    40, 30, 34, 29, 24, 29, 27, 47, 21, 38, 27, 66, 35, 44, 27,
    30, 27, 22, 23, 30, 39, 51, 28, 46, 42, 38, 24, 29, 36, 20,
    48, 45, 38, 34, 36, 30, 36, 70, 36, 32, 33, 20, 25, 31, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
    0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0,
    0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,
    0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0,
    0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0,
    1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
    0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0,
    1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1)), row.names = c(NA,
-200L), class = c("tbl_df", "tbl", "data.frame"))


问:
Activate variable inside user input
Task: make PowerShell 5 to read/activate user input that contains any variable. This doesn't work on both script defined and environment variables. E.g.:

```<code>$H=4
$testParA=Read-Host "Try to input enviroment variable `$Env:windir :" #user input is $H
$testParB=Read-Host "Try to input variable `$H :" #user input is $H

Write-Host $testParA
Write-Output $testParA

Write-Host $testParB
Write-Output $testParB
</code>```

Result:

```<code>> $Env:windir
> $Env:windir
> $H
> $H
</code>```

Expectation:

```<code>> C:\Windows
> C:\Windows
> 4
> 4
</code>```

Original task: In a text generator PowerShell script, let users to customize text, and where to place the serial counter variable "$serial". E.g.,  "some text $serial some other text"

No-duplication: This question has been marked as duplicate from "https://stackoverflow.com/questions/1667023/expanding-variables-in-file-contents", but not really. The answer is surely duplicated, but the question part is very different (You have to know "expand variables" to be able to find this question from searching, which is why I was unable to get answers before posting this question), and could have other methods to achieve the same or a better result. In general, on closing this question will only cause more people who never heared of "expand variables" to further create similar questions. There is probably a better method than simply closing this question.

Title: Activate variable inside user input

Body:
Task: make PowerShell 5 to read/activate user input that contains any variable. This doesn't work on both script defined and environment variables. E.g.:

$H=4
$testParA=Read-Host "Try to input enviroment variable `$Env:windir :" #user input is $H
$testParB=Read-Host "Try to input variable `$H :" #user input is $H

Write-Host $testParA
Write-Output $testParA

Write-Host $testParB
Write-Output $testParB

Result:

> $Env:windir
> $Env:windir
> $H
> $H

Expectation:

> C:\Windows
> C:\Windows
> 4
> 4

Original task: In a text generator PowerShell script, let users to customize text, and where to place the serial counter variable "$serial". E.g.,  "some text $serial some other text"

No-duplication: This question has been marked as duplicate from "https://stackoverflow.com/questions/1667023/expanding-variables-in-file-contents", but not really. The answer is surely duplicated, but the question part is very different (You have to know "expand variables" to be able to find this question from searching, which is why I was unable to get answers before posting this question), and could have other methods to achieve the same or a better result. In general, on closing this question will only cause more people who never heared of "expand variables" to further create similar questions. There is probably a better method than simply closing this question.


问:
Creating byte array with integers larger than 256
I am working on a Python application that sends a binary stream over serial to a microcontroller. My initial use case is simple - send 4 integers which represent the binary values to send over the serial port. I need to translate the array into a byte array or a stream of bits or bytes. Using bytearray works great unless one of my integers is > 256 (more than 1 byte).

Here is the code and the first 3 elements of the buffer list are 1 byte integers (<256). But the last element (dataCRC) is represented by a 14-bit integer (8444 in my case).

```<code>dataCRC = 8444
buffer = [128, 32, length]
buffer.append(dataCRC)

barray = bytearray(buffer)
</code>```

This raises the error that each byte must be in the range (0,256). How do I break up my last buffer element (the 14 bit number) into 2 bytes?

Body:
I am working on a Python application that sends a binary stream over serial to a microcontroller. My initial use case is simple - send 4 integers which represent the binary values to send over the serial port. I need to translate the array into a byte array or a stream of bits or bytes. Using bytearray works great unless one of my integers is > 256 (more than 1 byte).

Here is the code and the first 3 elements of the buffer list are 1 byte integers (<256). But the last element (dataCRC) is represented by a 14-bit integer (8444 in my case).

dataCRC = 8444
buffer = [128, 32, length]
buffer.append(dataCRC)

barray = bytearray(buffer)

This raises the error that each byte must be in the range (0,256). How do I break up my last buffer element (the 14 bit number) into 2 bytes?


问:
internationalization with mongodb
I'm working with a project using Spring boot and Mongodb which support i18n but I don't know if mongodb support multi language and how it work.

Does TextIndex support multiple languages? How to set it up?

Sorry for my bad English, if anyone know something please let me know! Thank you so much!

Title: internationalization with mongodb