All Questions

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

How to manage message visibility timeout effectively?

We have a process that takes from 30 seconds to 5 minutes depending on the event. Our base architecture looks as follows (python 3.9, boto3 to send_message to sqs): lambda function A looks up to the ...
user avatar
  • 1
-1votes
0answers
3views

How to build a dist file with index.php using gulp

I'm using pug and gsap in my project and I would like to create a build file to delpoy it. After running gulp build, there's no index.php file in the dist folder. Can someone tell me what should I do ...
user avatar
0votes
0answers
10views

Test neural network with less input variables than trained network - Classification of longitudinal (time-series) data

Short problem forumlation: I'm classifying longitudinal data using neural networks in my master thesis. I have samples from two one-dimensional curves at 12 evenly spaced time points, 100 samples per ...
user avatar
  • 183
0votes
1answer
7views

using ldflags for giving binary file a version not working in golang

The main.go as follows: package main func main() { println("hello world") } The Makefile as follows: flags=-X main.version=1.5.0 build: go build -ldflags "$(flags)" -o ...
user avatar
0votes
2answers
13views

can I set a variable to @ViewBuilder?

Can onebody help me with the following please: I would like to be able to set a variable in a class conforming to "ObservableObject" to different Views in order to be able to pass that ...
user avatar
  • 255
0votes
0answers
14views

Merge two rows or more tables into single row based on a column using LINQ C#

I have two Tables And I want output of both tables like this using linq C# . I have sample tables here click to check Tables
user avatar
0votes
0answers
4views

Is it possible for MutationObserver to track input events?

https://codepen.io/Inlesco/pen/rmxdpz shows that MutationObserver can track the whole input value changes done by JS. var target = document.querySelector('#custom-input'); // create an observer ...
user avatar
  • 6,189
-1votes
0answers
7views

Is Shopee Current Sandbox currently down?

I am trying to create new product on my shopee sandbox seller portal but there is always error poping out on the top... is shopee sandbox currently down and how do i reach out to their tech support?
user avatar
1vote
1answer
20views

using map function and getting this error companies1.map is not a function React JS

I am trying to fetch data from MySQL database and I am using the map function const [companies, setCompanies] = useState([]); useEffect(() => { getCompany(); }, []); const getCompany = async ()...
user avatar
0votes
0answers
11views

My Programs decrypted values do not equal the value of the input I am checking it against

So I am busy with a program that takes multiple encoded AES encrypted values from a table and decrypts those values once the value is decrypted it is supposed to check if the input is the same as the ...
user avatar
-1votes
0answers
5views

SQL - Join two queries and also set a default if there is no matching row

I want to join table1 and table2 when table1.B = table2.B then I want Table1.A value in Table2.FK column and when Table2.B have null value then I want to set -1 in Table2.FK column I tried multiple ...
user avatar
-4votes
1answer
20views

what is wrong incode python? [duplicate]

what is wrong in code python ? import requests from bs4 import BeautifulSoup import argparse class crtShClass(): def __init__(self,domain): self.url = "https://crt.sh/?q=%25."+...
user avatar
0votes
0answers
7views

why python multi-threads with multi-processes hang?

Sometimes the following python script hangs. Any suggestions will be appreciated. from typing import List from threading import Thread, current_thread import multiprocessing import time def do_work():...
user avatar
0votes
1answer
16views

How to create an EnumSet of a collection of unspecified objects

Given data: I am presented with a collection: Collection<?> collection This collection may contain anything. It could be "normal" classes, or it could be enum values. The class is ...
user avatar
  • 95
0votes
0answers
6views

Chromedriver not working properly in AWS EC2 ARM flavour machine

I have an EC2 machine from AWS with ARM flavour. I installed Python 3, and then used pip3 to install Selenium. I then downloaded the Linux version of chrome driver from here, unzipped it and kept the ...
user avatar
  • 7,181
0votes
0answers
5views

How to get csv records as objects in fast-csv, with properties in their original types rather than string?

Currently I am able to parse data as objects, But the object looks like: { CallTime: '0', Color_MachineState: 'ManualStop', StartDate: '2021/1/7 19:03', MachineName: 'CDK10' } Now, What I want is, ...
user avatar
0votes
3answers
29views

How would you convert the following dictionary to a specific JSON structure?

I'm by far not a Python3 hero, but focussed on learning some new skills with it, thus any help would be appreciated. Working on a personal project that I want to throw on GitHub later on, I run into ...
user avatar
-2votes
0answers
7views

