All Questions
23,934,918
questions
0
votes
0
answers
3
views
how do you embed a Google Maps iframe in a NextJs 13.5.3 component?
Working with NextJs 13.5.3. Everything was going smoothly until I got to a section of the webpage where the client needs a Google Maps frame with the location of their warehouse.
After doing some ...
0
votes
0
answers
3
views
Image Spoofing Detection
Currently, I am working on image spoofing detection to detect that the image that the user uploads is real. It is not the image that was captured from the screen or any other edited image. Does ...
0
votes
0
answers
4
views
How to create Input type Color with custom colors
I want to create this input type color like my image.
<input type="color" list="presetColors">
<datalist id="presetColors">
<option>#ff0000</option>/>...
0
votes
0
answers
3
views
Implementing filter feature in angular
I am trying to implement a filter feature in my angular application.
In my page, I have subscribed to changes in the filter component and as soon as user makes any change I want to filter the result ...
0
votes
0
answers
3
views
How to use mock.patch with wraps on a class method?
I am using unittest.mock.patch with wraps to mock a function while being able to access the original function. For example:
from unittest import mock
def f(x, y):
return x * y
print(f(2, 3)) # ...
0
votes
0
answers
3
views
How to add the sum-to-zero and greater-than-zero constraints (football power ratings) in R
I'm trying to calculate teams' ratings from the final score using the English Premier League 2022-2023 as a data set. It's a 380x4 data frame relative to 380 matches and the 4 columns are Home Team, ...
-1
votes
0
answers
6
views
Empty line at the end of code needs removing
I have this method that returns a string where a triangle appears on the left size of the diagram, followed by horizontal lines. I used a stringBuilder for this method. The problem is that there is an ...
0
votes
0
answers
3
views
Issues Removing PostgreSQL Installation - Permission denied
There were some conflicts with a couple different versions installed ( from school and for work ), so I aim to remove PostgreSQL completely from my machine ( to reinstall afterward ).
In this process, ...
0
votes
0
answers
3
views
What are the inbuilt functions that the godspeed framework supports?
What are the inbuilt functions that the godspeed framework supports?
Recently ,tried using godspeed which is a wonderful framework to create API's, exploring more about the framework.
I tried ...
0
votes
0
answers
3
views
Postgres: ltree's data type from the system information_schema.columns gives incorrect data type "USER-DEFINED"
I have the following table:
CREATE table contact (
id bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
firstname text,
lastname text,
birthday timestamp with time zone NOT NULL,
...
0
votes
0
answers
4
views
Unable to activate venv from python makefile
I have the following python makefile.
.ONESHELL:
TEST_DIR = ./tests
DIR_NAME = $(shell date "+%Y-%m-%d_%T")
.PHONY: clean test backup env
env:
. .venv/bin/activate
test: env clean
...
0
votes
0
answers
3
views
Why My Spi Connection Is Not Getting started?
Hello Guys I Am New To Embedded & Rasberry PI. So In Order To Understand SPI Connection I Made An PI-PI SPI Setup PS. I am Using Two Rasbrry Pi Model 4 B with Raspi OS & i did the followings ...
0
votes
0
answers
5
views
Requested the deserialization of a Lambda layer with a Python `lambda` inside it. you can pass `safe_mode=False` to the loading function
This is a Flask project and model, I'm getting the following error when running
$ flask --app app run
2023-09-29 08:22:15.768421: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow ...
0
votes
0
answers
6
views
Recurion Error , in the Second code but not in First, Why?
def isValid(i, j):
return 0 <= i < n and 0 <= j < n and not visited[i][j] and m[i][j] == 1
def isValid(i,j):
if (not(visited[i][...
0
votes
0
answers
3
views
Developed android app working fine through USB connected Physical Device but the same .apk file not working in other devices
New to android development, but developed the android app. It's working fine through USB connected mobile device from the Android Studio IDE!.
Everything successful, now generated .apk and installed ...
0
votes
0
answers
5
views
How to prevent an element in react (nextjs) to load if it hidden in tailwind
In my next.js application, I'm using Tailwind CSS classes to control the visibility of elements. However, I want to ensure that elements are not loaded at all if they are hidden using Tailwind classes....
0
votes
0
answers
4
views
SAS add leading 0s and remove special characters
I have a dataset with the following ID values in different variations:-
ID
1234000056789
1235
1234-000056780
1234%56786
I want the following output:-
ID
000056789
000001235
000006780
123456786
...
0
votes
0
answers
8
views
Shape Drawer draws nothing in lib gdx
Simple, the shape drawer renders nothing and its just a black screen. Why is this so overly complicated to use? I can't figure this out like it just simply doesn't render anything and why is stack ...
0
votes
0
answers
6
views
Database ERD Table Normalized Appropriately
I've created my first database ERD. It has to do with testing trading strategy ideas. My stocks table has a flag for an ETF, (exchange traded fund) kind of like a mutual fund with many holdings. If a ...
0
votes
0
answers
8
views
ValueError on calculating 0-3 km AGL CAPE in Metpy
I'm currently having a trouble on calculating CAPE in the first 3 km AGL extracted from a model. For some digging, attached here is the sample data I'm using.
Initially, I used Metpy's get layers ...
-1
votes
0
answers
13
views
Python define a function loop over list values and store to new list [duplicate]
I have a list and I'm trying to modify its values using def and store to a new list. My code is as follows:
def my_function(DIR):
DIR1=[]
for item in DIR:
if item =='NB':
...
0
votes
0
answers
7
views
Django ,How can I display account details when I select it?
** for my problem, I find it very complex and I researched it a lot and did not find a solution. I hope for your support
I want when I choose the account, whether a parent or a child, to display it ...
0
votes
0
answers
9
views
TypeError: Cannot add property 0, object is not extensible with Stripe
I am trying to get the prices from the products call within Stripe. I have the function working for the most part, however, I got this error when adding the price. I have tried every possible ...
0
votes
0
answers
7
views
python sqlite query that only updates values if the variables used are not NULL
My sqlite query is updating columns with the empty variables that are being passed in. My program askes the user to input info into each of those variables or leave blank if that column does not need ...
0
votes
0
answers
3
views
in MAVEN PROJECT, Spring MVC @RequestMapping annotation is not working on CLASS LEVEL with METHOD LEVEL, (404 error status)
I have create a spirng mvc application project using MAVEN PROJECT, and I have only one controller and one method. and When I put request mapping annotation only on the Method level , the project ...
0
votes
1
answer
9
views
Haskell dot operator with multiple parameters
I am doing exercise in fp-course
https://github.com/system-f/fp-course/blob/5e0848b4eacb3ddff65553ab5beb6447b73f61b3/src/Course/Applicative.hs#L357
The correct answer is
replicateA n ka = sequence $ ...
0
votes
0
answers
3
views
Issue sending audio data to a server using Android MediaRecorder
I am making a simple app that starts recording using MediaRecorder when a button is pressed and then ends recording when another button is pressed. After this, it sends the data to a remote server (in ...
-1
votes
0
answers
12
views
Do I need to subscribe to a topic every time I open the app again?
I have this case while using firebase_messaging with Flutter.
The first time, I install the app => I subscribed to a topic (ex: topic_1)
close app => open again
3 => Do I need to subscribe ...
0
votes
0
answers
5
views
Automate Google Ads Billing Documents Transfer to Google Drive. Need Suggestion's
I’m not a programmer, but I’m trying to streamline a specific task—automatically moving my Google Ads PDF billing documents to Google Drive or gmail. Here’s what I’ve tried so far:
1. Selenium IDE: ...
0
votes
0
answers
6
views
how to achieve this filter UI using Flutter?
how to implement this UI using flutter?
i try to add dropdownbutton to appBar. Adding Row widget with textfield and icon.
but the how to minimize textfield width?
how to make container as same height ...
1
vote
2
answers
10
views
rbind 2 data frames by the elements in 2 columns, avoiding nested loops
I have two data frames like the following:
df1 <- data.frame(Marker1=c('+','+','+','-','-'), Marker2=c('+','+','+','+','-'), Marker3=c('+','-','+','-','+'),
Sample=c(1,1,2,3,3), ...
-1
votes
0
answers
12
views
Using the variable of the for loop [duplicate]
when you try it in jupyter notebook
user_input = int(input("Please enter pattern width: "))
patternlist = []
for i in range(0,user_input):
patternlist.append(i+1)
print(patternlist)
...
0
votes
0
answers
6
views
create react app how to change phone app logo background color
I have an app that I've added as a shortcut onto my phone. I was able to change the logo to the image I wanted, but I can't figure out how to change the background color of the app square from it's ...
0
votes
0
answers
15
views
Javascript match case insensitive in HTML table
I have HTML tables that use DataTables (https://datatables.net/) for searching the rows. I also have added another field on the page for Excluding. So I can search for something and enter a string in ...
0
votes
0
answers
8
views
Nginx Proxy Pass using location regex
I have nginx configuration like this
location ~ ^/(900[0-9]|90[1-9][0-9]|9100) {
rewrite ^/(?:(900[0-9]|90[1-9][0-9]|9100))/(.*)$ /$1 break;
proxy_pass http://192.168.2.5:$1;
}
...
0
votes
0
answers
9
views
Can't convert response from Sqlalchemy to Pydantic model
I'm trying to return a schema that inherits from Pydantic's BaseModel but I'm getting an error
Models:
class Project(Base):
__tablename__ = 'projects'
id: Mapped[int] = mapped_column(...
1
vote
0
answers
5
views
How to check prompt on llamaindex response_synthesizer
Hi Im stacking how to check my prompt...
I wrote code like below
response_synthesizer = get_response_synthesizer(
summary_template = _chat_summarize_prompt(), # Just return my prompt
...
0
votes
0
answers
5
views
Test Automation for both Web and WPF Desktop App
Please help. What open source test Automation tool can be used for both Desktop and Web App supporting python programming.
Tried googling but didn't get any answers. Katalon is an open source tool but ...
1
vote
2
answers
25
views
I need a little help in understanding what gets passed to the mutate and modify functions in R?
I'm fairly new to R but not new to programming itself. I am using a simplified example of my code here. I have a data frame that has three columns ( doc_id, tag_list, single_tag) all of which are ...
0
votes
0
answers
4
views
Emergency SOS settings
Q1. Is there a way to programmatically set the settings of Emergency SOS menu?
Such as setting the countdown time and turn off "play warning sound". You can do both manually but wondering if ...
0
votes
1
answer
29
views
Tricky calculation refresh based on columns using Pandas
Logic is to add the value in the new_r_aa after the first line of code output under 'aa_cumul' Example, the code will take 3 (which is the first output under 'aa_cumul') and sum it with the value 8 ...
0
votes
0
answers
6
views
How can I include XCTest as a dependency in a Swift (SPM) package?
I am making a Swift package to extend the functionality of XCTest, but am having trouble building my app's tests when the package is used.
I've begun by importing XCTest to one of my package's (non-...
1
vote
0
answers
13
views
Python takes a long time highlighting on VS Code after I duplicated workspace in new window
Previously Python highlighting in my Visual Studio Code works just fine. Then I opened the same folder in new window by Workspace : Duplicate As Workspace In New Window, I didn't do anything else ...
0
votes
0
answers
3
views
In Android MQTT how to Cancel a Publish request
I am using this Mqtt library in Android:
api 'com.github.hannesa2:paho.mqtt.android:4.1'
I am able to publish requests like this:
import org.eclipse.paho.client.mqttv3.*
...
val message = MqttMessage(...
-1
votes
0
answers
8
views
I am trying to make a blogging system with a login + data base and am having some issues. Everytime I try import db it says error? [closed]
there is an issue in flask blog
I wanted to create a database so that I can store data from my login system, except there are problems when im trying to make the database. I cannot enter the same ...
0
votes
0
answers
7
views
Decode base64 to array of floats
I have a 768 length array of float values that have been tokenized and are stored in a string field in an Athena table. I want to extract from that string the 768 original float values. In python, ...
0
votes
0
answers
10
views
How to do redirect 301 between url https using Istio Virtual Service
I'm trying to perform a 301 redirect for some requests using Istio's Gateway with VirtualService. I've done everything, and it works perfectly if the request is over HTTP, but it doesn't work for ...
0
votes
0
answers
6
views
WPF ScrollViewer automatically set scrollable field to an end
I have a user control that displayed inside MainWindow's Frame.Content.
This content is set in the CodeBehind
<Window x:Class=..........
Height="720" Width="1080" ...
0
votes
0
answers
18
views
POSIX Multithreading in C: Serial ops in thread running extremely slow
I'm working on a simple problem to practice p_threads where I take a large number, divest it into evenly divisible chunks, then sum the divided sub-chunks in threads & merge the results to be ...
0
votes
0
answers
5
views
How to get array length of Json in robot framework
I'm using this code and the first line works fine. I think I'm getting the wrong array for this
${json_object} evaluate json.loads('''${sn_booking_payload}''' , strict=False) json
${...