Latest Questions

How to speed up integer nonlinear programming with 1446 variables in python Gekko?

I'm solving an integer nonlinear programming problem with python gekko, where there're 1446 integer variable, 31 constraints of the linear combinations of there

Vagrant error (from C:/HashiCorp/Vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/action/runner.rb:89:in `block in run')

from C:/HashiCorp/Vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/providers/virtualbox/action/import.rb:13:in `call' from C:/HashiCorp/Vagrant/embedded

Object passed by server cannot see the function in a class

I am passing an object from server and I cannot see it pass functions. here is my code. const express = require('express'); const app = express(); const path =

How do I take the users input and have the program loop that many times for a for loop? [closed]

How do I take the user's input for how many legs are on the trip and have it loop that amount of times? int counter = 0; int gas = 0

Can't save video to Application directory - Flutter

I am working on an app where I want to record a video to file with the timestamp as name. As I understand it you should be able to use the returned XFile and us

A Function That Check for Complete Cases in Several File Fail When Specifing A File Range

I have created a function that checks a string of CSV files for complete values and creates a table with these values. The function takes 2 arguments, the first

Check if a list is defined and avoid the "UNDEFINED" error

In the original TI-BASIC (for TI-83/84+) is there a way to check if a list has been defined? Currently calling dim(⌊LIST) will return an error if the lis

WPF Drawing Wheel Color Picker?

I'm have try drawing color picker by Ellipse LinearGradientBrush. <Ellipse Width="200" Height="200"> <Ellipse.Fill> <VisualBrush Tile

How to split csv comma separated value as single row in a new column using pyspark

I have a log file in csv which has a column contains a list of filepaths separated by comma. I want to split those filepaths into new rows using pyspark(or exce

How can I access camera and take photos within my R Shiny App? [closed]

I am willing to make my Shiny App accessing the camera and take photos every 5 seconds in the background. I do not want to see the photos on t

Tweepy Stream Error "Stream encountered HTTP error: 403",

i have elevated access and turned on OAuth 1.0a, therefore i have access to the Twitter API v1.1. I try to stream specific keywords, however i always get the er

Java For Loop Repeating Sequence Triangle Program

Can someone help me write the program in Java that prints the following triangle? I'm having trouble coming up with a solution. Example User input: Enter increm

How to get data from one controller by calling it from another controllers in Express without circular dependencies?

I am building an API using express js. I have structured it so that each data model (e.g. user, organization, etc.) has their own modules as such: router - vali

Type error for tfrecord when training my Dl model

I am trying to create the train records for training my dl and I am using the following commands to change the XML annotation files and images to the train file

How to fix: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_80_nts_x64'?

I get this error while attempting to run a php command from cmd.exe on Windows 10 pro. Looking in the ext folder, I can see I have the dll. I also have this li

Add column containing status to table based on number of occurrences

My SQL table contains two columns: Order and Order Line. Now I would like to add a third column (Status) to my table to indicate whether it's a single or multi

Wordpress | echo attribute_name and _value

I am using flatsome theme and i have a theme action hook called flatsome_product_box_after. Basically he is located after the product picture on my Shop Catalog

Parent Process Directory not recognized by the Icon and Background Image fields in Windows Terminal

Windows Terminal version 1.12.10732.0 Windows build number 19043.1645 Issue Forgive me if this has been addressed already somewhere else, but I realized that wh

Multiple processes running bash on a ssh server

When I run the "ps" command, I can see all the processes I'm running, but for some reason, there are two identical processes(except for the PID ofc) running bas

How do I ensure assets are present with Rail 7, cssbundling-rails, jsbundling-rails in test mode (RSpec)?

I'm upgrading a large, commercial (proprietary) Rails 6 application to Rails 7. We never used Webpacker, and are instead going directly from bundled gems for th

How to connect MS Sentinel with GN3 network?

I am trying to use a GNS3 network as input data to Microsoft Sentinel. My GNS3 server with GNS3 network is running on a virtual Linux machine, so I can monitor

Can't login into admin URL on production with Django 4

Can't seem to login into Django admin URL on my production but it works fine on my local. For context, currently my site does not have SSL. Debug is set to Fal

How to add color definition in 'pygltflib' python library to 3D triangular mesh?

The following example generates a 3D object using arbitrary triangle definitions (vertices and connectivity matrix). https://gitlab.com/dodgyville/pygltflib#cre

Python send logs via ssh tunnel not working

I have a simple test application in python that I would like to run through ssh tunnel: Here is the application code : import logging import logging.handlers m

Reduce time in searching a list of strings with Regex

I have 130,000 records of strings. I want to find the number of occurance of each string element in those 130,000 records by doing the regex search for each rec

How to use overflow with flex-grow

I have this code: html, body, #container { width: 100%; height: 100%; } #container { display: flex; background: #ddd; } #width { width: 200px;

TypeError: '<=' not supported between instances of 'str' and 'float'

I want to find the number of rows of clin dataframe where the OS_MONTHS value is <= 12.0. The values in the OS_MONTHS are float. This seems like a trivial qu

Using nested Quarkus tests with different test profiles

I want to create a test case for a class Foo. That class Foo gets an instance of Bar injected; however, there are different implementations of Bar, and the deci

pyarrow dependency custom build wheel

I am developing a python package using pybind11 which depends on pyarrow to interop between data types in python and C++. Therefore I build apache-arrow with th

No context error in Java, but the context is set immediately after window creation [closed]

I'm trying to make a game using LWJGL 3, but I get this error: No context is current or a function that is not available in the current contex