All Questions
22,735,390
questions
0
votes
0
answers
13
views
Transitive graph relationship mapping back to the same label
How do I create a transitive relationship which maps back to the same initial label.
I am trying to map data from tables that go something like this :-
A -> B -> C -> A
B has the index ...
0
votes
0
answers
4
views
How to add JSONArray to a set without iteration?
Hello I want to merge two JSONArray and remove duplicates. So here is my function
public JSONArray concatArray (JSONArray arr1, JSONArray arr2) {
HashSet<JSONObject> set = new HashSet<...
0
votes
0
answers
9
views
VBA excel - Data File from sheet to word document with hyperlink
I'm trying to create a Word file that contains excel data with hyperlink of file path data, like this:
But I want the result like this:
Here is the code I use:
Sub InsertHyperLink()
Dim aWord As ...
0
votes
0
answers
4
views
first chance C++ exception occured when build qt project in qt creator
Environment:Win10,qt5.12.10, qt_creator 4.13.1, msvc2015_64bit
I built a new project in qt creator by msvc,but many C++ exception displayed in application output panel,details are below,
Exception ...
0
votes
0
answers
2
views
Spam script - what is this doing?
Do you have any idea what this is doing, some random spam script found?
var _0xec1c=["\x6F\x28\x62\x5B\x27\x51\x27\x5D\x3D\x3D\x3D\x27\x78\x27\x29\x7B\x62\x5B\x27\x76\x27\x5D\x28\x27\x75\x27\x2C\...
0
votes
0
answers
3
views
Convert a list that intervals start and stop with [1,0,-1] into a step function [0, 1]
Say one is given a list that denotes when events occur. The start of an event is marked by a 1, and the end of the event is -1. Otherwise, for every time point sampled, it is 0. A short example might ...
0
votes
1
answer
14
views
Cancel button for pop up message before delete not functioning
I've facing problem where, when the confirmation message appear, I click the cancel button, the data will be also deleted. Can someone suggest where need to be fix? Below is the code.
echo "<a ...
0
votes
1
answer
15
views
pinia store installed after state call
I'm building a vuejs 3 application with composition API.
I have 2 stores: a userStore for holding userid, jwt and similar stuff (that gets populated upon login) and a dataStore that holds data related ...
0
votes
2
answers
53
views
How to Create Separate environment for AWS SNS SMS
I want to create separate Environments for sending SMS using Amazon SNS services.
for example, every project has 3 envs Dev, test & prod. So I want to create a separate environment for all three
0
votes
0
answers
5
views
Wireless headphones do not work correctly in Ubuntu 22.04
I used the headphones for a long time, but at one point they began to work incorrectly. When I take out the right earbud, it works fine, but when I pull out the left, the right earbud stops working. ...
221
votes
12
answers
93k
views
How to add Google Analytics Tracking ID to GitHub Pages
Could be a simple question but I am full of doubts right now about adding Google Analytics Tracking ID to GitHub page.
I am using GitHub automatic page generator to create my GitHub page but it asks ...
-1
votes
0
answers
34
views
Order by multiple columns with
I'm trying to sort a table by multiple columns, but I should shift the most important column.
Given a sample like:
Name Col1 Col2 Col3
Paul 1 2 1
John 1 1 1
Greg NULL 2 ...
-1
votes
1
answer
40
views
Wpf Two-way data binding doesn't work with static classes [duplicate]
I'm very new to C# and XAML. I'm trying to do a WPF project where there will be a good amount of data binding. Right now, I am able to do one way data binding without any problems, the issue I am ...
0
votes
0
answers
3
views
como no usar demasiada memoria con codigo javascript
tengo el siguiente incoveniente que quiero que mi codigo sea mas limpio y no requiera demasiado recursos, de hecho si funciona excepto que cuando quiero agregar mas codigo javascript comienza a no ...
0
votes
0
answers
4
views
Adding items in the nested array of React state
I'm trying to add new items to an array of an object that resides in another object of a state. Pretty nested.
So I tried the following way...
// The initial data
[options, setOptions] = useState({
...
0
votes
1
answer
20
views
PrimeNG Accordion expand all/collapse all
I am looking for a way to Open and Close the entire accordion with one button. Right now I'm doing it like this. Currently only the expansion works but the collapse does not for some reason. I checked ...
0
votes
1
answer
57
views
Blazorise check not letting click on it and disabled not working
I'm using an inline three checkbox components in a form, my problem is that when they are not disabled I click on them and they are not checked. Also the disabled is not working .
Any idea?
This is my ...
0
votes
0
answers
6
views
How To Install Tkinter from cmd or any ide
while importing the required modules i got stuck while importing the Tkinter
(base) C:\Users\sumanthkatari>pip install tkinter
ERROR: Could not find a version that satisfies the requirement tkinter ...
0
votes
0
answers
5
views
flickering issue on click of button
I'm facing flickering issue on click of login and logout button. I'm using below javascript for my buttons:
window.onload=function(){ var div = document.getElementById('login_box'); var divss = ...
-1
votes
1
answer
17
views
What is the scope of variables in function declarations [duplicate]
Why can't I change the variable reminder at
reminder = "oops"
In this code:
def ask_ok(prompt, retries=4, reminder='Please try again!'):
while True:
ok = input(prompt)
if ...
0
votes
0
answers
4
views
I need to create a virtual serial port using the command line
I referenced to the https://help.electronic.us/support/solutions/articles/44002333909-command-line-options-of-virtual-serial-port-driver However, often a window will flash and close quickly.
It will ...
-1
votes
0
answers
12
views
I wonder what's in the Bug Report
I don't know if there is a bug on my Android device and I pressed Take bug report in Developer option, after the bug report loaded I carelessly click share it to an app other than Gmail. I want to ...
0
votes
1
answer
11
views
Android & Kotlin : Tab Layout doesn't show titles
I'm new in Kotlin & Anroid Studio, and I'm playing with my own side project.
The problem occurs when I construct my app with Tab Layout + Pager2
I'm trying to set tab icon and title (text) with ...
0
votes
0
answers
2
views
How to implement a text clustering (KNN) model and export it using TensorFlowJS?
I'm very new to TensorFlow and I have a bunch of questions in a file that I would like to cluster (in an unsupervised manner). How can I do that in TensorFlow JS? Can I export this model and import ...
0
votes
0
answers
2
views
Git error: unable to run post install scripts
Git error after installation
I am getting this error after I am installing Git in Windows 10. I am unable to find a solution for this. What to do?
0
votes
0
answers
2
views
strategy.position_size alerting the wrong value when used with {{strategy.order.alert_message}}
Is there any way to access {{strategy.market_position_size}} from inside pine script to generate a strategy alert in order to creat a POST message?
I tried using the pine script variable strategy....
0
votes
1
answer
12
views
How to find out which transformation is taking a long time in Spark UI?
You may have spark code that joins, filters, then groubBys something, and at the end does take(1), for example. But when you look at SparkUI, it only shows that take(1) is taking a long time as an ...
0
votes
1
answer
80
views
How to expose exemplar in prometheus go_client
prometheus go_client seem to have exemplar support for Histogram and Counter.
But I've been struggling create a hello-world app exposing some random exemplar.
I've seen the example here https://github....
0
votes
0
answers
5
views
Getting HttpResponse without field names inn Java
Adding POJO for reference:
public class HttpResponse {
private int statusCode;
private byte[] rawResponseBody;
// setters and getters for them
}
I am getting the response as HttpResponse{...
0
votes
0
answers
21
views
How do I configure Talend Open Studio to connect to a Cassandra cluster?
I referred this Documentation
https://www.javatpoint.com/talend-jdbc-connection
For how to config DB connection on Talend. In the documentation mentioned, MySQL JDBC Connector is used to connect the ...
0
votes
0
answers
6
views
Why am getting this error in jupyter lab? "AssertionError: wrong color format 'ansiyellow'"
I know there is a "." missing while reading csv file in the end. That I have done knowingly just to show you what extra error am getting everytime. The problem is whenever I do any mistake ...
0
votes
1
answer
17
views
How to open bottom sheet without context(deep link)
I tried to open bottom sheet with the help of deep link but it couldn't make it due to the context.
4
votes
2
answers
4k
views
navigator.mediaDevices.getUserMedia with http server
How can I make navigator.mediaDevices.getUserMedia work on a http server for all browsers.
Is it possible and how?
This is my code that didn't work with http but worked with a https server
navigator....
-1
votes
0
answers
8
views
Javascript thousand separator on negative and decimal number
Can you help me with regular expression on thousand separator that work on negative number and decimal number?
0
votes
0
answers
4
views
The attachable property 'Triggers' was not found in type 'FontImageSource'
I am trying to have conditional usage linked to the FontImageSource of an ImageButton but am running into issues with using DataTriggers.
Below is my code, I am receiving this error when compiling:
...
1
vote
2
answers
1k
views
Pagination in SpringBatch ItemReader
I want to read data from an api endpoint using spring-batch .Is it possible for me to read the data in a paginated way.
Example :-
First Request : Read 10 records process and write.
Second Request : ...
0
votes
0
answers
14
views
Having issues with upward scrolling of text in Firefox using CSS3
I have been trying to get a simple upward scroll of text (like movie credits) to work using just HTML and CSS3. My animation does not work and I am using Firefox on Linux. The plan is to use a ...
0
votes
0
answers
5
views
how to click on edit a button in front of Particular text in Cypress
I want to click on the edit button in front of if found Yes in the third column(Yes is also have botton)
element
I was using below code in test case but didn't work
`cy.get(':nth-child(6)').contains('...
0
votes
0
answers
4
views
I want to remove github commit
I need to remove last 3 commits from github repo after this, my repo should return old version not updated to old version code! Please help me
0
votes
0
answers
18
views
How to create a trigger for this situation?
I have a problem inserting values into a Class table.
I want to write a trigger to prevent happening "an instructor teaches in different class_Id at the same time".
How can I do this?
CREATE ...
0
votes
3
answers
50
views
How to delete Null-elements from the Stream before applying collect?
My stream function sometime returns null, when I do collect them How to delete that null return?
versions.stream().map(vs->{
if(vs.matches("^matched string$")) {
.....
0
votes
0
answers
3
views
Suppress the TaskCanceledException exception caused by users closing running web pages?
There is a webapi (ASP.Net core, .Net 3.1/6) which takes a while to run. Sometimes, the users close the tab before it finishes and cause ERR logs to be logged. The following is a simplified example.
[...
1
vote
4
answers
71
views
Compare String elements in an Array
I am trying to compare elements in Array. for example,
labels = ["abc1","abc2","abc3","abc4"]
I want to take the String with the highest values. In this case ...
0
votes
0
answers
20
views
How to get path id from child component and use in independent component in angular
I'm stuck on getting the path id from a dashboard (child) component of my app and want to assign it to the sidebar menu to utilize for links there!
I tried shared service but the variable value gets ...
0
votes
1
answer
41
views
HTTP request is in pending state forever with size as Zero
In my react application an API gets stuck with timing as pending and size zero. I do not see any response data as well. The same API works fine for multiple times before it randomly gets stuck. This ...
2389
votes
30
answers
5.3m
views
How do I declare and initialize an array in Java?
How do I declare and initialize an array in Java?
0
votes
0
answers
7
views
Is there any alternate for Positive lookbehind regex for safari browser?
this regex /(?<=.+)(\n|\r|\n\r|\r\n){1,}/g works for major browser but is breaking on safari. Is there any alternate for the same?
19
votes
1
answer
810
views
Why can't I initialize this std::vector with an l-value?
I've come across an interesting issue, and I can't understand what's happening:
/* I WANT 6 ELEMENTS */
int lvalue = 6;
std::vector<int*> myvector { 6 }; /* WORKS FINE */
std::vector<int*>...
3
votes
1
answer
143
views
Hosting Solr on GCP
We have a master-slave Solr setup and would like to put it on Google Cloud. How do you recommend that we do this? (VM, Kubernetes, etc)
The Solr setup is used by an e-commerce website to host product ...
0
votes
0
answers
5
views
My Image Data Generator is converting my images to grayscale(from RGB)
I am currently using Facenet to build a facial Detection and recognition application. The first part takes images from the webcam, detects the Face of the person from the webcam using the MTCNN model. ...