All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

How do you avoid full compilation with gyp?

I'm getting started with the `node-addon-api' and while my code does compile and run, I do get the following warning: Generating code Previous IPDB not found, fall back to full compilation. All ...
user avatar
  • 383
0 votes
0 answers
2 views

How to disable cortana in Windows?

How to get better the performance of cortana in Windows 10? i mean my PC is getting slow due to cortana activity. It spend almost all of my cpu . And also memory and disk. note : my windows is illegal....
user avatar
0 votes
0 answers
3 views

Why is it that there is this error "undefined name 'gini' " in this code?

I can't seem to figure out why there is an error. I am learning decision tree algorithm. def gini(rows): """calculate the gini impurity for a list of rows.""" ...
user avatar
0 votes
0 answers
3 views

Race condition example about weak_ptr & shared_ptr

Why there is a data race in the code snippet below, #include<memory> #include<thread> std::shared_ptr<int> g_s = std::make_shared<int>(1); std::weak_ptr<int> w_p{g_s}; ...
user avatar
  • 1,783
0 votes
0 answers
2 views

Convert custom Yolov4 .weight file to Tensorflow

I have trained my custom object using Yolov4 and I have the following file : yolov4-custom_best.weights yolov4-custom.cfg obj.names 'obj.names' has the names of the classes of the custom object. In ...
user avatar
0 votes
0 answers
4 views

how to make new line in jlist

