All Questions
22,753,688
questions
0
votes
0
answers
18
views
Best practice for converting values to number/boolean in TypeScript [closed]
There's more than one way for converting strings to numbers in TypeScript and JavaScript - for example, you could use +myStringNumber or Number(myStringNumber). The question is - which of these (or ...
0
votes
0
answers
13
views
Python Flask on Windows: How to deploy production ready site using Waitress or httpPlatformHandler
To get our development environment up and running we followed https://medium.com/@dpralay07/deploy-a-python-flask-application-in-iis-server-and-run-on-machine-ip-address-ddb81df8edf3 which was great ...
0
votes
0
answers
9
views
How to create a dynamic nested mongoose document with the same schema on multiple levels
Before everyone tells me I can't call a const before initializing, I do know that.
But I think this is the simplest way to render the concept I have in mind, (where any subdocument within the replies ...
0
votes
0
answers
5
views
Getting Error while adding migration for Identity Classes
while adding migration to identity Class library getting error
"startIndex cannot be larger than length of string. (Parameter 'startIndex')"
0
votes
0
answers
10
views
How exclude files from building process in azure pipeline?
I have problem with Azure DevOps, because I don't fully understand building process via pipelines. Based on what I have read, e.g.: if I do PR to master, azure checks if any files have changed, if ...
0
votes
0
answers
9
views
How to write data structure Graph using Java model class
A product can have distinctive sorts of attributes, and they can change with regard to items, such as a car can have taking after qualities: {cost, colour, price} and chair can have : {cost, width, ...
0
votes
0
answers
8
views
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices on streamlit
Error on web page
So I am trying to implement my recommendation model after implementing on Kaggle and for deployment, I use streamlit for making it a webpage so I can deploy on Heroku. But i am ...
0
votes
0
answers
6
views
My geojson-file doesn't get loaded via fetch
I am trying to load a geojson-file into my map via fetch right here
https://olive-highfalutin-crown.glitch.me/
but I get nothing shown to be loaded in my network sources.
That is my code therefore:
...
0
votes
1
answer
10
views
Kotlin: Type inference failed. The value of the type parameter T should be mentioned in input types
I'm new to Kotlin, for the piece of the below code:
fun a(stcd: String) {
val res = mutableSetOf<String>()
val aaa = mutableListOf<Map<String, Set<String>>>()
...
0
votes
0
answers
11
views
overflowing: UIViewRepresentable of UITextView with maximal height and disabled scrolling
When using a UIViewRepresentable of a UITextView with disabled scrolling and having a maximal height, the height limit works fine if the text displayed does not contain any newlines. The text just ...
0
votes
0
answers
7
views
Error spawning ngrok.exe while running an atlassian connect app
I am trying to create a atlassian connect app for Jira, and this is my first attempt at this. I have configured all the dependencies, including Python 2.7 and windows-production-tools required for it. ...
0
votes
1
answer
14
views
How do I stop my button from failing with input in the box?
I have a button that is taking text entry in an input box and appending to a URL and redirecting.
The entire system is working, however the problem I am facing is when I enter the text and click the ...
0
votes
0
answers
7
views
An error has occurred. Websocket error: undefined in Linkerd Dashboard
I have minikube running in AWS EC2 Instance, Meshed the application with linkerd, when i try to monitor the Live Calls throws An error has occurred. Websocket error: undefined in the linkerd dashboard....
0
votes
0
answers
15
views
How to conditional exports from package.json
I have section exports in my package.json:
"exports": {
"import": "./dist/a.es.js",
"require": "./dist/b.umd.js"
},
But for ...
0
votes
0
answers
14
views
Pass a comma separated string to the parameters in SSIS with the stored procedure
I'd like to pass a comma separated string to the SSIS package parameters by using the stored procedure in SQL Server. However, when I executed the query, the error message shows up:
Msg 27147,Level ...
0
votes
0
answers
6
views
React - Export html table data with images to excel
How to Export table which contains images inside as well to Excel (REACT). Please excuse my English. I know how to export table data to excel with npm libraries like react-csv, react-export-table-to-...
0
votes
0
answers
11
views
Get vCPU count for a given AWS instance type in Go using AWS client
I've the AWS instance type(e.g. c5.18xlarge etc.) in my config files. During runtime, I would like to fetch the number of vCPUs(e.g. 72) from here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/...
0
votes
1
answer
14
views
How to do one hot encoding in Pandas and Pyspark
I have a dataframe as follows:
id country amount city
1 France 4 Paris
2 Italy 9 Naples
I want to convert it to
id amount city France ...
0
votes
0
answers
23
views
Function name for square brackets creating list
Apologies for the simple question - I've spent a while trying to answer it.
When [] is used for indexing, Python calls the function __getitem__. What function does Python call when [] is used to ...
0
votes
0
answers
11
views
Rails param permit when posting array [duplicate]
I would like to post an array of objects to Rails server and permit those params like I'm used with hashes. I have looked through the internet, but I can't find anything.
An example of POST body:
[
{...
-1
votes
0
answers
9
views
Coach mark View in iOS Swift
I want to highlight certain part CGReact of any page . i am trying to create an overlay on which i can pass highlighted area CGReact and overlay will be transparent for passed React Size , and other ...
-1
votes
1
answer
24
views
How to convert comma separated Query param into KeyValue Pair json object using javascript
I have this Query param that I already converted into JSON.
{"Id":"ZX0123455555,ZX0123455555,ZX0123455545"}
And I want it to become looks like this:
{
"Id": "...
0
votes
0
answers
9
views
Blocbuilder is not being called after manipulating the list inside the state
Blocbuilder is not being called after the list inside the state is changed or item added or removed.
BlocBuilder is not used with buildwhen,
bloc state manipulation code is as below
FutureOr<void&...
0
votes
1
answer
15
views
Where clause if true would not show at all
Have table where are two columns - client_id, content
every client have +- 50 content rows.
In WHERE i have this clause - where content NOT IN ('2','3','4')
In result shows same clients but without ...
0
votes
0
answers
10
views
Convert string format to Timestamp in Lua
Summary
I would like to convert string timestamp into timestamp format not again in a string format.
My try
local my_ts='2011-01-01 00:00:00.000'
local y, m, d, Hr, Min, Sec, Milli = my_ts:match '(%d+)...
0
votes
0
answers
8
views
AttributeError: partially initialized module 'rasterio' has no attribute '_loading' (most likely due to a circular import)
kindly guide me to resolve the issue - AttributeError: partially initialized module 'rasterio' has no attribute '_loading' (most likely due to a circular import)
This code is for GLCM (referred from ...
0
votes
0
answers
19
views
Merge 2 dataframe based on if-else condition
I have 2 dataframes. a DF1 like this and the other one DF2 like this.
Expected output:
I would like to split DF1['posts'] in tokens, save it in a new column (let's say DF1['words']) and then for each ...
-1
votes
1
answer
15
views
Django: how to use .filter( ) method in django?
I am trying to display quiz only for users that are registered in a particular course, i.e if a user is registered in a Frontend Crash Course i want them to see only the quiz related to that course ...
-1
votes
1
answer
21
views
Group by a variable in dataframe R
I have a dataframe like below,
Date
cat
cam
reg
per
22-01-05
A
60
120
50
22-01-05
B
20
100
20
22-01-08
A
30
150
20
22-01-08
B
30
100
30
But i want something like below,
Date
cam
reg
per
22-01-...
0
votes
0
answers
11
views
Updating complex rails app, is it possible?
Did some version bumps in Gemfile, even used special site RailsBumb, but still get long error message like:
Bundler could not find compatible versions for gem "actioncable":
In Gemfile:
...
0
votes
0
answers
6
views
RocketChat send image in WebHook
I am writing my Webhook to receive events from Moira. Can someone tell me how to add the resulting binary image to the message. Probably only if you upload it to an external service and take a link ...
-1
votes
2
answers
18
views
Add a line feed in request url
https://www.something.com?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZUEVHTLQQK3BBSM6%2F20220707%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20220707T080637Z&X-Amz-Expires=...
0
votes
0
answers
8
views
OpenSearch Python Client Connection SSL Error
I tried connecting to opensearch using python client but getting SSL Error.
OpenSearch Version: 2.0.1
Python Version:3.6
public IP of the opensearch host: 10.83.5.67
Here is the python code for ...
-1
votes
0
answers
10
views
How to bind IsSelected property of DataGrid row to a source property
I have a DataGrid and bind its item source to the below class list. How to bind the Data grid rows IsSelected property to the class IsChecked property ?
public class DeckInt : INotifyPropertyChanged
...
0
votes
1
answer
17
views
How to select a column that has spaces with its name?
SELECT City, State
FROM PATIENT
WHERE [Patient Last Name] = 'Parker';
This is the code that I used to display city and state info for the patient whose last name is Parker. I tried [Patients Last ...
-1
votes
0
answers
9
views
Solana Rust (Anchor): Cannot Deploy Contract to Devnet
I'm facing an issue whenever I try to deploy my lib.rs smart contract to the api.devnet.solana.com, I have 4 SOL in my account and my solana config get is configured for the devnet URL.
Following ...
0
votes
0
answers
6
views
How can I using prometheus servicemonitor relabeling/metricRelabeling to drop a specific label in a specific metrics?
For example, I have teo metrics with different label
node_metrics_first{foo="bar",AAA="aaa"}
node_metrics_second{BBB="bbb",CCC="ccc"}
how can I use relabeling/...
0
votes
0
answers
15
views
Spring Boot @Value Properties Report
I have an Spring Boot application, which has a number of properties and is delivered to an "external" customer.
Most properties have sane defaults, so they are added to application....
0
votes
0
answers
6
views
Kafka connect S3 source failing with read-only registry
I am trying to read avro records stored in S3 in order to put them back in a kafka topic using the S3 source provided by confluent.
I already have the topics and the registry setup with the right ...
0
votes
0
answers
8
views
Google Apps Script not sending email
We are trying to get e-mail notifications in cases there would be some dramatic changes in our revenue data. Could anyone please indicate possible errors why it wouldn't send e-mail?
function ...
1
vote
1
answer
11
views
git pushed and merge to wrong branch on bitbucket
I did 2 git pushes to wrong branch on bitbucket. After that i did some merge while trying to fix this. Please help me I am in problems.
I have tree like this:
previos push 1 -> previous push 2 ->...
0
votes
0
answers
9
views
SQLSTATE[HY000] [2002] No such file or directory when testing a post request in Postman | Laravel + MySQL
I'm trying to make an auth api, but when I try to register a user this error appears in Postman:
Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] No such file or directory (SQL: insert into ...
0
votes
0
answers
6
views
Does anyone know how to implement channel functionality of telegram using flutter framework?
Does anyone know how to implement the channel functionality of telegram using the flutter framework?
0
votes
1
answer
10
views
Azure Blob Storage - how to use index tags in search explorer?
I have an existing application that stores all types of documents(currently ~9TB) with full text search enabled in sql server. Now planning to migrate to Azure blob with cognitive search. I have user ...
0
votes
0
answers
10
views
Bootstrap media object issue on css
Trying to use Bootstrap to display media(https://getbootstrap.com/docs/4.0/layout/media-object/),like the first one in the website,but after copy-pasting the code from docu,the results are not the ...
0
votes
0
answers
14
views
vis.js timeline header format
I have a demand for a kind of double header layout like this:
Week 1 | week 2
person 1 | person 2 | person 3 | person 1 | person 2 |...
-1
votes
0
answers
9
views
How to fix this error: "This XML file does not appear to have any style information associated with i"
I deployed the file in amplify - and after load the we app on browser this massage display "enter image description here "
0
votes
0
answers
9
views
Inline declaration in SAP ABAP
I would like to ask about inline declaration.
When we declare a variable normally, we specify its type.
What happens to the type of an inline declaration variable if we don't specify it? Is it ...
0
votes
0
answers
9
views
How to add include files properly with CMake
I want to add a external include files/library with CMake,if I do:
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(minimal)
set(CMAKE_CXX_STANDARD 14)
find_package(Garfield REQUIRED)
...
0
votes
2
answers
30
views
ReactJs beginners question filter by year function
my items format:
{
id: "e4",
title: "New Desk (Wooden)",
amount: 450,
date: new Date(2021, 5, 12),
}
I'm trying to create a filter by year function
const ...