All Questions
24,009,324
questions
0
votes
0
answers
3
views
Question about for loop arguments in python
I've started learning python from scratch, coming with some rudamentary java knowledge. When I started learning about for loops I expected something in the likes of this:
for n in range(0, len(...
0
votes
0
answers
2
views
How to add Domain for Glossary in Microsoft Purview Free
I would like to add new Glossary in Microsoft Purview Preview free (2023), but domain dropdown is mandatory and it is empty by default. How to add domain?
0
votes
0
answers
2
views
Hide non consecutive columns
I would like to hie non consecutive columns. I've got with a loop that is working. I've got an array of the index of the column that I want to hide.
const hideColumns = [1,3,7,15]
The issue is that ...
0
votes
0
answers
3
views
Need help displaying total value of Price column in Asp Net Core Web App
I have an Index.cshtml page using RazorPage and a Data.js file used to retrieve data. Now I have got the data but now I want to display the total Price column.
Code in Index.cshtml
<div class="...
0
votes
0
answers
5
views
If statement using a character or string in C not working
I'm trying to create something that gets an input from a user which is a y or n and using an if statement to check which one it is.
char shChoice[1];
printf("Would you like to buy something ...
0
votes
0
answers
4
views
SeleniumBase multithread is not working, I am using UC with it
I am trying to login to reddit using SeleniumBase, I am a top moderator trying to add a bot to my community which can automate tasks for me to keep the community clean, for some reason when i open the ...
0
votes
0
answers
2
views
how do we deploy ear file in IBM WAS from CMD/PowerShell/Linux terminal
Anybody please provide me.
how to deploy the war/ear file in IBM WebSphere Application Server from cmd/PowerShell/Linux terminal?
I had installed the IBM WebSphere Application Server in my local ...
0
votes
0
answers
3
views
Create event on employees google calender
We have a HR system (PeopleHR) which when holidays are approved, the entry is automatically added to the persons calendar.
This is done using webhook.
We want to use another webhook to inform the ...
0
votes
0
answers
3
views
getComputedStyle not returning correct pseudo-selector properties (React + Vitest + react-testing-library)
I'm trying to write a test for a custom HTML switch component, which I've created starting from a MUI example (the 1st one of the four switches).
This is the component's code:
import styled from '@mui/...
0
votes
0
answers
6
views
Converting list of Numpy ND Array to list of int
I wanted to find the index number for a specific float for which I ran the following code:
RELIANCE = pdr.get_data_yahoo('RELIANCE.NS', start='2023-02-01', end='2023-12-06')
RELIANCE.reset_index(...
-1
votes
0
answers
9
views
Happy subsequences at increasing positions in a matrix
Given a matrix M of n×m characters, a happy subsequence at increasing positions is a triple of positions (i1,j1),(i2,j2),(i3,j3) such that M[i1][j1]=’:’, M[i2][j2]=’-’, M[i3][j3]=’)’ and 0≤i1<i2<...
0
votes
0
answers
6
views
is there a way to code PyQT pdf reader with page navigation?
I am trying to create a pdf reader, that opens pdf file, and then can brouse through pages.
I also need a code for drawing red rectangles on a page.
But I am new to pyqt and can't seem to wrap my head ...
0
votes
0
answers
3
views
How to choose the number of layers and neuron and find optimal combinaison in neural network with R
I used this code to choose between layers and neurons according to RMSE, but I get only two layers and I want to choose between 3 layers with differents neurons number. In addition, when I re run the ...
0
votes
0
answers
5
views
Node server is not running on electron app launch with react
Hi In my demoApp I want to start node server/server.js automatically when electron app is launched.
I have written below code which works fine when I run npm run electron:start on my local system but ...
0
votes
0
answers
8
views
Why does the Kotlin coroutine output "A B" even with a delay?
I have the following Kotlin code snippets using coroutines, and I'm puzzled by the output. Can someone explain why the output is "A B" in both cases?
// Code Snippet 1
fun main() {
...
0
votes
0
answers
3
views
The Flutter app crashes when I open the yandex map
Hello everyone We are making an application on flutter. Faced with such a problem, when opening and closing maps multiple times, the application crashes, from the messages that I receive yandexmap:got ...
0
votes
0
answers
5
views
VueJS Component vue-multiselect-listbox
am trying to use this beautiful component located here https://abhimediratta.github.io/vue-multiselect-listbox
but am having some problems. I am not too good with vuejs and having problems trying to ...
0
votes
0
answers
7
views
How to fetch exact data from multiple dictionaries that I am receiving at client side over python websocket?
I am trying to fetch ltp (last traded price or 'lp' in below attached output) for some stocks via brokers api as follow :
api.subscribe(
[
"NFO|43232",
"NFO|43207",
"NFO|43224&...
0
votes
0
answers
7
views
round off decimal numbers in x++ d365
I am trying to round off decimal numbers,something like this:
2.367 -> 2.35
168.943 -> 168.93
345.9436 -> 345.942
but neither round() nor roundDown() functions are working. How can i ...
0
votes
0
answers
6
views
How to find Git commits not in any branch?
In the repository I'm currently working there are a bunch of commits whose branches were removed without being merged, but because tags were created pointing to the commits, these will live on forever....
0
votes
0
answers
4
views
Angular CDK Drag and drop, Handling multiple drag elements
Here i have this draggable list that have to be dragged and dropped to every div that is generated on the click of add button. So till now what i have achieved is, iam able to drag and drop to the ...
0
votes
0
answers
5
views
Why after used Floating action button apps got crushed ? Android studio XML
my textview is ok, my button is ok, but when i'm adding Floatingaction button then, after run automatically apps closed & Crushed. Why ?
Here's my XML code & I've not put anything in ...
0
votes
0
answers
8
views
by specifying file extensions 'not file names', python code to download files from url
I tried several codes, this is the latest, to download any file has a csv extension from a provided url. it does download the file, however it is corrupted. Here is the code
def download_main(
url,...
0
votes
0
answers
7
views
Unable to pass data from one component to another in next js 14
I am passing data from one component to another using query but I am getting data undefined or
{ params: {}, searchParams: {} }
but on ProductData component I am getting data correctly pls let me know ...
0
votes
0
answers
7
views
Email send through nodemailer In node js goes into spam in hotmail
I've configured Nodemailer to send emails in my Node.js application, and it works fine for Gmail addresses. However, emails sent to Hotmail addresses are marked as spam.
I've ensured that my SPF and ...
0
votes
0
answers
7
views
I need to make photo fill bottom row of gui with picture instead of just half of the bottom
I tried to change immage size, didnt fill bottom of screen with src/pipe_pan23.jpeg photo.
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
...
0
votes
0
answers
4
views
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationProvider' in your configuration
ERROR: Parameter 1 of constructor in com.example.Security.Config.SecurityConfig required a bean of type 'org.springframework.security.authentication.AuthenticationProvider' that could not be found.
`
...
0
votes
0
answers
3
views
Elastic search - copying indexes with data from one linux server to another
I have 4 indexes with 10GB data in my dev Linux (CentOS) machine, I want to copy these 4 indexes from dev to prod server (CentOS). Can some one suggest the easy and robust approach, meaning all the ...
0
votes
0
answers
5
views
userSchema.plugin is not a function
I install passport-local-mongoose package
and when i used this -
const mongoose = require("mongoose");
const plm = require("passport-local-mongoose");
mongoose.connect(
mongodb+srv:...
-1
votes
0
answers
4
views
Turtle graphics window not showing up when I click run
I recently encountered this problem that whenever I try to run turtle graphics, the window doesn't show up, and in the console it just shows:
Hi, PyCharm
Process finished with exit code 0
My code was:
...
0
votes
0
answers
10
views
Python: ctypes _Pointer type hinting
I am trying to build a function with type hinting which iterates over a C array/pointer as long a condition holds.
from ctypes import *
from ctypes import _Pointer
from typing import TypeVar, Callable
...
0
votes
0
answers
10
views
Authentication Exact Online API
I'm trying to connect the Exact Online API but I'm having problems get it working.|
I want to run it local but I get the following response from Exact Online.
Callback URI 'http://localhost:8000/...
0
votes
0
answers
5
views
How to fix ShellItemRenderer and TabbedPageRenderer is not abstract error in .NET MAUI?
I'm migrating my Xamarin forms code to .NET MAUI. After migration when I build my Android project I get the following errors:
JAVAC0000 error: ShellItemRenderer is not abstract and does not override ...
0
votes
0
answers
4
views
Bluetooth background request sending but not getting anything back through listener
Here's how the app works - it connects to the device over Bluetooth (library is react-native-ble-manager), and sends a “request” with writeWithoutResponse for the info register (this contains ...
0
votes
0
answers
6
views
Grafana alerts isn't evaluated as the preview
I have set up alerts in grafana and previewed that everything works.
But when Grafana runs the alert then the result is very different.
The one that in preview is evaluated to "Firing" is ...
-1
votes
0
answers
11
views
How to obfuscate data, but have it still make "sense"?
I was tasked with finding a way to obfuscate certain data in Snowflake.
I am using a masking policy for that and my current solution is to change the string characters based on their ASCII code. See ...
0
votes
0
answers
6
views
Issue with Broadcasting Array Shapes
I am trying to implement the discrete Burger's equation in python and Jupyter notebook and I am trying to test it using a step function but I am facing an issue:
could not broadcast input array from ...
0
votes
0
answers
7
views
I can't login to Keycloak with Node
I want to login to Keycloak with Node. My Keycloak instance runs on a container in a virtual machine. I am using the following code:
const axios = require('axios');
function loginToKeycloak(username, ...
0
votes
0
answers
10
views
unable to use headers with vscode
I am trying to use headers in vscode but I run through a lot of problems
this is print.c
#include <stdio.h>
void print1to10()
{
for (int i = 1; i <= 10; i++)
printf("%d &...
-1
votes
0
answers
6
views
Title of the app is not appearing on the homescreen
As you can see there is not app title
like in this image
I am very new to Android, and I am learning to make this app with java on android studio.
I'll share more info as per your query.
I tried ...
0
votes
0
answers
4
views
AWS Amplify Access Is Denied After Deleting Cognito User Pool
I have a NextJS app hosted on AWS Amplify and I successfully deployed the Amplify Authentication to my app. Then I noticed there was an issue with the Sign Up screen (not displaying the required ...
0
votes
0
answers
10
views
Azure Functions V4 not showing functions
I'm currently attempting to deploy very simple functions to Azure Functions V4 using Typescript. The functions is the boilerplate timerTrigger and and httpTrigger.
I'm deploying the code using func ...
0
votes
0
answers
3
views
fastify-flash with typescript version
I am using https://github.com/fastify/fastify-flash for my cli generated typescript project but unable to use it.
Getting below error whenever i am trying to use request.flash method.
Property 'flash' ...
0
votes
0
answers
5
views
Heroku Redis for Data doesn't connect to Sidekick. RedisClient::CannotConnectError
I am working on a Rails project deployed on Heroku with two add-ons (Heroku Scheduler and Heroku Redis for Data) that are supposed to launch jobs at a certain time.
I don't know exactly when this ...
0
votes
1
answer
12
views
TypeError: Cannot read properties of null (reading 'split') when running code coverage istanbul
I have a Vue project and whenever I try to do a test coverage I run into the following error; TypeError: Cannot read properties of null (reading 'split'). I have tested it on 0.34.1, 0.34.6 and 1.0.1.....
0
votes
0
answers
4
views
In opencl how to synchronize the threads with in a if/while block
OpenCL standard says using barrier inside if/while block results undefined behavior. But I don't see a reason why synchronizing threads with in an if/while block is not possible; the divergent threads ...
0
votes
0
answers
5
views
How can I create a search bar in a map chart using Vega-lite?
I am using an example of the Vega-lite's site, this one and I want to create a search bar, like this one. My charts appears as it should, but the search bar doesn't work.
This is my code. The search ...
0
votes
0
answers
3
views
FirebaseStorageUI SDWebImage cache image with custom key
I want to cache image with a custom key, so that whenever the image will be updated in the same URL I am able to handle it and re-download the image instead of getting it from the cache.
In my Android ...
-3
votes
0
answers
22
views
What is the corrected answer for the arrangement of essential code blocks to win the game?
enter image description herei tried rearranging the code to my best ability but unable to win the game
i tried move up move right and move right to avoid the attacks but still dont get how to use the ...
0
votes
0
answers
11
views
Rename ggplot x-axis labels using a named vector containing subscripted characters
I'd like to replace the x-axis labels in my plot with a named vector. Some of the new names have characters I'd like subscripted. I've given an example below in which I'd like "H2O2 500 µM" ...