How do I reserve a name for my iOS app so that no one else can use it?

At what point in the iOS development process using Xcode is my app name reserved on App Store? (There are no updated answers to this question in any posts at stackoverflow.) Last I remember when I ...
user avatar
-1votes
0answers
16views

For what do we still need the os module if we have the pathlib module? [closed]

I have read here that we should still learn the os module, but he doesn't bother to explain why, and what it can do more: Don’t Use Python OS Library Any More When Pathlib Can Do
user avatar
  • 1
0votes
0answers
4views

Removing one of the symmetric items in PySpark RDD

I have a list which contains only 4 numbers. I want to do cartesian multiplication, but in my case because there is no difference between (x,y) and (y,x), I want to delete one of them to avoid ...
user avatar
  • 671
-2votes
1answer
14views

How to emulate a do-while?

Help solve the problem. the first part of the code works, the selection is made, but when typing "exit" - an error exit Exception in thread "main" java.lang.NumberFormatException: ...
user avatar
  • 1
0votes
0answers
4views

Plotting graphs of differentiated functions on Octave

I learnt how to differentiate on octave through this. But I now want to plot graph of the same function on octave. I am not able to do so. I want to know what the right command for plotting the 'ffd' ...
user avatar
-1votes
0answers
39views

How to make the c ++ application work with the browser [closed]

