Latest Questions

how to move Javascript created DIV to bottom of page

I have swagger ui HTML page. there is generating HTML tags and divs with javascript so I want to move this whole description div to the bottom of the page. but

Power BI summarized or grouped? How to work out ratio

I have spent hours trying to solve and I dont' even know what to search an answer for: This is my base data table in Power BI PA PA FTE PERSON PERSON FTE Anne

Factory method in C++: why additional Creator interface and does factory method need a class?

I am currently unclear what constitutes the Factory Pattern in C++ given many implementations and examples in the wild. https://refactoring.guru/design-patterns

Azure Storage (classic) vs Azure Storage (V2) code not working for V2 storage

I have a worker role running and checking to see if data exists in a storage hosted on Azure. My code works when I use the connection string for a classic type

react-router-dom v6 params only numbers

I want add number regex in may param in react-router-dom v6. it work fin in v5 like it: <Route path="list/:id(\d+)" element={<MyComponent/>} /> b

Bubble sorting using function and pointers

I have this function code to bubble sort an array using pointers. However, I do not understand the second for loop (the inner one): Why did they do p < a + n

Flask SQLAlchemy Foreign Key Relationships

I'm having a lot of trouble getting my head around foreign keys and relationships in SQLAlchemy. I have two tables in my database. The first one is Request and

How can I fetch the length of a character array and put it in an array?

I'm working with my STM32 but since I'm new to c/c++ (coming from c#) i find string operations a bit difficult. Until now I'm sending serial like this: strcpy

FDConnection Informix Timeout Values are ignored

got here a FDConnection on the form . FDConnection.Params.DriverID:=Infx; FDConnection.Params.LoginTimeout:=15; FDConnection.Params.ReadTimeout:=30; FDConnectio

Deploying Solana Metaplex contracts for further extending

Helloy guys, does smb know, how to deploy metaplex smart-contracts separately from this repo??? Did smb tried it? https://github.com/metaplex-foundation/metaple

Packaging a Python script and the modules it needs

I developed a Python script that uses some libs (Pandas, Numpy, bs4, etc.). The problem is that the customer environment is shared, so I cannot install these li

Remove element from a list based on condition in pandas dataframe

a= {'A' : [1, 2,3,4], 'B' : ['FOOTBALL','BASKETBALL','HANDBALL','VOLLEYBALL'], 'C' : [[5,10,15,40],[1,4],[20,10,40],[10,40]] } How can I remove the element 40

How to map specific column in entity class

I have two tables Users and UserRoles. These are the entity class I have created, @Entity @Table(name="users") public Users { @Id @Column(name = "id") private

How do I manipulate the contents of a stat() struct?

I have a stat struct, and I'm looking for a way to get data out of it to be manipulated. The program will successfully run and print the desired st_mtime value,

Discord.py commands not running

** ** UPDATE: SOLVED Hi, So im making a bot with the code below in python and i cant figure out why the commands arent working in discord. the only one that wor

Asking the user for input until they give a valid response

I am writing a program that accepts user input. #note: Python 2.7 users should use `raw_input`, the equivalent of 3.X's `input` age = int(input("Please enter yo

Calling JDBC from Node.js: java.lang.UnsupportedClassVersionError

Not quite a duplicate of this Q&A when I try to use a JDBC driver from Node.js. For reference, Node.js runs initialize.js which is the following script: var

Gatling compilation failed

I'm trying to build https://github.com/gatling/gatling but the compilation fails. The steps I undertook: Installed sbt using the documentation. Clone the githu

Perform sklearn DBSCAN on PySpark dataframe column

I have a Spark dataframe that looks like this: +-----+----------+--------+-----+ |key1 |date |variable|value| +-----+----------+--------+-----+ | A49|2022

Pressing Scaffold's back button:Looking up a deactivated widget's ancestor is unsafe

I get the following error when I hit scaffold's back button: The following assertion was thrown while finalizing the widget tree: Looking up a deactivated widge

Wildfly log4j2 logstash

I managed to use log4j2 with wildfly 26. I'm strugling to send the logs to logstash. I tried with gelf and socked appenders. <Configuration status="warn" nam

How do I disable wc-cart-fragments without console error?

I have a client who does merchandise 'drops' where they receive a lot of traffic. In order to limit some of the excess load on the server I am disabling AJAX wc

Zerodha Kite Publisher Button in React Native

I wanted to use Kite Publisher button in React native , I have used it in React but not sure how to use it in React Native?

Upload file from html when block public access is true

I am using django-s3direct to file upload https://github.com/bradleyg/django-s3direct Using IAM role setting because I upload the file from the server on ECS co

How to update @type/packageName according to updating packageName?

My current packages - - [email protected] - @types/[email protected] I updated my lodash version to minimum stable one as [email protected] Now, what will be the @ty

Filtering in Django which depends on first field

Suppose I have 3 fields of a Car Shop. those are Condition, Brand, Model . class Car(models.Model): ConditionType=(('1','New'),('2','Used'),('3','Reco

How can I speed up the aiohttp parser bs4?

The task is to get data from the site. I have 800 URLs to request. But it takes a long time .I use aiohttp. At this stage, I have received links, by clicking on

Trying to understand the Hutchinson diagonal Hessian approximation

I am reading about his paper [1] and I have an implementation taken from here. At some point of the code the diagonal of the Hessian matrix is approximated by a

Find Binary in a dir of text files Python or Bash

I have a series of log files that are all text. If a certain error happens it results in binary being inserted in the text. I want a Python or Bash script that

Organize large states with redux toolkit

I am fairly new to redux and redux-toolkit, but I am fairly familiar with the whole concept of stores (coming from a vuex background). I have an issue organizin