All Questions

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

Density map with latitude and longitude

I want to plot a joinplot like below to see where is the most arrived point in regard to frequency. I tried to calculate the density of my data. (Latitude and Longitude) m1 = df['Latitude'].values m2 ...
0
votes
0answers
2 views

Python remove everything in bytestring before certain character

I have the following bytestring b'removethis\x00\x002020.10.14\x00\xf2\x00^\n\x84>\x01\x00\x10\x01\x14\x00\x00\x00\x8d\xec\xdc0\x1bo\xe7\x15^\n\x84>\x01\x00\x10\x01\x04\x9b_\x18' i want ...
0
votes
0answers
2 views

Can connect to mongoDB with authentication via Robo 3T, but can't via zsh CLI on Mac Catalina

This is frustrating. Spent some good hours, but still can't figure it out. Really needing help now. The issue is. I can access the local db (single) on my Mac Catalia OS, via Roto 3T with user/pwd, ...
0
votes
0answers
5 views

Import csv as coordinates to python

I'm new to python and now need to use "with...open...as" to import a given csv file to pycharm, here's the csv file enter image description here The output I want is like [(0,1),(0,6),(1,7),....
0
votes
0answers
4 views

Angular 9 Ngif giving wrong output because of delayed API response

I apologise if this isn't well crafted. I'm new here. So I have put together my first SPA and deployed, however the use of Ngif is giving wrong output because of delayed response from the third party ...
0
votes
0answers
9 views

I'm trying to create an array that holds coordinates of points on a graph

import numpy as np import matplotlib.pyplot as plt seg_length = 0.1 num_nodes = 10 beam_init = np.empty((num_nodes,num_nodes//2)) for i in range(len(beam_init)): beam_init[1,i] = [(seg_length,i*...
0
votes
0answers
7 views

Is checking if a value is present in a Python Set constant time?

So I have read that Python's set is not like a list because it's actually based on hash tables. So if I check if a value is present is it constant time O(1) ? Example: def first_duplicate(arr): # ...
0
votes
0answers
9 views

Adding variables to an array efficiently in javascript

I wanna add many variables to an array. They have similar names and I was wondering if there was an easier way to add them, maybe using a for loop or such. notes.push(c0, cs0, d0, ds0, e0, f0, fs0, g0,...
0
votes
0answers
4 views

Is it possible to default new Google Play Console to show just production apps?

The new Google Play Console for developers seems OK, but the default filter shows all apps. This is a problem for me because I've been using the console for 8 years and I have lots of discontinued ...
0
votes
0answers
6 views

How to change the layout of a window with two different style files?

I am creating a registration interface. It has a login style file and a registration style file. The problem is that I need to create a window for login and another for registration. Is there any way ...
0
votes
0answers
4 views

How to remove livereload on production?

I managed to deploy my first Svelte app using Github Pages. Only a problem remains is that the livereload script is still loading but the path to the script cannot be found and causes the slow ...
0
votes
0answers
7 views

Java ActionListener freezes when while(boolean variable) is used

I am new to java and I was trying to make a timer using the following code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Class19 extends JFrame { ...
0
votes
0answers
5 views

google-authenticator QR code is clipped at the top in Putty

I use Putty on Windows to establish an ssh connection to a remote server. I am trying to set up google-authenticator two factor authentication so I installed it on the remote server and run it to set ...
0
votes
0answers
7 views

Javascript SPA button click does not back to normal style state

This is just SPA with javascript framework. I have buttons using bulma CSS Framework. As you can see in the preview when I click the button, and the cursor leave the button, the button style state ...
0
votes
0answers
7 views

How Can I Show An Empty Cart?

I have some (fairly sloppy) code I've been working on for a shopping cart. But I have a problem in that whenever the cart is empty, the page will not load. I have the code here. What can I do to fix ...
0
votes
0answers
4 views

Remove links from tweets

I am using the parameters below to source tweets using the twitter API. How do I structure the query to remove tweet links from the response? The data is supposed to be anonimous, so there should be ...
0
votes
0answers
5 views

Android don't find file to share

Im trying to make sharing files option in my app. To do this I was trying this code. File in first part is saving on phone, next when I want share it for example by messenger - the app not find it on ...
0
votes
0answers
4 views

Why will apt-get install other software when I uninstall a program by it?

root@VM-133-145-debian:~/download# apt-get remove erlang-base Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically ...
-1
votes
0answers
9 views

how does sorting array of objects in javascript works

I am having difficulties understand some sorting function, I would like to understand how a and b arguments are passed to the return function within sortByAge func when we not explicitly passing those ...
0
votes
0answers
4 views

Mongo Call does not remove parameters

Im using node with mongo, and I want for the mongo get call to stop returning some values, such as _id and uid. Everything that ive read says that this call should work, but when I print the json ...
1
vote
1answer
9 views

In SQL, how to get two different string values to do an aggregate function?

Write a query to get the click-through rate per app in 2019. The schema of the events table is app_id (integer), event_id (string: "impression", "click", and timestamp (datetime). ...
0
votes
0answers
6 views

ERROR 2026 (HY000): SSL connection error: SSL is required but the server doesn't support it

When i am running mysql using key -: sudo mysql -u user --ssl-ca=ca.pem --ssl-cert=client.pem --ssl-key=client.pem -p I am running the above command in the directory where certs are located, so did ...
-1
votes
0answers
11 views

Unity scoring not working as should method being called multiple times

Ok So i have got my code working to the point their now scoring in my game of pong but the issue is the code is being called three times. This is using a 2d game project by the way. Even though only ...
0
votes
0answers
7 views

How do I find a suitable loss function for a regression problem?

I am trying to solve a nonlinear differential equation with a neural network. Lots of people are doing this, and they've got pretty good results. I have defined a custom loss function to satisfy a set ...
0
votes
0answers
4 views

Search filter for a custom post type based on its ACF fields

I am using a custom post type named "property" and each one has some ACF fields inside the content (square meters, number of rooms, number of bathrooms, etc). How can I create a search form ...
0
votes
0answers
6 views

Can't access working dir after application is installed?

I'm working on developing a java application and I'm at the stage where I have an executable jar file that I want to convert into exe/dmg form so users can install it easily. Things are mostly going ...
0
votes
1answer
14 views

How to initiate React hook state with foreach loop

Apologies if this question may have been asked before, I'm not sure if that's the case. I come from a Java background and am super new to React and not very proficient on this framework yet. But what ...
0
votes
0answers
6 views

How to inflate and listen a custom menu per fragment using NavController?

My application uses NavController in this order: MainActivity is the container of the NavController, it have its own menu. Home destination is FragmentMisSecuencias FragmentMisSecuencias calls a ...
0
votes
0answers
7 views

How to replace a character and move it to the back of word and then add a string to it?

The title might have not been very clear so here is the full explanation takes in a word and does the following: • If a word starts with a vowel then it’s first letter is placed at the end with a “hay”...
0
votes
0answers
10 views

Python3: How to properly authenticate using requests? “401 Authentication required” is printed despite authenticating using requests

I'm trying to download some json output from a URL. However, this URL requires LDAP / AD Authentication. Try as I might, I'm not able to authenticate and download the content: #!/bin/python3 import ...
0
votes
0answers
6 views

Tailwind center image without expanding beyond container or stretching aspect ratio

<body> <div class="container mx-auto px-3 py-3"> <div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-10 h-64 ...
-1
votes
0answers
7 views

Angular starts random ports even using the same config

I have an Angular app based on ASP.NET Core, but sometimes after restarting the app using dotnet watch run command, it starts using different port, but my launching ports are defined as before in ...
-1
votes
0answers
6 views

closest not identifying current row for deletion

I am using a button to add rows to a html table, each row added has a button to delete that row. My problem is after adding a row, the delete button is deleting the first row, not the second. I ...
0
votes
0answers
6 views

How to fix a Access Violation Error for thread hijacking technique?

I'm fairly new to thread injection and am learning the technique through a book called "Game Hacking: Developing Autonomous Bot for Online Games." Chapter 7 highlights 3 injection techniques ...
0
votes
0answers
8 views

How can I get specific user info from Firebase and display in RecyclerView?

Desired Behaviour: Trying to display a single user info i.e. all the project titles and descriptions "protitle" and "prodesc" data from Firebase after log-in. At present, my app ...
-1
votes
0answers
11 views

how to provide info according to the logged in user in php

could anyone help me please? I am writing a program where a patient takes an appointment to meet a doctor and after the appoints being taken, that patient will be on "Pending" status until ...
0
votes
0answers
6 views

Counting recursive calls of method depending on amount of elements

I want to count recursive calls of this function: public static int count; public Node<K, V> put(Node<K, V> node, K key, V value) { count++; . . . } It works good when I add keys ...
0
votes
1answer
11 views

How do I get code to read both first and last and values of a randomly generated array?

I was debugging my code when I realized my code constantly reads the same thing for one one function; it only reads the last value of an array. I want it to read both the first and the last value of ...
-1
votes
0answers
13 views

Please help! Trying to write a Program that uses today's date

For class, my professor gave us an extra credit assignment that we can do if we want. I am having trouble with one part of it since she wants us to do something we did not learn in class yet. The ...
0
votes
0answers
13 views

Julia and Python RAND function

Background In Julia programming we have a Rand function which sintaxis is : rand([rng=GLOBAL_RNG], [S], [dims...]) which pick a random element or array of random elements from the set of values ...
0
votes
0answers
5 views

Android Cannot Connect To Windows FTP Server. Always get timeout with same credentials that work in regular java

I am trying to connect to my FTP that is running on my windows machine through my android app. I am not sure what is going wrong since the same code works in a regular java project. My manifest has ...
0
votes
1answer
7 views

How to increment URL ID by 1 for each row in Excel?

I have a url pasted in the first row of my spreadsheet like so: https://www.dfc/players/1/player/overview How do I automate it so it will go to the second row and show: https://www.dfc/players/2/...
0
votes
0answers
5 views

java discord api (jda) old bot not working

I'm using that code: import net.dv8tion.jda.core.JDA; import net.dv8tion.jda.core.JDABuilder; import net.dv8tion.jda.core.OnlineStatus; import net.dv8tion.jda.core.entities.Game; public class Main { ...
0
votes
0answers
10 views

Implementing decorator with function argument

I'm implementing a function decorator which takes function arguments. However, when I call the function in a wrapper, I get the error: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool()...
-1
votes
1answer
19 views

How to iterate through deep nested object and find value of a particular key?

I have a Javascript object which looks as below. I want to iterate through the object and find out values for the Hostnames const data = { "error1": { "7": [ { &...
0
votes
0answers
4 views

Changing data with axios and vue when the page change

I'm trying to fetch dynamic data with vue and axios. When I click on a link route, the data must change. This is my example with my TheUpperOrLower.vue : <template> <div> <h2>{{ ...
0
votes
0answers
8 views

How to solve the OSError: [Errno 9] Bad file descriptor error in python

My Python scripts folder was empty so I was trying to fix it by running the command python -m ensure pip but i got an error which says "OS Error : [Errno9] Bad file descriptor and yes I have ...
-1
votes
1answer
16 views

Where to insert image links in javascript code?

I am having trouble adding images links to the questions. I'm not going to use the questions in the code. There will be 20 questions that are "What Star Wars Character is this?" so the user ...
0
votes
0answers
5 views

How to expand video box and center it on hover

I'm trying to take a div element with a video element inside of it that when hovered on will transform (scale) the video box twice it's size and center it. I also have it to where when I hover over ...
0
votes
0answers
5 views

How PrintWriter can write to byte stream, but BufferedWriter cannot?

To start with I will provide a piece of code with comments: FileOutputStream fos = new FileOutputStream ("test.txt"); //fos IS-A OutputStream as FileOutputStream extends OutputStream ...

15 30 50 per page
1
2 3 4 5
407091