Latest Questions

Ag-grid: how to size columns to fit contents?

Ag-grid has a sizeColumnsToFit function that sizes the columns to fit the screen, but what I want is to size the columns to fit the data. In other words I want

apple pay option not coming in stripe

backend @app.route('/create-payment-intent', methods=['POST']) def create_payment(): try: data = json.loads(request.data)

How can I center an entire DIV tag [duplicate]

I have a problem that I can't figure it out. I just started learning HTML, CSS, JS and BOOTSTRAP. My question is how can I center an entire DI

TypeError: doc is not a function at addSubCollectionDocument

I'm trying to add a new document to a non-existing sub-collection in a document(solutionsCollection/docID/commentsSubCollection). But I'm getting this error mes

Change language in DatePicker Ant Design

I have some problem with change language of month and days in my DatePicker from Ant Design. I want my DatePicker looks like this: want I try to use this https:

Subprocess $Env:Path python: The filename, directory name, or volume label syntax is incorrect

I am trying to change the windows environment variables, but I am having trouble doing so. Before I tried to use os.environ() I tried out using powershell comma

Trouble to deploy azure functions

I'm having trouble when trying to deploy via GitHub actions integration in the Azure Function. The workflow message returns me: Cleaning up temp folders from pr

coredns giving "network is unreachable" errors

I've got a cluster with Flannel as the CNI. As a check to make sure everything was working, I deployed some dnsutils pods, but they can't seem to do any dns res

Modifying Schema only for one document

I'm creating an application in the MERN stack and I stumbled upon a problem. I will start by explaining how that app is going to work. So, in that application u

MKdocs-readTheDocs: How to set the Home page?

Yes, this is a rookie question, but its not clear to me from the documentation how to set up the home page. I get a 404 on the home page. Not sure what its miss

how to print all parameters of a keras model

I am trying to print all the 1290 parameters in dense_1 layer, but model.get_weights()[7] only show 10 parameters. How could I print all the 1290 parameters of

Django- link answer choice to question and survey

I am trying to create a number of surveys in Django and put them in a survey index page. I have run into an issue: Up until now, all of my surveys had questions

Adding excel formula to appendRow

I am new to Apps Script, but I have a code that fills form data in to a spreadsheet. It's working fine, but I want to make a hyperlink using the coordinates fil

Why does the PrintWriter class (and other writers) require a call to flush after writing?

I have noticed that some I/O Classes in Java (and a lot others, like the BufferedWriter and FileWriter), require a call to flush() after writing. (With the exce

Locating all the tables on one spreadsheet using Excel VBA

I have a few spreadsheets with various tables in different formats. My task is to locate and identify anything on the spreadsheets that can be considered a tabl

why my react native dotenv is not working?

I want to use react-native-dotenv but its not working. https://github.com/zetachang/react-native-dotenv I created a .env file and added a FB_ID=21221 then I go

SwiftUI - Snapshot a variable as a value instead of a pointer so it is not updated during DragGesture .onchanged lifecycle

I am trying to move a CGPoint (greenPoint) by moving another one (bluePoint). The distance and angle must remained the same. In order to capture that, I store t

Keep gradle daemons fresh & alive

I have a custom CI runner which builds our Gradle projects. The issue we are facing is that the Gradle daemons get stopped very quickly and so each job takes a

go application build with bazel can't link when running inside container

I am trying to containerize my application build, though, when running the build that uses bazel with bazel-gazelle inside a container I will get this error: $

Unable to get Rocket Chip waveforms for GTKwaves

I want to run a program on Rocket core and observe all the signals in corresponding registers in GTKwave (e.g. PC, register file, ALU registers and wires etc.)

Async calls within setInterval where every next is dependent on previous

I have a setInterval setup which internally calls an API. Based on the api response I manage previousState & currentState variables. I need to make sure tha

Bind spatial data frames

I have a long panel dataset (Data_Base) with the name of the 32 states in Mexico through 28 years in time (928 obs). I have in another .rds file the spatial dat

error: missing FROM-clause entry for table "x" Express

Trying to fix up my first node/express GET request. Having some trouble getting it working though. I currently am getting this error: error: missing FROM-clause

openpyxl ImportError in Airflow docker when using pd.read_excel()

When using pandas pd.read_excel() in an airflow task inside a container I get the openpyxl error below. I tried installing openpyxl using poetry and even using

failed to run region growing implementation using python

I'm trying to run an implementation of region growing for point clouds using python based on the documentation given by pcl. The shown error appears: C:\Users\y

Discord.js How to find all the servers a different discord user is in

I want to make a website where people can change what the bot does on their server. I'm currently using Autocode to make it (using discord.js). I also don't kno

Using If in RecyclerView, doesnt show all the item of the list

I am trying create a RecycleView for my chat application and to align the sent and arrived messages to the left and right. I used an if state to check if that i

VS Code's toggle-comment Keyboard Shortcut isn't working when I use Jupyter Notebooks

The default VS Code keybinding for toggling line comments isn't working in Jupyter Notebooks. The shortcut Ctrl+/ works fine when I use it in .py files, and it

Problems with Ajax calls on a shared server

I've a web site with one particular page that has worked well for a few years but my host has recently moved me to a new server which is a shared platform. I do

Visual Studio 2022 Keeps Deleting Page.aspx Code Behind

Every time I add a label, spaces, buttons, or make any edits to the page via Design mode, it deletes almost all of my code behind. Visual Studio just started d