Id
int64
4
8.51M
PostTypeId
int64
1
7
AcceptedAnswerId
int64
7
75.5M
ParentId
int64
4
41.8M
Score
int64
-208
27.7k
ViewCount
int64
11
12.4M
Body
stringlengths
0
45k
Title
stringlengths
2
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
225
CreationDate
stringdate
2008-07-31 21:42:52
2011-12-14 18:48:47
LastActivityDate
stringdate
2008-08-01 12:19:17
2023-03-05 04:40:26
LastEditDate
stringdate
2008-08-01 13:54:25
2023-03-05 03:12:45
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
-1
21.1M
Tags
listlengths
1
6
75,640,014
1
null
null
0
4
I am using Garuda, an Arch based Distro with xfce desktop on a Lenovo Thinkpad T480 with i7 8 log. Cores and 32 GB RAM. I installeda qemu and virt-manager via: sudo pacman -S qemu virt-manager sudo systemctl start virtlogd.service sudo systemctl enable libvirtd.service sudo virsh net-start default** sudo pacman -S ebta...
How to exchange files between Windows 10 guest VM on Linux Arch Host using qemu virtmanger and guestmount while VM is running
CC BY-SA 4.0
null
2023-03-05T03:19:25.013
2023-03-05T03:19:25.013
null
null
14,769,192
[ "qemu" ]
75,640,010
1
null
null
-1
12
I have used the `System.exit()` function inside the if...else block, but it is showing my syntax errors and runtime errors, one of the major errors is: > main.java:58: error: method exit in class System cannot be applied to given types; System.exit(); ^ required: int found: no arguments reason: actual and formal arg...
Error for the usage of system exit function
CC BY-SA 4.0
null
2023-03-05T03:17:59.183
2023-03-05T03:17:59.183
null
null
17,842,041
[ "java", "java.util.scanner", "system.exit" ]
75,640,018
1
null
null
0
12
why can't i create this view with intersect create view vw_Countries as select * from ( select distinct country from [dbo].[CO2_Data] intersect select distinct country from [dbo].[Maize_Production] intersect select distinct country from [dbo].[Maize_Yields] intersect select distinct country from [dbo].[Rice_Production...
creating a view sql with intersect with multiple tables
CC BY-SA 4.0
null
2023-03-05T03:20:14.037
2023-03-05T03:20:14.037
null
null
9,873,908
[ "sql", "view", "sql-view", "intersect" ]
75,640,011
1
null
null
-4
30
[enter image description here](https://i.stack.imgur.com/tAJAe.png) the program [enter image description here](https://i.stack.imgur.com/ZZV4r.png) the part the causes the error [enter image description here](https://i.stack.imgur.com/UYJGP.png) the file that has the error [enter image description here](https://i.stack...
actual and formal argument lists differ in length no argument found
CC BY-SA 4.0
null
2023-03-05T03:17:59.370
2023-03-05T03:36:16.827
2023-03-05T03:36:16.827
20,153,792
20,153,792
[ "java" ]
75,640,009
1
null
null
0
5
I want to include YouTube API auth (such as uploading videos to youtube) inside my electron app, which I build and release for the mac/win/linux desktop app stores. I have a working proof of concept: [https://github.com/MartinBarker/electron-youtube-upload](https://github.com/MartinBarker/electron-youtube-upload) Which...
How to safely package youtube api auth inside built electron app
CC BY-SA 4.0
null
2023-03-05T03:17:23.277
2023-03-05T03:17:23.277
null
null
6,365,949
[ "node.js", "google-cloud-platform", "electron", "youtube-api" ]
75,640,016
2
null
75,638,720
0
null
This my current next-auth with credentials and it working fine ``` import NextAuth from 'next-auth' import GoogleProvider from "next-auth/providers/google"; import CredentialsProvider from "next-auth/providers/credentials" import dbConnect from '../../../lib/dbConnect'; import User from '../../../models/User'; import ...
null
CC BY-SA 4.0
null
2023-03-05T03:20:00.740
2023-03-05T03:20:00.740
null
null
14,343,167
null
75,640,017
2
null
75,627,734
0
null
In normal dense arrays this would be done more easily with a three-dimensional array, but those are unavailable in sparse form. Instead, ``` import scipy.sparse from scipy.sparse import csr_matrix A = csr_matrix([ [1, 2, 7], [5, 0, 3], [4, 0, 5], ]) B = csr_matrix([ [2, 7, 0], [4, 0, 3], [6, 0,...
null
CC BY-SA 4.0
null
2023-03-05T03:20:11.110
2023-03-05T03:34:52.990
2023-03-05T03:34:52.990
313,768
313,768
null
75,640,020
2
null
75,639,803
0
null
You can keep the first part of your answer for comparing the whole parts of the numbers, although it might not do what you want for comparing e.g. 123.9 and 124.1. To compare the fractional part merely requires a simple loop: ``` i = 1 while round(a, i) == round(b, i) and i < 17: i += 1 return round(a, i-1) ```
null
CC BY-SA 4.0
null
2023-03-05T03:20:59.447
2023-03-05T03:49:09.247
2023-03-05T03:49:09.247
5,987
5,987
null
75,640,005
1
null
null
0
7
In a legacy job system on a Linux system I have a Cron expression like that ``` 30 08 28 * 5 /home/me/myJob.sh ``` to let `myJob` run at 08:30 each 28th of a month and every Friday. "And" a Human Being would state here, but it is not exactly right from a IT perspective. Actually it is `OR`: a day which is the 28th of ...
Having a list of yaml cron expressions, how to get them properly in my config and then access them per SpEL expression?
CC BY-SA 4.0
null
2023-03-05T03:16:11.770
2023-03-05T03:21:35.523
2023-03-05T03:21:35.523
3,984,474
3,984,474
[ "spring", "cron", "scheduled-tasks" ]
75,640,023
2
null
75,609,820
0
null
I am certain that you can set the extra connection attributes for a Source S3 bucket via the cli. The image below works without a problem. Maybe you are missing the cdc-path on the endpoint when source/target is S3. [](https://i.stack.imgur.com/KA2Jo.png)
null
CC BY-SA 4.0
null
2023-03-05T03:22:29.137
2023-03-05T03:22:29.137
null
null
611,545
null
75,640,025
2
null
72,334,044
-1
null
I get the same error. It looks like error comes and goes but it is not on port 8080. Its in the format :6443
null
CC BY-SA 4.0
null
2023-03-05T03:25:22.560
2023-03-05T03:25:22.560
null
null
11,106,743
null
75,640,028
1
null
null
0
8
I want to learn how to correctly layout websites. But there are many forms and properties and tools. What is the general rule for correctly create the webiste layout? There are some old properties still usable and some new methods. How to do it?
How to correctly layout websites?
CC BY-SA 4.0
null
2023-03-05T03:26:36.253
2023-03-05T03:26:36.253
null
null
21,334,437
[ "css", "layout" ]
75,640,026
1
null
null
0
14
m <- metagen(TE=metagen$cohen.s.d, se=metagen$se, studlab=paste(metagen$author, metagen$year, sep=","), sm="Cohen'd", backtransf=TRUE) Error in metagen(TE = metagen$cohen.s.d, se = metagen$se, studlab = paste(metagen$author, : argument 2 matches multiple formal arguments I don't know what to do. Please help, thanks.
R: argument matches multiple formal arguments in R
CC BY-SA 4.0
null
2023-03-05T03:26:02.750
2023-03-05T03:26:02.750
null
null
21,334,432
[ "r" ]
75,640,022
2
null
19,676,525
0
null
In case someone else runs into this answer, the modern way to trigger a change event is by using the [Event](https://developer.mozilla.org/en-US/docs/Web/API/Event) object. ``` const checkboxElement = document.getElementById('highlightTables'); checkboxElement.addEventListener('change', () => { console.log("...
null
CC BY-SA 4.0
null
2023-03-05T03:22:09.417
2023-03-05T03:22:09.417
null
null
293,611
null
75,640,019
2
null
75,636,527
0
null
If the `Product` table is supposed to be used only as a list of items on the invoice, then it probably will be enough, though you should at least rename the `Product` table to something like `InvoicePosition`. If you intend to use the `Product` table somewhere else, like to list available products in your store, then y...
null
CC BY-SA 4.0
null
2023-03-05T03:20:37.477
2023-03-05T03:20:37.477
null
null
3,099,551
null
75,640,032
1
null
null
0
7
I have Flutter mobile app that I am currently developing locally while using real android device and Firebase emulator in the backend. I am using Appcheck and the token was printing all the time to the console. Recently, I noticed that the Appcheck token does not print any more. I have not make any change related to...
Appcheck token is not printing any more for Adroid (It was printing fine before)
CC BY-SA 4.0
null
2023-03-05T03:28:03.117
2023-03-05T03:28:03.117
null
null
10,557,732
[ "firebase-app-check" ]
75,640,024
1
null
null
-2
20
``` package thread; import java.util.Map.Entry; import java.util.HashMap; import java.util.Scanner; //concurrent modification error because of modifying map concurrently class occurence extends Thread { String s; //HashMap HashMap<Character, Integer> map; occurence(String s,HashMap<Character,Integer...
how to solve this error java.util.ConcurrentModificationException . i was writing a program to show occurence of letters using thread
CC BY-SA 4.0
null
2023-03-05T03:23:39.833
2023-03-05T03:42:08.950
null
null
15,765,452
[ "java", "multithreading" ]
75,640,029
2
null
75,639,983
0
null
> I thought that I can loop for the entire 2D array and put the values in the new one You can't actually explicitly "loop". When you create an `Array` of non-null elements in Kotlin you have to specify the default value at each index. So all you have to do is specify each element of the list: ``` // suppose list is a M...
null
CC BY-SA 4.0
null
2023-03-05T03:27:02.283
2023-03-05T03:27:02.283
null
null
5,133,585
null
75,640,015
1
null
null
0
8
when I tested the Microposts controller, this is what it shows: 1st Error: ``` Failure: MicropostsControllerTest#test_should_create_micropost "Micropost.count" didn't change by 1. Expected: 3 Actual: 2 ``` 2nd Error: ``` Failure: MicropostsControllerTest#test_should_update_micropost Expected response to be a <3XX:...
Following the Ruby on Rails Tutorial: Microposts Controller Test Error
CC BY-SA 4.0
null
2023-03-05T03:19:39.530
2023-03-05T03:19:39.530
null
null
15,157,684
[ "ruby-on-rails", "ruby", "rubygems" ]
75,640,036
2
null
75,639,846
0
null
In order to manually specify the colours of the histogram add the last line to Ilia Tetin's code: ``` ObesityDataSet_raw_and_data_sinthetic %>% ggplot(aes(x=Height, fill=Gender)) + geom_histogram(bins = 14, alpha=0.5, position = "identity")+ facet_wrap(~Gender) + scale_fill_manual(values=c("blue", "red")) ``` ...
null
CC BY-SA 4.0
null
2023-03-05T03:29:28.130
2023-03-05T03:29:28.130
null
null
19,496,867
null
75,640,033
2
null
75,637,774
0
null
Assuming the two lists are always the same length, you can go through the second list backwards and use the size of the resulting list as index to add the value of the first list (use `or 0` to process None values as numbers). This will avoid the need to manage indexes or ranges. ``` array_1 = [1, 4, 5, 8, None, None...
null
CC BY-SA 4.0
null
2023-03-05T03:28:09.027
2023-03-05T03:54:51.117
2023-03-05T03:54:51.117
5,237,560
5,237,560
null
75,640,021
1
null
null
0
30
``` <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"></link> <script src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <title>PM</title> <style> .mar...
How do I move box to the right corner
CC BY-SA 4.0
null
2023-03-05T03:21:25.507
2023-03-05T05:29:35.593
2023-03-05T05:29:35.593
13,431,819
21,334,397
[ "javascript", "html", "css", "user-interface", "tailwind-css" ]
75,640,037
2
null
75,639,318
0
null
This is probably because you didn't set the parser middleware in your express server. You can try using the built-in json parser from express. (reference: [https://expressjs.com/en/4x/api.html#express.json](https://expressjs.com/en/4x/api.html#express.json)) ``` app.use(express.json()) ``` If this is not enough, you c...
null
CC BY-SA 4.0
null
2023-03-05T03:29:41.863
2023-03-05T03:29:41.863
null
null
17,101,307
null
75,640,041
2
null
75,639,974
0
null
That's not possible. `variable`s can't be dynamic which means they can't refer to any other `variable` nor `locals`. Only `local` variables can be dynamic. So you have to use that instead.
null
CC BY-SA 4.0
null
2023-03-05T03:31:52.533
2023-03-05T04:20:04.663
2023-03-05T04:20:04.663
248,823
248,823
null
75,640,038
1
null
null
-1
5
I am working on an Android app using a Windows 11 pc as both the app dev environment and also a flask/python backend api for it. I can get the app in the emulator to reach the api at its address, ie. 192.168.0.100:5000. But the same address on my phone and other laptop just returns a timeout. I've tried adding inbound...
Can't reach my flask api running on port 5000 from other devices on the network. Tried firewall. Tried router. Stumped
CC BY-SA 4.0
null
2023-03-05T03:30:31.373
2023-03-05T03:30:31.373
null
null
17,162,795
[ "android", "networking", "firewall" ]
75,640,043
1
null
null
0
12
``` df = pd.DataFrame({'value': [1, np.nan, np.nan, 2, 3, 1, 3, np.nan, 3], 'name': ['A','A', 'B','B','B','B', 'C','C','C']}) name value 0 A 1 1 A NaN 2 B NaN 3 B 2 4 B 2 5 B 2 6 C 3 7 C NaN 8 C 3 ``` In the dataframe above, I want to use groupby to...
Fill in using unique values in pandas groupby
CC BY-SA 4.0
null
2023-03-05T03:33:25.610
2023-03-05T03:33:25.610
null
null
308,827
[ "python", "pandas" ]
75,640,042
1
null
null
0
26
I am learning C++ and confused why a changes occurred in function gets reflected in main. Can anyone say how to change the array in function without reflecting in main module.. thx for the help ``` #include <iostream> using namespace std; void function1(int x[],int n){ for(int i=0;i<n;[enter image description here...
Changing array in function in c++
CC BY-SA 4.0
null
2023-03-05T03:31:53.040
2023-03-05T04:05:04.677
null
null
21,334,434
[ "c++", "arrays", "function", "global-variables", "local-variables" ]
75,640,035
1
null
null
0
13
The ImageView is placed under the two buttons in xml file, but when the ImageView is moved programmatically to the buttons' position, the buttons cover the ImageView. ``` <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/...
Why image always shows under buttons?
CC BY-SA 4.0
null
2023-03-05T03:29:22.000
2023-03-05T03:29:22.000
null
null
4,356,169
[ "java", "android", "xml", "kotlin", "layout" ]
75,640,039
1
null
null
0
16
I have a table that contains two columns metric and dimensionName=dimensionValue key value pairs such that the data is stored as: | metric | dimensions | | ------ | ---------- | | A | {x=1, y=2, z=3} | | A | {x=1, y=2, z=3} | | A | {x=2, y=2, z=3} | | A | {x=2, y=3, z=3} | | A | {x=3, y=4, z=3} | I want to ge...
How to extract cardinality of key value pairs in a given column
CC BY-SA 4.0
null
2023-03-05T03:31:04.133
2023-03-05T04:18:11.437
2023-03-05T04:18:11.437
62,576
3,362,937
[ "sql", "database", "presto" ]
75,640,045
1
75,640,081
null
0
13
Using `ggsurvfit()`, I generated this graph with the following code: ``` library(ggsurvfit) survfit2(Surv(time, status) ~ sex, df_colon) %>% ggsurvfit() + add_pvalue("annotation", size = 12) ``` [](https://i.stack.imgur.com/VvcPU.png) I would like the p value has 2 digits like 0.37. In the document of `add_pvalue(...
Change the number of digits of p value on a ggsurvfit() graph
CC BY-SA 4.0
null
2023-03-05T03:33:53.737
2023-03-05T03:56:22.580
null
null
11,741,943
[ "r", "ggplot2" ]
75,640,031
2
null
75,638,545
0
null
The answer by @Slaw is correct and goes into the arcane details making java multithreading challenging. The fundamental problem with synchronization as defined by java is the fact that the shared object should be implemented as a class which controls access to its data members rather than forcing the synchronization ca...
null
CC BY-SA 4.0
null
2023-03-05T03:27:58.947
2023-03-05T03:27:58.947
null
null
6,854,407
null
75,640,027
1
null
null
0
5
I am creating a project where a container contains images that scrolls inside of the container when the user scrolls the page. the container it self grow or shrink based on the scroll speed so it changes the css transform style, and inputs transform value based on the speed of the scroll. So as you are scrolling, there...
How can i update the javascript file so the effect applies on the container and it contents only when the page is scrolled?
CC BY-SA 4.0
null
2023-03-05T03:26:21.123
2023-03-05T03:26:21.123
null
null
21,334,372
[ "css", "three.js", "pixi.js" ]
75,640,044
2
null
60,667,053
0
null
``` For vue2: Use the code below from online builder and it works fine after this isse. Hope this helps someone. <ckeditor :editor="editor" v-model="editorForm.editor_content" :config="editorConfig" :height="120" :rows="6" @input="onEditorInput" @ready="onReady"> <p>The initial editor data.</p> </ckeditor> ...
null
CC BY-SA 4.0
null
2023-03-05T03:33:45.690
2023-03-05T03:33:45.690
null
null
18,382,517
null
75,640,050
2
null
43,266,744
0
null
Bit of a zombie update, but in case any one else comes across it, you might need to call `UseRouting();` in your startup code somewhere. `UseRouting` configures the middleware that populates `RouteData` See [https://learn.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-7.0#routing-basics](https://l...
null
CC BY-SA 4.0
null
2023-03-05T03:36:00.883
2023-03-05T03:36:00.883
null
null
1,000,159
null
75,640,034
1
null
null
0
11
I found this error while testing with jest. ``` Must use import to load ES Module: ...\node_modules\react-markdown\index.js 1 | import React from "react"; 2 | import styled from "styled-components"; > 3 | import MDEditor from "@uiw/react-md-editor"; | ^ 4 | 5 | import { useNavigate ...
How can i fix the error "Must use import to load ES Module"?
CC BY-SA 4.0
null
2023-03-05T03:28:43.237
2023-03-05T04:18:42.907
null
null
21,334,398
[ "reactjs", "jestjs", "babel-jest", "react-md-editor" ]
75,640,048
1
null
null
0
17
In Qt programming, this is a simple tcp server new connection coming code, ``` void TcpServerTest::onSeverReadyRead(int clientId) { qDebug() << clientId; qDebug() << clientSocket[clientId]->readAll(); } void TcpServerTest::onNewConnection(/*QTcpSocket* socket*/) { QTcpSocket* serverRecordClient = server->n...
Do I need to manually disconnect the sender and the response function after the sender being released?
CC BY-SA 4.0
null
2023-03-05T03:35:29.507
2023-03-05T03:47:29.277
2023-03-05T03:47:29.277
9,250,490
9,250,490
[ "c++", "qt" ]
75,640,046
1
null
null
0
10
I want to analyze the results of different benchmark evaluations. I have many benchmarks, and when running on the server, I want to evaluate 10 in parallel at a time. In my python script, there is a function that does the evaluation. ``` def load_single_stat(benchmark,prefetcher, retry=False) ``` But every time the fu...
How to use a fixed number of multi-processes in python?
CC BY-SA 4.0
null
2023-03-05T03:35:00.207
2023-03-05T03:35:00.207
null
null
14,328,098
[ "python", "multiprocessing" ]
75,640,047
1
null
null
0
8
Consider the following program: ``` #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <string.h> struct Person { char *name; int age; int height; int weight; }; // new struct Person* Person_create(char *name, int age, int height, int weight) { struct Person *w...
How to pass structures to functions without using pointers?
CC BY-SA 4.0
null
2023-03-05T03:35:05.790
2023-03-05T03:39:25.903
2023-03-05T03:39:25.903
10,109,156
20,959,212
[ "pointers", "malloc", "structure" ]
75,640,052
1
null
null
0
9
I have an axios (a nodejs module) requesting a specific domain via https. However, I can not access the domain directly on this server. So, I use gost to set up a tunnel, connecting to another server that can visit the specific domain. Gost also enables me to listen a local port, and handle the tunnel automatically. No...
How can I configure specific domain request to local proxy in axios?
CC BY-SA 4.0
null
2023-03-05T03:36:23.807
2023-03-05T03:36:23.807
null
null
7,741,761
[ "axios" ]
75,640,051
1
null
null
-1
12
I get this in my Crashlytics report closure #2 in my function and next line is thunk for @escaping @callee_guaranteed () -> () () This is my function : ``` func myFunction() { var isLogin = false let group = DispatchGroup() group.enter() let greetUser = { (name: String) in i...
closure #2 thunk for @escaping @callee_guaranteed () -> ()
CC BY-SA 4.0
null
2023-03-05T03:36:12.840
2023-03-05T04:36:05.880
2023-03-05T04:36:05.880
18,137,930
18,137,930
[ "ios", "swift", "closures", "crashlytics", "crash-reports" ]
75,640,055
1
null
null
0
9
When adding a document to a collection in MongoDB database, MongoDB will create a long code as a Unique Object ID. But is it unique only for this collection or for all the collections on this planet created by people all over the world all the time until the end of time? I am just curious to know how unique this line o...
How can MongDB make sure that an ObjectID is unique all the time?
CC BY-SA 4.0
null
2023-03-05T03:39:48.077
2023-03-05T03:46:39.903
null
null
19,453,259
[ "mongodb", "unique", "objectid" ]
75,640,056
2
null
75,632,677
0
null
I think you are missing triggers here, which will tell Beam when the windows will actually fire, not only how they will get grouped together (windows). Take a look at [https://beam.apache.org/documentation/programming-guide/#setting-a-trigger](https://beam.apache.org/documentation/programming-guide/#setting-a-trigger)....
null
CC BY-SA 4.0
null
2023-03-05T03:40:04.797
2023-03-05T03:40:04.797
null
null
1,695,821
null
75,640,049
1
null
null
0
12
I am doing CS50 Readability problem set. I am trying to count the words in a given passage. When I code the calculation within main I get the correct answer: ``` #include <cs50.h> #include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include <math.h> int letters; int main(void)// { // user...
CS50 readability - calculation is off
CC BY-SA 4.0
null
2023-03-05T03:35:54.860
2023-03-05T03:45:03.040
null
null
15,344,690
[ "cs50" ]
75,640,053
1
null
null
1
31
Version 1: ``` A=[1 2;3 4] for ii in 1:3 B=A B[:,:]=B[:,:].+1 end display(A) ``` Version 2: ``` A=[1 2;3 4] for ii in 1:3 B=A B=B.+1 end display(A) ``` Version 1 gives ``` 2×2 Array{Int64,2}: 4 5 6 7 ``` Version 2 gives ``` 2×2 Array{Int64,2}: 1 2 3 4 ``` I think it has to do with reference and copy...
Why the following two Julia codes gave different answers?
CC BY-SA 4.0
null
2023-03-05T03:37:47.647
2023-03-05T04:09:21.947
null
null
13,137,795
[ "julia" ]
75,640,058
1
null
null
-1
14
I am thinking of creating an IOS app that can scan a receipt and take out and save relevant information from the receipt such as product name and purchased date. Are there any useful codes that can help with this? I know the code for scanning the document but I am not sure about how to get and save the relevant informa...
Is there a way to code out an IOS app to scan and take out relevant information from a document?
CC BY-SA 4.0
null
2023-03-05T03:40:59.280
2023-03-05T03:40:59.280
null
null
21,334,473
[ "ios", "swift", "scanning" ]
75,640,040
1
null
null
0
22
How to use colspan in dataTable? I want the colspan in the uraian column with the condition that if the column after it is zero, then // Add COLSPAN attribute $('td:eq(3)', row).attr('colspan', 6); this is the result i tried: [https://i.stack.imgur.com/rzKzd.png](https://i.stack.imgur.com/rzKzd.png) this is my code : ...
i want to remove the columns after colspan in dataTabl
CC BY-SA 4.0
null
2023-03-05T03:31:38.267
2023-03-05T05:28:39.233
2023-03-05T05:28:39.233
21,334,403
21,334,403
[ "jquery", "html-table", "datatable" ]
75,640,054
2
null
75,639,886
0
null
That is a somewhat broad question. Depending on how the 2 forms are implemented, you could have a singular form on a web page that uses the same submit API of both forms A and B. Provided these 2 forms are regular HTTP forms, one plan of action could be the following: - - - - - `<button type="button" onclick="...">`[he...
null
CC BY-SA 4.0
null
2023-03-05T03:38:09.700
2023-03-05T03:38:09.700
null
null
2,099,848
null
75,640,064
2
null
73,933,104
-2
null
Have you been able to find a solution to this problem?
null
CC BY-SA 4.0
null
2023-03-05T03:42:28.537
2023-03-05T03:42:28.537
null
null
21,334,491
null
75,640,060
1
null
null
0
10
Am creating a MVC framework and I have a public folder with the HTACCESS file. I want to be able to type for example "localhost/mvc/public/adjoasdjaos" and it should redirect me to the index.php page like "localhost/mvc/public/" I have made several attempts which I commented out and it hasn't been working. ``` <IfModul...
Local environment .htaccess php not redirecting
CC BY-SA 4.0
null
2023-03-05T03:41:43.750
2023-03-05T04:13:05.703
null
null
2,132,690
[ "php", ".htaccess" ]
75,640,067
1
null
null
-2
22
I want to implement multicurruncy.for example When user select to rupees whole app convert into this how to achieve this? How to add logic I don't know. Can anyone explain me with example in react native.
How to create a Currency converter app in React native?
CC BY-SA 4.0
null
2023-03-05T03:44:10.937
2023-03-05T04:03:20.643
null
null
20,642,420
[ "reactjs", "react-native" ]
75,640,057
2
null
75,637,912
1
null
Yes, you can use `Entry` to achieve this and set `IsEnabled` for it. And for your layout, it is recommended that you use `Grid` to do this. Please refer to the following code: ``` <StackLayout Orientation="Vertical"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="60" /> <RowD...
null
CC BY-SA 4.0
null
2023-03-05T03:40:21.317
2023-03-05T03:40:21.317
null
null
10,308,336
null
75,640,063
1
null
null
-1
17
I'm writing code in java to rotate an image around a circle (to create a flower), and I need to print out 6 flowers. When running the first method - redFlowers(g) - it prints out just fine. However, when I try to run the first method after the second - which is orangeFlowers(g) - the second method doesn't get printed o...
Why is my second graphics method not being shown in the output?
CC BY-SA 4.0
null
2023-03-05T03:42:24.583
2023-03-05T03:42:24.583
null
null
20,744,955
[ "java", "methods", "graphics", "rotation" ]
75,640,070
2
null
75,640,049
0
null
Your second program doesn't actually call the function. Add: ``` letters = count_letters(input); ```
null
CC BY-SA 4.0
null
2023-03-05T03:45:03.040
2023-03-05T03:45:03.040
null
null
116,908
null
75,640,062
1
null
null
0
5
I've a wordpress-based [website](https://peq42.com), with the default register/login forms. I also have a project I'm working on, a game in unity, which has a login form for things like sending the user's highscore and backup their save data. Issue is, the user is required to insert name and password every time they wa...
how to keep user logged in wordpress, through unity?
CC BY-SA 4.0
null
2023-03-05T03:42:18.340
2023-03-05T03:42:18.340
null
null
9,599,408
[ "mysql", "wordpress", "authentication", "unity3d" ]
75,640,065
2
null
75,639,738
1
null
Yes, you can use the filter() method to get the objects that have "tool" as their product category. Here's an example: ``` const array = [ { "product_no": 1, "product_category": "tool" }, { "product_no": 2, "product_category": "food" }, { "product_no": 3, "product_category": "tool" }, { "product_no": 4,...
null
CC BY-SA 4.0
null
2023-03-05T03:42:53.717
2023-03-05T03:42:53.717
null
null
10,994,550
null
75,640,069
2
null
75,640,049
1
null
You didn't not call your count_letter function in the second program in the main. So that the letters variable is not calculated. You just defined your function on your top of the program. Make sure to call your function ``` int main(void)// { // user prompted for input string input = get_string("Input: "); //promp...
null
CC BY-SA 4.0
null
2023-03-05T03:44:56.837
2023-03-05T03:44:56.837
null
null
19,937,103
null
75,640,059
2
null
75,639,907
0
null
We can also use the `java.nio.file` package to accomplish this task. For example, ``` import java.io.File; import java.io.IOException; import java.nio.file.Files; public class CharacterFrequency { private String str; public CharacterFrequency(File file) { try { this.str = Files.readString(...
null
CC BY-SA 4.0
null
2023-03-05T03:41:05.520
2023-03-05T03:41:05.520
null
null
527,312
null
75,640,071
2
null
75,639,919
0
null
When you do the `apply`, the rows get converted to a common dtype, i.e. float. If you didn't drop the string column, that wouldn't be possible, so the conversion wouldn't happen. What you're doing is recommended against in [the docs for DataFrame.apply()](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.ap...
null
CC BY-SA 4.0
null
2023-03-05T03:45:13.813
2023-03-05T03:50:14.040
2023-03-05T03:50:14.040
4,518,341
4,518,341
null
75,640,073
2
null
75,527,541
0
null
It is very simple. In order to solve your problem just add the following line in your Program.cs class. ``` builder.Services.AddMediatR(x => x.RegisterServicesFromAssemblies(typeof(LibraryEntrypoint).Assembly)); ``` here is an empty class created in the in the project folder, this is created to just refer to the asse...
null
CC BY-SA 4.0
null
2023-03-05T03:45:30.717
2023-03-05T03:52:38.817
2023-03-05T03:52:38.817
13,822,184
13,822,184
null
75,640,068
1
null
null
-1
6
``` >>> import jsbgym >>> import gymnasium as gym >>> env = gym.make("JSBSim-HeadingControlTask-Cessna172P-Shaping.STANDARD", render_mode="human") >>> env.reset() JSBSim Flight Dynamics Model v1.1.13 [GitHub build 986/commit a09715f01b9e568ce75ca2635ba0a78ce57f7cdd] Dec 3 2022 12:36:17 [JSBSim-ML v2...
AttributeError: 'ArtistList' object has no attribute 'pop'
CC BY-SA 4.0
null
2023-03-05T03:44:32.257
2023-03-05T03:44:32.257
null
null
20,529,256
[ "python", "machine-learning", "artificial-intelligence", "reinforcement-learning", "attributeerror" ]
75,640,072
1
null
null
1
50
``` #include <stdio.h> int main(void) { int d, i1, i2, i3, i4, i5, j1, j2, j3, j4, j5, first_sum, second_sum, total; printf("Enter the first single digit : "); scanf("%1d", &d); printf("Enter the first group of five digits : "); scanf("%1d%1d%1d%1d%1d",&i1, &i2,&i3, &i4, &i5 ); printf("Enter the ...
What is difference between two formulae?
CC BY-SA 4.0
null
2023-03-05T03:45:25.463
2023-03-05T05:20:16.007
2023-03-05T04:30:05.817
15,168
21,286,427
[ "c" ]
75,640,075
1
null
null
2
13
I am trying to find a way of checking if a pair of lat/lng coordinates are within an area (generated by other lat/lng coordinates). For example, if my area is a rectangle generated with these coordinates: 43.672162 -79.43585 43.629845 -79.314585 And I wanted to check if these coordinates are within that area: 43.651989...
Check if lat/lng are within an area
CC BY-SA 4.0
null
2023-03-05T03:45:46.683
2023-03-05T04:43:03.333
null
null
16,923,803
[ "go", "geometry", "geo" ]
75,640,077
2
null
75,640,055
0
null
ObjectID is a 96-bit number which is composed as follows: a 4-byte timestamp value representing the seconds since the Unix epoch (which will not run out of seconds until the year 2106) a 5-byte random value, and a 3-byte incrementing counter, starting with a random value. Therefore, it is impossible for two records to ...
null
CC BY-SA 4.0
null
2023-03-05T03:46:39.903
2023-03-05T03:46:39.903
null
null
10,684,385
null
75,640,074
1
null
null
0
13
Hi I am facing an issue while working with and even when I have the Cable class derived from . ``` from port import Port class Cable(object): cableNumber = 1 def __init__(self, connLeft = None, connRight = None): self._left = connLeft if isinstance(connLeft, Port) else None self._right = connRight if isins...
property and setter decorators are not working and I can't figure out why?
CC BY-SA 4.0
null
2023-03-05T03:45:34.450
2023-03-05T03:45:34.450
null
null
9,231,398
[ "python" ]
75,640,080
2
null
75,639,956
0
null
Try to use [Q](https://docs.djangoproject.com/en/dev/ref/models/querysets/#q-objects) objects, like so: ``` from django.db.models import Q def transactions_log(request): user = request.user transactions = Transaction.objects.filter(Q(sender=user) | Q(receiver=user)) return render(request, "transaction.html...
null
CC BY-SA 4.0
null
2023-03-05T03:47:08.607
2023-03-05T03:47:08.607
null
null
17,562,044
null
75,640,081
2
null
75,640,045
1
null
From the docs [here](https://www.danieldsjoberg.com/ggsurvfit/reference/format_p.html) and [here](https://www.danieldsjoberg.com/ggsurvfit/reference/add_pvalue.html) you can try this: ``` library(ggsurvfit) survfit2(Surv(time, status) ~ sex, df_colon) %>% ggsurvfit() + add_pvalue("annotation", size = 12, pvalue_fun...
null
CC BY-SA 4.0
null
2023-03-05T03:48:50.877
2023-03-05T03:48:50.877
null
null
6,912,817
null
75,640,079
1
null
null
0
17
I'm stuck trying to figure out the following: Given a pandas dataframe, I would like to group by by one of the columns, remove the first row in each group if the group has less than `n` rows, but remove the first and last row in each group if the group has `n` or more rows. Is there an efficient way to achieve this?
Removing rows in a pandas dataframe after groupby based on number of elements in the group
CC BY-SA 4.0
null
2023-03-05T03:46:59.510
2023-03-05T05:13:17.130
null
null
4,212,875
[ "python", "pandas", "dataframe" ]
75,640,082
2
null
5,915,789
0
null
``` function replaceArray(index, value, arr) { const index_num = arr.indexOf(value) const indexed_data = arr[index] arr[index] = value; arr[index_num] = indexed_data; return arr; } const arr = [523,3452,334,31, ...5346] console.log("initial array", arr) const changed_array = re...
null
CC BY-SA 4.0
null
2023-03-05T03:48:57.930
2023-03-05T03:48:57.930
null
null
3,462,686
null
75,640,085
1
75,640,095
null
0
28
I have an empty class (without attributes and methods), declared without the keyword "abstract" but It has a child class. Is it an abstract class or just a simple parent class. ``` public class Vehicle{ } ```
Is an empty class an abstract class?
CC BY-SA 4.0
null
2023-03-05T03:50:12.870
2023-03-05T04:22:40.537
null
null
14,798,306
[ "java", "oop" ]
75,640,083
1
null
null
-2
10
I want to extract a text from a string if and only if it was repeating, for example: `\sqrt{2} \sin{ \sqrt{\pi} \sqrt{x} } \tan{x}` I want to extract only `\sqrt{\pi} \sqrt{x}` because `\sqrt{...}` repeated. How can I do that? I tried a couple of formulas I know and searched online but didn't get anywhere.
Capturing a string only if it's repeating
CC BY-SA 4.0
null
2023-03-05T03:49:04.143
2023-03-05T03:49:04.143
null
null
19,476,599
[ "python", "regex" ]
75,640,061
2
null
75,640,024
0
null
There are several issues with your code. Once you start the processing in a thread, you should wait for it to complete. You can do this by calling the `join()` method on the thread. But, this will cause the main thread to wait for the result before processing the next user-inputted string. Next, you aren't handling mul...
null
CC BY-SA 4.0
null
2023-03-05T03:42:08.950
2023-03-05T03:42:08.950
null
null
4,405,757
null
75,640,089
2
null
75,640,079
0
null
You can achieve this by applying conditional logic like this : ``` n = 3 # or any other desired value for n df.groupby('column_to_group_by').apply(lambda x: x.iloc[1:-1] if len(x) >= n else x.iloc[1:]) ```
null
CC BY-SA 4.0
null
2023-03-05T03:50:49.850
2023-03-05T03:50:49.850
null
null
18,431,570
null
75,640,087
2
null
75,639,318
0
null
In express we need a body-parser middleware to to extracct the entire body portion of an incoming request and expose it on req.body so i think you need the body-parser package and everything will work fine here is how to install it a set it up ``` npm i body-parser ``` In you index.js in the server : ``` const bodyPar...
null
CC BY-SA 4.0
null
2023-03-05T03:50:18.470
2023-03-05T03:50:18.470
null
null
14,343,167
null
75,640,090
1
null
null
0
9
I am using vegafusion with altair and python to display a chart that won't show because of the max rows limit, but I have installed vegafusion and imported and enabled it. When I go to run the visualisation, I get this error ``` ~\anaconda3\lib\site-packages\vegafusion\compilers.py in vl_convert_compiler(vegalite_spec)...
Vegafusion No module named 'vl_convert' error python
CC BY-SA 4.0
null
2023-03-05T03:51:00.813
2023-03-05T03:51:00.813
null
null
20,594,886
[ "python", "altair", "vega-lite", "modulenotfounderror" ]
75,640,084
1
null
null
0
10
I'm using 'enchant' module. It has an attribute 'DictWithPWL' to add personal word list to exsisting dictionary that is pre-defined. But i'm getting below error: ` ``` def dictionary_words_finder(word_lst): meaningful_word = [] # creating a dictionary object for checking a word is in dictionary or not and also ...
why i'm getting AttributeError when using 'enchant.DictWithPWL()' from 'enchant' module?
CC BY-SA 4.0
null
2023-03-05T03:49:10.087
2023-03-05T04:00:41.240
2023-03-05T03:50:47.757
16,204,651
16,204,651
[ "python", "attributeerror", "pyenchant", "word-list", "enchant" ]
75,640,094
1
null
null
-1
9
I'm trying to fetch keyword ideas from google ads api, But I can't find any rest api resources, I found some code on github which can fetch the keywords but it was using python, not rest api, I'm using ads api v13, I need a api endpoint where I can make api request to fetch the keywords expecting list of keywords
How to get keyword ideas from google keyword planner api via rest api
CC BY-SA 4.0
null
2023-03-05T03:52:44.143
2023-03-05T03:52:44.143
null
null
21,090,231
[ "rest", "google-apps-script", "google-ads-api", "keyword-search" ]
75,640,092
1
null
null
-1
13
I have PDF files of Student Course and College Reviews that contains college details in Tabular format. while reviews are in text or paragraphs. Activity and Events is given in table they all records have different lengths. I wanna to extract those data and store that into .csv files I tried: PyPDF2 Pdfplumber PDFMiner...
How to Extract data from Unstructured PDF using Python
CC BY-SA 4.0
null
2023-03-05T03:51:32.703
2023-03-05T03:51:32.703
null
null
21,334,481
[ "pypdf", "pdfminer", "pdfplumber", "pdfrw", "tika-python" ]
75,640,091
1
75,640,159
null
-1
26
I have set of paths in a array .So some path are and some paths are . path mean Example `"/booking-success"` path mean Example `'/arrival/view/:job_order_number'` --> here job_order_number is dynamice. so `/arrival/view/123 , /arrival/view/456`. I need to check whether url present or not .I am trying like this ``` ...
alternate of indexof in javascript to find items?
CC BY-SA 4.0
null
2023-03-05T03:51:18.630
2023-03-05T04:43:49.680
2023-03-05T03:58:50.343
5,711,656
5,711,656
[ "javascript", "jquery", "reactjs" ]
75,640,098
2
null
75,640,085
1
null
An empty class without any attributes or methods is just a simple class with no functionality. It is not considered an abstract class, even if it has a child class. To make a class abstract, you need to use the "abstract" keyword in the class declaration. An abstract class is one that cannot be instantiated directly, a...
null
CC BY-SA 4.0
null
2023-03-05T03:53:51.920
2023-03-05T03:53:51.920
null
null
18,431,570
null
75,640,078
1
null
null
0
6
From the below mentioned code I expect to get 3 fields, where I choose value from the first field, and according to that, values in other two fields should get updated accordingly (All the data is in the database). When I run the code and choose the value combobox_var.get() always returns an empty value and cannot figu...
Python Tkinter Combobox Does not Filter Values Properly
CC BY-SA 4.0
null
2023-03-05T03:46:53.133
2023-03-05T03:46:53.133
null
null
17,988,427
[ "python", "pandas", "tkinter", "combobox" ]
75,640,096
1
null
null
0
9
I'm making a Discord bot, and I need to record audio from a voice channel and produce one single wave audio file, where all the audio is playing at the same time, like the Discord client hears when others are in the channel. I'm using the Pycord library, and all the audio files are sent as separate users. The closest I...
Merge two wave files as bytes, so they play at the same time in Python?
CC BY-SA 4.0
null
2023-03-05T03:53:34.383
2023-03-05T04:19:50.707
2023-03-05T04:19:50.707
14,337,591
14,337,591
[ "python", "audio", "discord", "pycord", "bytesio" ]
75,640,097
2
null
72,060,237
0
null
The issue appears to be that the name of the stock corresponding to stock code 688279 (峰岹科技), when encoded to [GB 2312](https://en.wikipedia.org/wiki/GB_2312) generates bytes that are invalid UTF-8. In your code you are calling: ``` urllib.request.urlopen(req).read() ``` which will return the raw bytes of the response...
null
CC BY-SA 4.0
null
2023-03-05T03:53:49.477
2023-03-05T03:53:49.477
null
null
7,003,720
null
75,640,099
2
null
75,640,075
0
null
It’s just a math, compare coordinates. If A coordinate inside of a rectangle, then A.x must be less then rect.x1 and greater then rect.x2 or otherwise. And similar algorithm to the y coordinates.
null
CC BY-SA 4.0
null
2023-03-05T03:54:03.740
2023-03-05T03:54:03.740
null
null
10,109,156
null
75,640,102
2
null
61,959,676
-1
null
This question was the top one for my search, so i'll add what my issue was: I had `type MyType = struct {` (with the equal sign) as the root cause. Removing equal sign helped.
null
CC BY-SA 4.0
null
2023-03-05T03:55:38.007
2023-03-05T03:55:38.007
null
null
17,676,795
null
75,640,101
2
null
52,283,840
0
null
I assume you are building something requiring input from the user and also the keyboard. You will need various libraries, I will list all of them directly from the source... ``` !apt-get install -y portaudio19-dev libasound-dev libportaudio2 libportaudiocpp0 !pip install pyaudio wave keyboard pydub ``` It installs var...
null
CC BY-SA 4.0
null
2023-03-05T03:55:26.533
2023-03-05T03:55:26.533
null
null
16,634,327
null
75,640,093
2
null
75,639,713
0
null
The error message suggests that there is no attribute named `'proje'` on the `sirket` object. This is because you have defined the foreign key relation on the `Proje` model, not on the `Sirket` model. So use the following view: ``` def firma(request): sirket = Sirket.objects.all().prefetch_related('proje_set__santi...
null
CC BY-SA 4.0
null
2023-03-05T03:52:20.923
2023-03-05T03:52:20.923
null
null
17,562,044
null
75,640,103
2
null
75,640,045
1
null
using format() in add_pvalue(): ``` survfit2(Surv(time, status) ~ sex, df_colon) %>% ggsurvfit() + add_pvalue("annotation", size = 12 ,pvalue_fun = \(pvalue) format(pvalue, digits=2)) ``` [](https://i.stack.imgur.com/95Zmz.png)
null
CC BY-SA 4.0
null
2023-03-05T03:56:22.580
2023-03-05T03:56:22.580
null
null
12,517,976
null
75,640,088
2
null
74,517,416
0
null
After Android 13 update on my device, Dialog with XML layouts are taking expected width. But Compose `AlertDialog` & `Dialog` are taking up full width. We are facing this issue with Compose Dialogs only, I am using with & , App uses & `targetSdkVersion` 33, using only `usePlatformDefaultWidth = false` did not help, ...
null
CC BY-SA 4.0
null
2023-03-05T03:50:40.563
2023-03-05T03:50:40.563
null
null
9,183,189
null
75,640,095
2
null
75,640,085
2
null
An empty class is not necessarily an abstract class. For a Java class to be abstract, it has to be declared abstract using the abstract keyword. Here is some documentation on abstract classes from the Java tutorials: [https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html](https://docs.oracle.com/javase/tutor...
null
CC BY-SA 4.0
null
2023-03-05T03:53:12.033
2023-03-05T04:22:40.537
2023-03-05T04:22:40.537
527,312
527,312
null
75,640,105
1
null
null
0
15
trying to convert names of districts stored in unicode to english in python ``` [ { "province_id": 1, "name_np": "\u0908\u0932\u093e\u092e", "name_en": "" }, { "province_id": 1, "name_np": "\u0909\u0926\u092f\u092a\u0941\u0930", "name_en": "" }, { "province_id": 1, "name_np": "\u0913\u0916\u0932\u0922\u0941\u0919\u094d...
change nepali unicode to english
CC BY-SA 4.0
null
2023-03-05T03:58:14.737
2023-03-05T04:10:42.740
2023-03-05T04:10:42.740
4,518,341
21,334,499
[ "python", "python-unicode" ]
75,640,100
2
null
75,631,880
0
null
After a lot of head scratching my tiny brain gave me the answer. Actually, I am using auth token as the main factor to redirect people to home screen after login and login screen after log out. So, after first login user was navigated to `"/"` before auth token was set as context. Solution: I fetched the authToken from...
null
CC BY-SA 4.0
null
2023-03-05T03:54:18.967
2023-03-05T03:54:18.967
null
null
20,994,085
null
75,640,106
2
null
75,637,573
0
null
Is it ok to create the expected time steps first and use CoGroupByKey to find the missing time steps? For instance, ``` import datetime import apache_beam as beam with beam.Pipeline() as p: input_data = p | beam.Create( [ (str(datetime.datetime(2022, 1, 1, 0, 0, 0)), "my data"), ...
null
CC BY-SA 4.0
null
2023-03-05T03:58:37.050
2023-03-05T03:58:37.050
null
null
21,289,117
null
75,640,107
1
null
null
-1
11
I'm trying to transfer Russian text to an Excel or SQlite or to any other program. The result is always the same: Абиссинская кошка. I understand that something with the encoding. Tried String myString = "some cyrillic text"; byte bytes[] = type.getBytes("UTF-8"); String value = URLEncoder.encode(new St...
Cyrillic text in Java
CC BY-SA 4.0
null
2023-03-05T03:59:06.450
2023-03-05T05:58:05.590
null
null
21,334,501
[ "java", "excel", "cyrillic" ]
75,640,110
1
null
null
0
29
I am trying to sum values from different objects. Each object has its ID, but the IDs can repeat in some objects. What I need to do now is sum the values from the objects that have the same ID. Does someone have an idea for me? I tried to use mongoose aggregate, but with no success. ``` const array = [ { _id: "12345...
Sum values from different objects - javascript
CC BY-SA 4.0
null
2023-03-05T03:59:43.650
2023-03-05T05:28:33.943
2023-03-05T04:27:29.217
18,244,921
20,829,017
[ "javascript", "mongodb", "object", "mongoose", "sum" ]
75,640,109
2
null
75,639,401
0
null
``` summary(glm(...))$coefficients # contains estimates, standard errors and inferential statistics for all predictors ``` Estimate +/- 1.96 se result in the upper and lower 95%-Confidence interval. So the code below should do the trick: ``` df<- as.data.frame(summary(example)$coefficients) df$CI_lower <- df$Estimate-...
null
CC BY-SA 4.0
null
2023-03-05T03:59:29.647
2023-03-05T03:59:29.647
null
null
19,496,867
null
75,640,112
2
null
75,640,084
0
null
You installed the wrong package. The package you're trying to use is named `PyEnchant` in PyPI. Try uninstalling `enchant` and installing `PyEnchant`.
null
CC BY-SA 4.0
null
2023-03-05T04:00:41.240
2023-03-05T04:00:41.240
null
null
14,337,591
null
75,640,108
1
null
null
1
17
I have a Minimal Working Example code : `test.py :` ``` a = 4 b = 6 l = [4, 6, 7, 8] for t in l : if t == a or t == b: continue print(t) ``` I am stepping through the code using `pdb` (`python-3.9.2`) : ``` local: ~ $ python -m pdb test.py > test.py(1)<module>() -> a = 4 (Pdb) b 5 Breakpoint 1 at test....
Why does pdb sometimes skip stepping into multi-part conditional?
CC BY-SA 4.0
null
2023-03-05T03:59:27.730
2023-03-05T05:28:29.243
2023-03-05T04:13:20.137
4,021,436
4,021,436
[ "python", "pdb" ]
75,640,111
1
null
null
-2
15
i have a funtion to get title of a webpage and send it back to user but after getting requests for while i can notice the memory is getting piled up. can someone check this and see if there is an issue here or not or if there a better way to get the same result? thank you ``` const axios = require("axios"); let cheeri...
Memory limit issue, nodejs + axios
CC BY-SA 4.0
null
2023-03-05T04:00:01.197
2023-03-05T04:07:19.980
2023-03-05T04:07:19.980
7,685,027
7,685,027
[ "node.js", "memory", "axios" ]
75,640,114
2
null
57,412,751
0
null
The accepted answer by @AJPerez is certainly fine. But given that server code checking for the conventional header: `X_REQUESTED_WITH: XMLHttpRequest` has existed long before the `fetch` API was introduced to javascript, I would prefer to add that exact header to the `fetch` invocation, rather than inventing a new cust...
null
CC BY-SA 4.0
null
2023-03-05T04:00:47.710
2023-03-05T04:00:47.710
null
null
467,590
null
75,640,116
2
null
75,620,522
0
null
I think your solution is O(nmck), with c being the number of candidates. You can reduce this to O(nmk) as follows: For each point of interest calculate the shortest distance to each reachable point. Sum up those distances for each point and then scan for the min (among the candidate points). If you want to know the rea...
null
CC BY-SA 4.0
null
2023-03-05T04:01:12.423
2023-03-05T04:21:07.370
2023-03-05T04:21:07.370
4,785,110
4,785,110
null