Latest Questions

how to perform string operation in an input string and get the desired output

I have to write a shell script to accept the product order details as string input and display the total order amount and number of order under each category.

how to make DataFlow from CSV in googleDrive to tf DataSet - in Colab

according to the instructions in Colab I could get buffer & even take a pd.DataFrame from it (file is just example)... # ... authentification file_id =

SQL Over/Under Column Comparison

I am trying to pull rows where the Net_Qty is +/- 300 of the Order_Qty, but I think I might just be missing something with the syntax. SELECT DISTINCT o.Ord

Laravel Vue.js API: axios, FormData() is empty

I'm trying to update some data in Model using API in Laravel and Vue.js but I can't do this because FormData() is empty, I'm checking the data from formdata us

Im missing something, I need to display 9 cards, but I can only get 1 out

so I'm trying to display 9 jokes. I can only display 1 joke now, This is what it says on the console : Object { error: false, amount: 9, jokes: (9) […] }

How to call a function once in a while loop

I have a robotic code, that does the following: camera starts processing and taking images Mounting Holes (hough transform) function detection is activated The

React-intl with a custom react components library

I'm having a hard time to create a react library that supports translations. Let's say I have this structure components |- Button1 |- Button1.tsx |- ind

How can I extract data from "List <Contact>" of object and paste it into file.txt in C#?

static List<Contact> ListOfContact = new List<Contact>(); //Sorce of data: public void SaveContactToFile() //method to save a data { try

Postgresql - Renaming the key of all objects in an array of a JSON column

PostgreSQL 13 The goal is to rename all src keys in the photos array to image. I have a table plans which has a column json with a simplified structure similar

On a network, using VBA how to find the machine where a file is open

Sometimes I need to open a file that is already open, and I would like to close it. For that I need to know which machine on the network has it open. How would

AppInsights telemetry not co-existing with SeriLog logging

my Program.cs is configured like this using Infrastructure; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Au

JavaFX: ComboBox with custom cell factory - buggy rendering

I have a ComboBox with a custom cell factory, but the rendering is buggy and I don't know what I'm doing wrong. The ComboBox's data is based on an enum, let's c

C# Calling an azure function http trigger from azure function timer trigger

I already have an HTTP trigger function that I have published in Azure. I want to run the HTTP trigger on daily basis. So I thought I would create another timer

Measuring OpenMP Fork/Join latency

Since MPI-3 comes with functionality for shared memory parallelism, and it seems to be perfectly matched for my application, I'm critically considering rewritin

I am encountering an error on Julia while trying to install and use Distributions module

I am encountering an error on Julia while trying to install and use Distributions module. I am not facing any errors while installing the module but it displays

DFS in virtual graph with cycles

Using a function that generates a list of "adjacent" values from an input value, i.e. Function<Object, List<?>> adjacent; one can "traverse" any "a

ValueError: shapes (4,166) and (12,12) not aligned: 166 (dim 1) != 12 (dim 0) in Two-Way ANOVA

I have trouble processing data with Two-Way ANOVA this is my data and I wanted to check if there's a difference in preference of Genre by country by using Anov

How to create an array of random security codes in Java? [duplicate]

I am trying to write a program that would ask the user how many security codes he wants to generate, then it would output as many codes as he

No matter how much I read Spring Security is an alien concept. Any pointers?

I have the following requirement that I need to implement on a project, but not matter how many books or articles I read on spring security I cannot figure out

Tomcat static content path security with Spring

I'm trying to setup static content serving on my Tomcat 9 server So I specified it inside server.xml <Host name="${serverhost}" appBase="webapps" unpackWARs=

Update indexes mongodb using Spring

Does someone know what Spring application properties need to be specified so that the index is overwritten (if already been created) with new parameters. For ex

Foreign key 'FK_NhanVien.....' references invalid table 'PhongBan". Why invalid?

Foreign key 'FK_NhanVien.....' references invalid table 'PhongBan". Why is it invalid? create table NhanVien( MaNV varchar(9) not null primary key foreign k

Vector layer being drawn before the Openlayers map?

this is my code for the drawing const drawLines = () => { const points = [[-89.8802, 32.5804], [44.419834, -97.568073]]; const featureLine = new F

How to use SearchView with fragment

I am using a RecyclerView and on the top of the RecyclerView I am using a SearchView but the SearchView is not focusable. I have tried with EditText too, but th

Flutter: Voice Detection Trigger Phrase

I am currently using the speech_to_text package to add voice control to my Flutter app. This voice detection is triggered by a button click. Is there any way to

Jekyll generate html code with newline problem

I use jekyll to generate my blog, and there is the code: ## 🤹🏽 Skills ### **Familiar with** <img align="left" alt="python" height="35px" sty

Check if value exists on one date missing on next

I have one table with below column Table I want to find missing nodes Missing node definition: node present on day and missing the next day will be missing node

openssl_encrypt does not return anything

function encrypt($text,$key){ $method = 'AES-256-CBC'; $size = openssl_cipher_iv_length($method); $iv = substr($key, 0, $size); $openssl = open

How to solve thymeleaf template parsing error

I'm trying to present a html to screen but I'm getting template parser error from thymeleaf. Here is my code and error: index.html: <body> <h2>M

Django Migration from Github actions

Hello I have a database in Google Cloud Platform and I am trying to figure out how to run a django migration from github actions once I have deployed my app to