Latest Questions

C++ convert hex to std::vector<unsigned char> [duplicate]

I am using this code from Integer to hex string in C++ to convert std::vector to string to insert on a database. It is working, but now i need

Why does Dart expect a value of type dynamic instead of T in a generic class [duplicate]

So I'm working on a flutter app and created a generic dropdownbutton class that I want to fill with objects from a database. The dropdownbutto

Modify Odoo 14 Export to Excel function (bulk export)

I'm looking to change the behaviour of Odoo 14 Export to Excel function. At the moment if I select at the same time several records of a model and run the expor

Is it possible to drag & drop between custom VS Code tree views?

The 1.66 (March 2022) release introduces a TreeDragAndDropController API which allows for handling drag & drop events for custom tree views. However in the

Hyperledger, blockchain explorer launching fails. Can't connect to mychannel

By using this tutorial i have downloaded fabric's files by this command: sudo curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootst

How to represent sparse matrix (including zero elements) in C using linked list?

I want a code that represents a sparse matrix including zero elements using linked list, I basically want the output to be like this: 1 0 0 0 0 6 1 0

I can't seem to define variables in my code, because document.getElementById( ) won't insert the value in it [duplicate]

I am trying JavaScript and HTML with a little CSS (that is not required), and I can't seem to define this variable. I have the element id wit

VS 2022 errors ENC0020, ENC0021 even though code changes were made prior to starting debug session

Does anyone know how to solve this problem? I have a solution with multiple projects, including: 2 Class Libraries, 1 REST API server, 1 Web server, 2 REST API

Tailwind default color classes not working

I'm building a React application using Tailwind CSS Framework. I have used NPM to install tailwind in my react app in the following manner: npm install -D tailw

nuget “-Allversions” is invalid

I am migrating all packages from nuget. Server to Baget and I have a problem: I used the nuget list command in the migration. But I found that the -allversions

failed to get data from my contract using the navbar (web3 react hooks async function)

I'm trying to build My first react Dapp! The problem I encounter is the data doesn't load only when I'm refreshing the page instead of navigating with the navba

HTML name/value button attribute not being sent via POST request to server

I am currently using HTMX and Django to process button clicks within a table that adds the selected item to a list. I am trying to use the name/value HTML attri

Android Studio stuck 'Connecting to emulator'

I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' scree

How do i create a single SparkSession in one file and reuse it other file

I have two py files com/demo/DemoMain.py com/demo/Sample.py In both of the above files i am recreating the SparkSession object , In Pyspark,how do i create a S

Admob Android SDK 20.x : how to init InterstitialAd?

I update my app with Admob Android SDK 20.x. In the previous versions of the SDK, it was possible to do something like this (in order to avoid to repeat the cod

How to animate moving each text -30deg [duplicate]

I have a Problem that my text is moving x-direction instead of 30deg. I need to move the text 30deg along. I use transform: rotate (30deg) and

For nextJS installation npx create-next-app stuck on installation

The create-next-app isn't responding it is stuck midway through the installation with zero installation progress and its been like this for more than 10 mins c

React console.log not showing array values

Console it printing Array [] instead of values. I have checked the code but figure it out. Why doesn't console.log show me array values when i click button? imp

Will HttpClient api gateway calls work on kubernetes cluster?

Hello I have worked on API gateway for a identity service. I used HttpClient and currently call the identity service with localhost. My worry is when we deploy

how to scale down absolute positioned elements in the right way using CSS

i would like to ask how to scale down elements given absolute position so that they dont distort on reducing the screen size. Like i have attached an image belo

c# how to add Button to array and set text of all buttons

Hi my problem is i want to add buttons to array size: 65 and there is a problem here's my code: Button[] buttonsa = new Button[65]; for (int d = 0; d <= but

Error validating formula for calculated column

I'm trying to make up a calculated column that evaluates an existing column with a CASE statement. The following code works fine: CASE WHEN Technician_Produc

IndexedDB Database version change not triggering onupgradeneeded

I have a function that basically grabs a bunch of delivery jobs from the remote database and saves them to the indexeddb for offline backup. After each download

Convert Json file to a serializable string using python

I have a json file like below {"a": "a_value", "b": "b_value" } I would like to convert it to the below using python3 {\"a\": \"a_value\", \"b\": \"b_value\"}

Error when importing numpy in Pycharm and Spyder under MacOS Monterrey

I'm trying to set up Pycharm with python 3.9.10 under MacOS Monterrey, but when I try to import numpy I got the following error, the same happens with Spyder. I

Print object key/values in a csv format

I'm trying to print a object in comma seperated strings format. but I'm unable to understand how to concat keys for objects. Here is an example. let obj = {

Foreach for Categories

i have this data, I want to loop with categories for each question. Right now all I can do is loop by displaying sequentially for each question (as in the image

Express routes working with url params but not with specific sub routes

I'm building an API for my web app and I was able to successfully send requests to the routes in Post.js when they only had url params. But when I try to create

Exception has occurred: ValueError too many values to unpack (expected 3) when attempting to unpack an array

I'm trying to speed up keypoint detection by pre-generating the keypoints of the objects I want to detect before passing them into FLANN for detection. I'm gett

Strapi V4 how to modify data response for a component (dynamic zone)

Imagine a case where an editor adds a “Latest Products” component to a page using dynamic zone: they add a title, a summary, and then the latest pro