Latest Questions

In Entity Framework Core 3.1, what is the best way to dynamically provide table name to a query?

I have seen options for .NET 5, .NET Core 2.0, etc. but none of them seem to work for .NET Core 3.1 What is the best way to provide table name, in a variable, t

Spring one Controller for nested entities

I'm working on a school project and I'm not sure how to implement this case. I would like to implement it as best practice. Right now I have 3 entities -> St

Is there a way to make a button to loop user inputs for a number of times before terminating?

I have been turning the popular guessing game into an app using Java in Android Studio. I want it so that a user can make up to five trials before the answer is

make a div show on page load

const links = Array.from(document.querySelectorAll("a")); const tabs = Array.from(document.querySelectorAll(".tabcontent")) const hideAll = () => tabs.f

Writing multithreaded code to generate incremental index

I want to write a code in following scenario : we want to design an invoice generator.this invoice generator also generates an incremental invoice no .Also note

Compile Apache without SSL

Without going into reasons why, I need to compile Apache on Redhat without OpenSSL. I am using the following to compile Apache 2.4.53 ./configure --prefix=/opt/

Fixing Layout by Removing Spaces of React Grid Layout When Set Compact Type Null

I am using react-grid-layout package for my layout design. I want to use compactType=null configuration for free items moving on the layout. But when I change t

HashMap with key referring a field in the value [duplicate]

I want to create a hash map from a vector of entities. I want the key to be a reference to a field in the corresponding value. This is somethi

How do I refresh a cell using Vue3 composition and child to child communication with AG-Grid

Let's say I have two child components A and B A has a button that should add a value to a grid select box column and B has the grid which has a vue select box f

Use PowerShell module in ARM deployment script

I have an ARM template in which I wish to execute a powershell script. In this question it is hinted that it should be possible to install powershell modules in

How to delete table records on cascade without the program freezing?

this is my delete button method, it takes the college name as a primary key and deletes it so the whole record gets deleted. However, it can't be deleted becaus

How can i position a logo image from a list react component?

i would like to find the way to position the logo images like it looks here enter image description here I couldn`t find a way to position multiple logo images,

Custom Print driver - The system cannot find the file specified

I have a custom print driver with all the source code. When I sign the driver using Inf2Cat.exe and signtool.exe, it generates a catalog file and signs the driv

Have some questions on python regular expressions

Ok, I've got this script: #!/usr/bin/python3 import requests from bs4 import BeautifulSoup import re def get_html(url): r = requests.get(url) return r

C sharp code terminates without exception

I have this code: public static bool Run(IntPtr handle, IntPtr imethodName, IntPtr iobject, IntPtr itransaction, IntPtr imethod ) { try { Stri

Netlogo pauses after plotting in Python, need to close plot to continue

My code pauses after plotting in python, and won't continue until I close the plot. I am using matplotlib for plotting. to plot-in-python (py:run "im

How do I generate an Odoo PDF report from Python?

I'd like to generate a PDF containing all stock.report_picking reports for all deliveries for a given sale order, merged into one file. I've already done someth

I am unable to delete items in my React Native app

I am unable to delete items. This is App.js file main file: import { useState } from "react"; import { StyleSheet, Text, View, Button, TextInput, Fl

Android Studio no tools.jar found

I use the latest version of Android Studio. If I try to build an APK then I get the following error message: "Cannot determine path to 'tools.jar' library for A

How to view the exported functions of a smart contract in Elrond

Is there any way to see the exported functions of a smart contract deployed by somebody else given the address of the contract? I tried in explorer and all I wa

Why doesn't the AWS studio doesn't show up the "one to many" modal relationship?

There are 3 modals in the aws-amplify studio. They are as follows: It was quite straight-forward to add the relationship for the Video modal. But for the User

JavaFX: Data binding between two observable lists of different type

I have an application that manages (bank) accounts. In my data model, I have defined an observable list for the accounts: private final ObservableList<Accoun

SyntaxError: Unexpected token '||=' on import of pdfjs-dist

Trying to use pdfjs-dist in node js app Steps: created new node js app (module) then:- npm i pdfjs-dist package.json is:- "name": "testpdf", "version": "1.0.

How can I print a function from JavaScript to html

I'm trying to make a out of '*' and I got the code right because it works in the console but when I try to print it in the html document it does not work functi

How to write variables in between single quotes in a textfile in python?

I have a bunch of strings to write in a text file. I want the strings to be written in simple quotes in the file, so I tried using this code: file.write("the va

mysql table formatting and infile issue

Each time I go and create my table and then add the .csv file, it keeps not fully loading in all of the data. Below is my code: CREATE TABLE Parts_Maintenance (

Thread 1 "my_app" received signal SIGSEGV, Segmentation fault when accessing API from another library

From my C++ application my_app compiled using G++, I am invoking several API's from another shared library tool.so (tool.so also developed using C++). Each refe

TableView Not Being Populated [duplicate]

Does anyone have any idea why the table is not getting populated with the products? MainController class: //imports Public class MainControll

Python canopen identify nodes

In the documentation I found a simple example how to scan the network for nodes, resulting in node_id values: network.scanner.search() # We may need to wait a s

SQLalchemy order_by hybrid_property resulting in "No such table"

My main goal is to make multiple filter options for a Car class. I can easily filter by distance and by the construction year, as they are just attributes of th