How to make the c ++ application work with the browser. I mean a program that retrieves data from a given page (let's assume that the page displays a string) and then performs some reaction on the ...
user avatar
0votes
0answers
9views

Why transactional does not rollback when RuntimeException occur?

I want to test a non-transactional method in the service layer when inner methods are transactional separately. I want to know what will happen if some method throws an exception. Does it properly ...
user avatar
-2votes
4answers
17views

Creating 2D list from 3D list in Python

Assume I have a 3D list as following: [[[1, 2, 3], [4, 5, 6], [7, 8, 9]], [[10, 11, 12], [13, 14, 15], [16, 17, 18]], [[19, 20, 21], [22, 22, 23], [24, 25, 26]]] I want to convert it to: [[1, 2, 3], [...
user avatar
  • 1
0votes
0answers
13views

Invalide cast exception winform in c# [closed]

I want to open form inside of panel and i use god function. but i have a exception of "unable to cast object of type 'system.windows.forms.button' to système.windows.forms.form " I tried ...
user avatar
0votes
0answers
3views

files in the root of a jekyll theme not copying over to where that theme is used

I have a jekyll theme (https://github.com/godalming123/matirlize-jekyll-theme) and I use it in (https://github.com/godalming123/blog) however in the jekyll theme I have a service worker located in the ...
user avatar
0votes
0answers
4views

How to extract media from a self-contained html file using pandoc?

I'm using an extension (singlefile) to save a self-contained html file then I'm trying to use pandoc to extract all media files using pandoc. I can't get it to work and I've read the manual so many ...
user avatar
  • 21
0votes
1answer
8views

unexpected 401 on PATCH request of discord api

I'm trying to programmatically add a role to a user to indicate their account as 'linked' or 'verified' in relation to my web app. To do so, I take the following steps: in the frontend, send the user ...
user avatar
  • 306
0votes
0answers
4views

Restoring StateStore from the compacted topic

I want to restore the statestore from the compacted topic and then to use it inside the processor topology. The idea is the following: KTable<String, GenericRecord> myTable = streamsBuilder....
user avatar
-2votes
1answer
10views

Import numpy raise import error numba needs numpy 1.21 or less

I tried to import numpy and I recieved the following error: "raise ImportError("Numba needs NumPy 1.21 or less") ImportError: Numba needs NumPy 1.21 or less" we already downloaded ...
user avatar
0votes
0answers
4views

"/home" directory removed in my Google Colab

I ran a python script in my notebook which accessed and wrote to "/home" directory in colab. On program exit, the home directory vanished. How do I get back my home directory? Thanks. Raghu
user avatar
0votes
0answers
9views

Why GCP Cloud Run shuts down my Discord bot after a minute?

I have deployed the app from GitHub to GCP Cloud Run using GitHub Actions. After running the application for a minute, Cloud Run shuts down my application. I checked my credentials and everything is ...
user avatar
0votes
0answers
7views

PyInstaller .exe keeps restarting itself

I made something in python to test my python skills. I tried converting it to an .EXE (the main python file itself) but it keeps starting itself over and over again: https://youtu.be/GItuZkD8nfo it ...
user avatar
0votes
0answers
4views

Ghostscript adds whitespace no matter what bounding box I use

I'm trying to convert a page of a PDF to an image. I'm successful with most PDF's I've tried with but this one in particular always ends up with a lot of whitespace on one side or strange scaling. I'...
user avatar
0votes
0answers
14views

Why does my "functions and var" in js file not loading?

I have linked all files correctly but it still not working, I don't know If I added the wrong codes in the js file or not I linked the JavaScript file to the HTML file, but the functions don't appear. ...
user avatar
0votes
0answers
11views

How to use AWS serverless backend locally

I joined a project which was half developed and I am trying to understand how to run the backend APIs locally. So when a client hit a request it will go to AWS API Gateway goes to Lambda which then ...
user avatar
-1votes
0answers
18views

create a channel without make function (GO)

The following code works okay func main() { c := make(chan string) go subRountine(c) fmt.Println(<-c) } func subRountine(c chan string) { c <- "hello" } Is there any ...
user avatar
0votes
0answers
3views

Lock button when user put a specific value on one of the choices

I want to have a code that the user can only input 1 of the 4 rooms. I tried many ways, but I got stucked up. this is the code of my form rooms. Public Class formsnacks Private Sub Button1_Click(...
user avatar
0votes
2answers
18views

Is is complusory to use "in" keyword in closure? If no then what is the difference between closure and computed property in swift?

In swift use of get and set is not compulsory and if use of "in" in closure is also not compulsory then how to differentiate a closure and computed property? Like in below example greet is a ...
user avatar
1vote
1answer
24views

How to pipe/redirect the final stdout of a NCurse command?

I have a command that displays Ncurses stuffs (initscr, printw, addch, ...). That's okay. At the end (endwin), I want to "output" (std::cout << "some string") a string to be ...
user avatar
  • 1,538
-2votes
0answers
11views

When my app going phone number activity to otp activity,,app crashed..And My phone number is not changing

2022-03-26 14:56:03.917 31220-31220/? E/nstyle.widecha: Unknown bits set in runtime_flags: 0x8000 2022-03-26 14:56:04.037 31220-31220/? E/RefClass: java.lang.reflect.InvocationTargetException 2022-03-...
user avatar
-1votes
0answers
7views

Understanding NULL or NA values from Wikipedia API data

The data I accessed through Wikipedia API contains missing values, such as NA or NULL for pageviews, contributors and redirects. How should I treat them? Should I treat them as 0 or just missing?
user avatar
0votes
0answers
14views

Windows10's conda have a stable and reliable bluetooth third-party library?

Pybluez was developed for Linux, and I can't use the sample file on windows10 because pybluez's dependencies are implemented on Linux, which I'm not familiar with Linux.... Bleak, I used it to develop ...
user avatar
0votes
1answer
12views

Syntactic sugar explanation of Scala'a unapply method

I am getting an error in the extractor step (unapply method call). The error message is: Wrong number of arguments for the extractors. found 2; expected 0 Can someone please help what is causing the ...
user avatar
0votes
0answers
19views

jquery show div if results returned in search

I have below tab in html which show search bar with results and allow user to search from there ,if user enter text it start search from that particular word now want to show only search bar once user ...
user avatar
  • 45
0votes
0answers
8views

How to get the length value for fields whose length is specified at the beginning of the field in jPos?

For more control and clarity of the unpack ISO8583 message , I wanted to print the length of each field, my first attempt was this: .getFieldPackager(i).getLength() In a code like this: Gp=new ...
user avatar
  • 45
-1votes
1answer
21views

which is the best technique for responsive flutter

creating responsive widget kinda isMobile?Fontsize 12 : fontsize 24 or use sizer package,what is the best responsive method for web,tablet,mobile?
user avatar
0votes
0answers
10views

Is it possible for Storybook to run of a separate package.json than the main build?

I think it's fairly common to have miss-matched package dependancies between you main build and storybook which is a pain and always results in downgrading packages. Which isn't a good solution as you ...
user avatar
0votes
0answers
6views

How to make a drag&drop event contain arbitrary files (ES6+ / HTML5)?

I want elements of a webpage dragged&dropped out of the browser window contain arbitrary file objects, which can be dropped to e.g. a file browser. Having the event.dataTransfer.files contain text ...
user avatar
  • 7,746

15 30 50 per page
1
3 4
5
6 7
447682