I want to make the text as a list but it still in one line. Here is my code: model.addElement(new Product("Bags", "Prada Gucci Herschel Hawk CLN")); model.addElement(new Product(...
user avatar
  • 1
0 votes
0 answers
3 views

how to return an array without assignment to a variable

I want to return an array without assigning it to a variable. something like this : return [5]int{1,2,3,4,5} Is it possible in golang?
user avatar
0 votes
0 answers
3 views

Limiting Axios outgoing requests to an external API (Rate Limiting)

I am working with several APIs on my app and a few of them have limits that are not just simply per sec. For example one of my apis has the following limits: Max 100 requests per 2 minutes Max 20 ...
user avatar
  • 2,352
0 votes
0 answers
5 views

Excel formula is needed

I would like to get the formula of the following: I want to calculate the sum of gain and loss separately for my trading journey of SP500 emini futures. ES moves $50 a point for each contract. If the ...
user avatar
  • 1
0 votes
0 answers
3 views

how to pass file from local storage to html - django

so i want get my file from local storage to show in html using django. but i don't know how to get it. the file is audio mp3. i was using form NOT MODALS. i need reference of example code. if you need ...
user avatar
  • 33
0 votes
0 answers
3 views

Error installing MySQL Workbench iin CentOS 9 Stream

I am running CentOS 9. I installed MySQL 8 from https://dev.mysql.com/downloads/repo/yum/ I am trying to install MySQL Workbench. I am using the official MySQL Repo. Below is the error: - [root@lemon ...
user avatar
0 votes
0 answers
10 views

What will be the output of this code and how?

**Java code-MySuper class is the parent class and is extended by MySub class.I am creating the object MySub mySub = new MySub().I thought the output would be "y" but when I tried to run the ...
user avatar
0 votes
0 answers
7 views

'Hamilton path' using recursive in python

import design_graph as dsngrf class mygraph(dsngrf.graph): def __init__(self, vertices, edges, grfname): super().__init__( vertices, edges, grfname ) self.V = len(edges) self.result = [] ...
user avatar
  • 1
-1 votes
0 answers
5 views

Couldn't Android Studio's code autocomplete feature be more flexible like vscode? (Flutter)

In the case of vscode, 'center' is automatically recommended even if you input only 'cnt' as in the picture, but Android Studio does not. Is there a way to set autocomplete in android studio like ...
user avatar
0 votes
0 answers
5 views

Flutter SDK not matching in pubspec.yaml

I am having some errors with my flutter project as seen below. I tried flutter upgrade, flutter clean, nothing is working to solve this issue. Output from flutter pub get: flutter pub get Running &...
user avatar
-1 votes
0 answers
6 views

likn list multi parameters how to do?

Hey guys my question is that.I have this part of structure and a list , and i want to fill up with same values . typedef struct node{ char* place; int id; int type; int price; ...
user avatar
  • 1
0 votes
0 answers
5 views

In Ubuntu gcc reports function declaration errors that did not report in macOS

I am trying to build a simple language compiler using lex and yacc with my teammate. Everything goes well on my macOS, however in win10 and Ubuntu gcc reported a function declaration error, which I ...
user avatar
1 vote
0 answers
4 views

Jest : How to mock nested object callback method?

I am writing a testcase for below function in JEST , But not able to cover primaryTextAction callback method. Can some one help me to resolve this problem. Thank you in Advance ! function ABC(...
user avatar
0 votes
0 answers
6 views

How to write in file with streamwriter in c#?

So, I can't write in file correctly. The program reads file and displays it on console with no problem, but I have some issues to write this in to file. I have this method: public static string Temp(...
user avatar
  • 15
0 votes
0 answers
5 views

A server with the specified host name cannot be found

The url is: localhost:8080/api/users If I hit this via a browser or via a HTTP client, I can see a JSON response no problem. But if I attempt to hit the same endpoint in Xcode, I get an error. What ...
user avatar
0 votes
0 answers
3 views

Why does my pressable component display my off image on first tap and then works as expected?

I aim to present a button that shows an on state image on press and when left immediately shows an off state image. On first tap the button displays the off state image and on all following taps it ...
user avatar
  • 55
0 votes
0 answers
7 views

Cannot start Jenkins agent on AWS ECS

I am deploying jenkins slaves on ECS. I follow the following article and provisioning by AWS CDK. However, when I started the task definition for Jenkins agent, the status of task was stuck at ...
user avatar
  • 1
0 votes
0 answers
4 views

Buttons: Interaction has already been acknowledged

im trying to disable the button after a certain amount of clicks But when i click that amount of times, it doesnt update and i get an error saying interaction has already been acknowledged. I tried it ...
user avatar
0 votes
0 answers
3 views

Pytorch My loss updated but my accuracy keep in exactly same value

When i trained my images with Resnet model, my loss in both val and train was updated while my train, val accuracy did not, they stay in the same number. What happens, please help me? Thank you a lot. ...
user avatar
0 votes
1 answer
9 views

How can I restrict a date input value?

I want to display an input type date from from today to future. I tried this: <input type="date" id="dateAppointment" name = "dateAppointment" min="2022-05-21&...
user avatar
  • 49
0 votes
0 answers
6 views

How to connect windows application proxy[local host] to WSL [KALI LINUX TERMUX]

How to connect windows application proxy[local host] to WSL [KALI LINUX TERMINAL]. The proxy address is 127.0.0.1:9050 I had tried to set temporarily export http_proxy=http://127.0.0.1:9050 its ...
user avatar
0 votes
0 answers
7 views

convert GET request that's array of paths to blob

My response is array of paths (for images) and looks something like: [ "path_of_img1", "path_of_img2", "path_of_img3" ] Using Material-UI I want to display ...
user avatar
0 votes
0 answers
9 views

How to print results of selection sort algorithm after first swap

So, I am trying to do a problem entitled Mjehuric on Kattis.com ... The problem is as follows: "Goran has five wooden pieces arranged in a sequence. There is a number between 1 and 5 inscribed on ...
user avatar
0 votes
0 answers
6 views

Changing the bool to true through if statement

I thought this would work but it doesn't can someone help me? I can't seem to change the boolean's value. Increasing the autoMiner's value to > 0 doesnt change the bool to true. Have i done ...
user avatar
0 votes
0 answers
6 views

Pandas rename raise KeyError(key) from err KeyError: 'num'

I don't understand why pandas wont let me rename the column numto trip_short. The other columns are renamed successfully. This is the output of df.keys() Index(['timestamp', 'gare', 'num', 'miss', '...
user avatar
  • 57
0 votes
0 answers
3 views

Not able to round the picture corners in Tailwind

So I have worked on an Image with an Overlay in multiple ways and today tried this clean approach in the morning In this one, I cannot do 'rounded' corners https://play.tailwindcss.com/exkzRLth9L
user avatar
  • 829
0 votes
0 answers
3 views

Connecting two servers via Socket.io

I have two applications. The first is for nodes, and the second is for nests. They must exchange some data among themselves. I'm trying to implement this idea, but it doesn't work. I'm new to this. ...
user avatar
0 votes
0 answers
3 views

ImageDataGenerator Keras Python - Batch Size

In ImageDataGenerator the default value of batch_size is 32. But what happen if we don't set batch_size parameter and we train a model using for example model.fit(input,output, steps_per_epoch=(len(...
user avatar
0 votes
0 answers
7 views

How can i move the border with the text or close to it i need the left to move in 30px

I need to move the border with the text. The CSS only moves the text not the border .p-2{ border: 1px solid #D8DADA; margin: 0 12px 0 0; padding: 10px 0 8px 30px !important; }
user avatar
0 votes
0 answers
3 views

move ROR project with SQLite3 database to new server

I got a problem when I move a project to a new server, the old server and the new server are almost the same: Ubuntu 20.04 Nginx ruby 2.6.3 rails 6 SQLite3 the project has a simple search function ...
user avatar
0 votes
0 answers
9 views

Pandas Multiindex: convert Multiindex to a column and keep the first level hidden or as nan

Here is my dataframe of Multiindex: data3 = [['a', 'b',3,3],['a','c',3,3],['b','c',3,3],['c','d',3,3]] df3 = pd.DataFrame(data3, columns=['v3a','v3b','v3c','v3d']) df3 = df3.groupby(['v3a','v3b'])....
user avatar
0 votes
0 answers
9 views

Vaugue error "TypeError: Tuple or struct_time argument required"

I am facing the error TypeError: Tuple or struct_time argument required A snippet of my code is as follows: latest_time = lambda: time.mktime(imaplib.Internaldate2tuple(imap.fetch(imap.search(None, &...
user avatar
0 votes
0 answers
9 views

Swift division gives 0 instead of negative number

I'm working on some calculations for a personal project in Swift and I stumbled upon an error in Swift. If I for example calculate the following: -23 / 40 I would get 0 from Swift, but in fact, the ...
user avatar
  • 89
0 votes
0 answers
4 views

Why does the kv file cause widget functionality in the .py file to not work

Been having a lot of trouble getting a simple drop down to work with other stuff on the screen or with custom text from a list. If I delete my .kv file then the dropdown works. If I use my .kv file ...
user avatar
  • 5
0 votes
2 answers
16 views

message = 'Hello ${name}' doesn't replace the name parameter in the message string immediately

I cannot make working the basic typescript feature that I see written everywhere over the Internet, that says that : var a = "Bob" var message = 'Hello ${a}' would see a console.log(...
user avatar
0 votes
0 answers
7 views

How to remove Apple pay payment processing capability from App ID

I am trying to archive(build) my flutter app and creating an app identifier with (Groups, Associated domains, Push notifications, Sign in apple) but "Apple pay payment processing" capability ...
user avatar
-1 votes
0 answers
5 views

Can I integrate Reactjs frontend with python backend to get real time data?

I'm trying to get data from my python code so the output will be displayed on Reactjs frontend, will it be possible via python api or what technology should I go with.
user avatar
0 votes
1 answer
6 views

How to boost LSTM module inference performance in Torch?

I have developed an NLP model based on LSTM. When I deployed it to infer service, I got poor performance(heavy latency). Do you have an excellent solution to boost the model inference performance?
user avatar
0 votes
0 answers
5 views

How do I check which table got updated in an Oracle database when I update any field from the front-end application?

I have a front-end application which is connected to an oracle database. When I update any field it updates a table in the database. Due to huge size of the application I am not able to find the table ...
user avatar
  • 73
0 votes
0 answers
5 views

Spring AWS DocumentDB query optymalization geolocations

I have problem with my spring query - it's very slow, takes 15sec. I have about 10 milion records in db. Locations are downloaded from devices on cars and sometimes there is a problem with inaccurate ...
user avatar
  • 117
0 votes
0 answers
9 views

My JS code look pretty and easy to steal,\

Hi, I have a big project for 30 day and it's too complicated: canvas, handlers, conditions, etc. I want to secure the JS code, i know it's impossible because JS is client-side. But when i inspect most ...
user avatar
  • 135
0 votes
0 answers
7 views

Angular 13 on refresh page not found showing

I have 2 issues in angular 13. I'm new to angular, so I don't know how can i solve this. Question1: I'm building a website in angular 13, I have completed my work. when I deploy the website to my ...
user avatar
0 votes
0 answers
9 views

How do we solve to std_vector>::_M_realloc_insert() crash?

first:std_vector.h 948行: push_back函数插入崩溃 second:new_allocator.h 111行:std_vector>::_M_realloc_insert(__gnu_cxx::normal_iterator>>,float const&) result:std_vector>::_M_realloc_insert() ...
user avatar
0 votes
0 answers
5 views

Jetpack compose text background size is bigger

I am trying to figure out why text background on bottom and top is bigger than needed, as you see on this picture, color on start and end is just big as the end of the text, but on bottom and top, it ...
user avatar
0 votes
0 answers
7 views

Excel - Reading data, and combining rhe matches in different sheet

I have an excel with two sheets. The first one has all the matches i work with, and the second one has all the teams, that make the pairs. In the second sheet, i have for every team some cells, where ...
user avatar

15 30 50 per page
1
2 3 4 5
451916