All Questions

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

How to run the code more than one time with input Python3

Sorry if the title is unclear. let's say i have a code that takes 3 variables and does something with them and then prints the output. so my input would look something like this: 1 2 A output once ...
0
votes
0answers
2 views

Apple ID p8 key manipulation

Used lib: https://github.com/patrickbussmann/oauth2-apple Used class: \League\OAuth2\Client\Provider\Apple Development of Authentification via AppleID in mobile app (ios) Backend: 1c-bitrix (not that ...
0
votes
0answers
3 views

How Can We Use Python to Decode a Binary Stream Inside of a PDF?

I have a pdf file containing a binary stream. 5 0 obj << /Length 4760 /Filter [ /ASCII85Decode /FlateDecode ] >> stream <<LOTS OF BINARY DATA IS HERE!!>> endstream How do I ...
0
votes
0answers
3 views

discord.py on_member_join not working @bot.event

Below is my code for a discord bot. I am trying to get it to change the server name to the amount of members in the server. I looked at this example but it did not work. Can anyone help? import ...
0
votes
0answers
2 views

I am trying to “flatten” a list of lists into a single list that has all the elements of the original list, using reduce in python

from functools import reduce def reducer(arr): return reduce((lambda result,item: result.append(item)),arr,[]) print(reducer([[1,3],[2,4]]))
0
votes
0answers
2 views

Django - storing total coins for a user as an integer or calculating it everytime?

I have a more general model design question. I am making a site where users register, complete tasks and are rewarded with coins, they can withdraw these coins later. Each task has a separate object ...
0
votes
0answers
6 views

Python - Need to reduce 3 for loops into only 1 for loop and add a parameter

I am trying to do a European Call Option Price Finder that uses Backward Induction with a Binomial Tree. My assignment wants me to only have 1 for loop, which has to be in the main function ...
0
votes
0answers
2 views

Bash while loop - ignore error and continue

Question: how do we make bash while loop ignore the command error and continue? Background I'm trying to automate the test of a program using a Bash script. I have a list of command line arguments ...
0
votes
0answers
6 views

Linking nodes within a Circular Doubly Linked Structure

I have been working on this Circular Doubly Linked Structure for a week now, and I am stuck on this add method. I cannot get the nodes to link correctly, as when I run the program to print out the ...
0
votes
0answers
2 views

Domain hosted on DigitalOcean not accessible from outside | Fails with ERR_CONNECTION_REFUSED

I've created Server Block in DigitalOcean to host a domain. I've multiple domains hosted in same droplet. However, one perticular domain is not accessbile from outside the server unless I specifically ...
0
votes
0answers
3 views

pip install is not installing all subdirectories?

I am trying to install multiworld from https://github.com/vitchyr/multiworld. I cannot seem to get it to work. I do git clone https://github.com/vitchyr/multiworld.git cd multiworld pip install -e . ...
0
votes
0answers
3 views

Lazy initialization with repository

I checked out the Android Sunflower best practices app. And i kinda struggle to understand why the initialization of the PlantDetailsViewModel is working. The class is defined as follows class ...
0
votes
0answers
5 views

How to perform a query by using URL with question mark in Django?

It seems like the original URL querying function has been removed from Django 3.1. Does anyone know how to do it with a new package? The url.py: urlpatterns = [ re_path(r'^portfolio/(?P<title&...
0
votes
0answers
4 views

How to avoid react date picker calendar to open on tab keypress from previous firld

We have installed react-datepicker component. The default behaviour is that the calendar is getting opened on tab keypress from previous field. How can I avoid this. Please suggest as I am unable to ...
0
votes
1answer
6 views

Package.json has a version of a Package that doesn't actually exist. what happens?

I'm supporting a project that has a version of the following package. https://www.npmjs.com/package/vue-typeahead-bootstrap the version in the package.json says we imported version 2.6.0 however the ...
0
votes
0answers
3 views

Beautiful Soup Not Finding Basic HTML Data

I'm trying to extract data from a page using BeautifulSoup. I obtain my HTML data (type: bs4.element.ResultSet) and it contains mutliple lines such as the following, which I would like to compile into ...
0
votes
0answers
3 views

SwiftUI - FireStore and Map annotations

OK so I want to display content that is uploaded by users on a map view, with a marker. I can retrieve my data with ease, however, the issue I'm having is with the annotations. I require the ...
0
votes
0answers
2 views

Migrating WordPress site from HostGator to AWS Lightsail Distribution

My website https://jumpcutgoa.com/ is currently hosted on HostGator with a domain registered at Godaddy. I am trying to move this WordPress site to an AWS Lightsail Distribution for better performance....
0
votes
0answers
3 views

Unable to get number of files in train and validation dataset

I am solving a problem of image classification of dog and cat. train_dir='/content/drive/My Drive/traning' val_dir='/content/drive/My Drive/test' the training folder contains 2 folders named as cat ...
0
votes
0answers
4 views

How to get the data from 'fieldData' when querying using 'FileMaker Data API'?

When making a query using the url/fmi/data/version/databases/database-name/layouts/layout-name/records I get all the records from the database and the response is of this type: { "response&...
0
votes
0answers
4 views

ESP8266 HTTPS request to ASP.NET Core API not working

I am a rookie when it comes to ESP8266 as well as ASP.NET Core - so really appreciate your support in understanding what I am doing wrong. Bottom Line Up Front: I am trying to send data from an ...
0
votes
0answers
5 views

webdriver.io tests generating inaccurate (outdated) snapshots

I am developing a React app and need to use webdriver.io for tests. I continually face a problem where snapshots are being generated with outdated UI - sometimes showing a UI that was changed days ago,...
0
votes
0answers
4 views

Issue with Creating Woocommerce Subscription?

I am currently using prospress woocommerce subscription API v1 https://prospress.github.io/subscriptions-rest-api-docs It creates the subscription but not creating the related order. I don't know what ...
0
votes
0answers
5 views

multiple user model in django

there will be a model for the shop owners and another for the customers. both models will have different form fields. like shop form will have owner name ,shop name, location, etc. customer form will ...
0
votes
0answers
3 views

web service calls in NotificationContentExtension

I have an IOS app which triggers a notification to user to opt-in for a specific feature. user can take action using Yes/No buttons on push notifications. implemented using ...
0
votes
0answers
3 views

Specifying an alternate value for foreign key in POST payload with Django Rest Framework's GenericViewSets

I need to be able to specify something other than a foreign relationship object's pk/id in the payload of a POST request. My model: class Damage(PDAbstractBaseModel): vehicle = models.ForeignKey(...
-1
votes
0answers
14 views

Table structure for Stationary management [closed]

I am working on Stationary management system.It consist of system in which employee of a office can demand stationary online and it will be approved by the Administrator and will be given to ...
0
votes
0answers
5 views

how to get parallel build job result in jenkins

My Jenkins job run multiple builds in parallel as below: def branches = [:] for (int i = 0; i < 4; i++) { def index = i branches["branch${i}"] = { build job: 'Test', parameters: ...
0
votes
3answers
14 views

Why does my rock paper scissors game not start the while loop?

So this is my code so far, trying to make a rock paper scissors game that's best out of 3. from random import randint print("Rock...") print("Paper...") print("Scissors...&...
0
votes
0answers
6 views

Change icon in of element-ui Select

we are different icons font in project than element-ui. Is possible to change default arrow icon to custom? I can't find nothing about it in documentation. I will be grateful for any advice. I have ...
0
votes
0answers
6 views

Windows bash save all commands and outputs?

I want some file somewhere that has a searchable record of every command and output my bash ever outputted, so I can search it if I need to. For instance, something that copy pastes the full contents ...
0
votes
1answer
5 views

Create a Lightsail instance and install the CodeDeploy agent

While following this tutorial, I created the instance with the desired script. Yet, when I ssh in and run sudo service codedeploy-agent status I'm getting the error Redirecting to /bin/systemctl ...
0
votes
0answers
7 views

Scrolling to the bottom of a div with newly inserted content

I have a div that is initially empty, but with JavaScript I fill with content. I'd like to scroll to the bottom of the div but nothing is happening. Do I have to wait or do something before scrolling? ...
-1
votes
0answers
6 views

Laravel upload a simple CSV file using store

I am trying to upload a simple CSV file using laravel, I have created a from like below <div class="card-body"> <form action="{{ route('csvupload.store') }}" ...
0
votes
0answers
5 views

Scraping data from Dynamic table

I am using Pupeteer to scrape data from website, (url: https://www.copart.com/vehicleFinderSearch/?displayStr=Honda,CRV,%5B1997%20TO%202010%5D&from=%2FvehicleFinder%2F&searchStr=%7B%22MISC%22:%...
0
votes
0answers
7 views

springboot logback: java.lang.ClassNotFoundException: org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout

I use springboot (version: 2.1.5.RELEASE) create project, then use logback-spring.xml to record log . the configration like this: <appender name="FILE_ERROR" class="ch.qos....
0
votes
0answers
7 views

Assistance with Implementing Value Selection and Calculation Based on Multiple Criteria In Large Lists as well as Type Mismatch Error

Just to preface: my document contains multiple worksheets, three of which involve my statement. On Sheet1 (Forecasting) there are several grade values in a row (x-axis) and they form an intersecting ...
0
votes
0answers
6 views

installing roundcube on nginx causes HTTP ERROR 500

I am trying to run RoundCube on CentOS 7 using NGINX. the installation of Roundcube came via an automatic wizard during the installation of software package called iRedMail. I am getting a 500 HTTP ...
0
votes
0answers
4 views

Since upgrading to Xcode 12, cannot add product as target to custom plist files

Ever since I upgraded to Xcode 12, I cannot seem to add my product as a target to custom plist files that I drag into Xcode. This is for a macOS command line terminal application. When I click on the ...
0
votes
0answers
4 views

Cant get the text in the second if of an arduino project

I can't get why it doesn't work: it doesn't print the text in the second if. This is a test for a bigger one but it doesn't print the text Can somebody tell my why and what can i do? #include <...
0
votes
0answers
4 views

Can my MIMXRT1020-EVK host a server for a website

I recently received a NXP MIMXRT1020-EVK board and am trying to learn new programming languages and capabilities using it. Does anyone know how I can tell if it could host a server? I noticed some ...
0
votes
0answers
4 views

List elements JSON recursive with SelectToken JObject

How can I list all my "children" elements recursively using the select token method? Actual JSON Structure { "component": "stackpanel", "id": "001"...
-1
votes
0answers
8 views

error: cannot find symbol error: package utility does not exist

I am trying to run a java file in src folder. src folder has both Model.java and BaseModel.java and a package named utility. But from Model.java I am unable to access BaseModel.java and Utility.java ...
0
votes
0answers
13 views

TypeError: 'float' object is not iterable in Python… was working yesterday

# Remove non-hashtags from hashtag list. hashtag_metadata['hashtags'] = hashtag_metadata['hashtags'].apply( lambda hashtag_list: [h for h in hashtag_list if h.startswith('#')]) # Create a ...
-1
votes
0answers
11 views

What are all the things you can do with python? [closed]

Ok so I have searched the web and looked on YouTube but they don't give me the answer I'm looking for. So I'm wondering what are all the different things you can do with python. Could you give me ...
0
votes
0answers
4 views

Py4JJavaError on pyspark dataframe

I am trying to build a pipeline and I keep getting error when I count the prediction. This is the code for my pipeline. from pyspark.ml import Pipeline from pyspark.sql.functions import udf from ...
0
votes
0answers
4 views

What Mint module is disabled after purging python2.7?

I am quite a noob when it comes to Linux and have used the purge command on python2.7, then decided to ignore the warning saying that a mint package will not work properly anymore. Now, when I use the ...
-1
votes
0answers
5 views

Remove Saved State From Hyper-V VM

I have exported VM and I'm trying to import in another Hyper-v Host, But somehow I'm stuck and generated the compatibility report as below Message ...
0
votes
0answers
4 views

PgAdmin 4. Unable to work under Internet Explorer 11 and Chrome

I am new in PostgreSQL and I have installed Postgresql 12 version for win64 from EDB website. After the installation I tried to use pgAdmin but I ran into some issues: With Internet Explorer I got ...
0
votes
1answer
8 views

Data frame with multiple colums, from a group of same values in one column select the maximum in the other column

I have the following data frame: DF <- data.frame(A=c(0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.3,0.4,0.4 ), B=c(1,2,1,5,10,2,3,1,6,2), B=c(1000,50,400,6,300,2000,20,30,40,50)) and I want to filter DF for each ...

15 30 50 per page
1
2 3 4 5
404317