Latest Questions

Why is my discord bot posting old memes? | Discord.py

I'm making a discord meme bot and its working but I have a small problem with it. It keeps sending the same set of old memes for some reason. How do I fix that?

Can there be two celery instances in a django application?

I have a use case of using two celery instances in a same django application. One celery instance is used for incoming events to the app and the other is to pub

How can I link to an Excel file on a network share from a php web page?

I am trying to link a file on a php webpage which is hosted on a server within our local network using IIS. The workbook must load via the network location and

Show adjacent members in a list

I want to inspect adjacent elements in a list based on a match. For example, in a list of randomly ordered letters, I want to know what the neighboring letters

Persistable URI Permissions for a Document Provider

Not sure if what I'm trying to do is possible or not. I have a "proxy" document provider meaning a document provider that exports aliases for other content usi

How to concatenate words that starts and end with a vowel? [duplicate]

I receive a list of words and assigns them to write all the words that start and end with a vowel. I need to write a MasinaDeTeme class that c

Create a function that shows user controls in a panel

I created several user controls that i want to display on a main panel. Thus, I have this function that takes in input the control I want to display by setting

FLUTTER ANDROID ONLY: sent location data to REST API continuously even when my app is minimized/closed

I want to continuously send location data to REST API (PATCH METHODS) even when my app is minimized/closed. I put my function on InitState, but when I minimized

How to use floating action button to scroll over another widget?

I want to use FloatingActionButton() to scroll through a widget below it in for example a Stack widget. Right now i just use Stack widget to stack the FloatingA

Converting base64 to image | Not working | Flutter

So, I want to do a simple thing but for some reasons it is not working. I get a base64 string from the server which I need to convert to an image. When I put th

custom size of field in crispy form django not working

i want to display a form to create posts. i use crispy-form and it currently displays: with html template: {% extends 'blog_app/base.html' %} {% load crispy_fo

PySpark MLLib APproximate nearest neighbour search for multiple keys

I want to use ANN from PySpark. I have a DataFrame of 100K keys for which I want to perform top-10 ANN searches on an already transformed Spark DataFrame. But i

increment operator ++i does not cause an error in python [duplicate]

Since the increment operator ++ is not supported in python, why doesn't it cause an error when prefixing a variable. Example: i = 3 ++i pr

og:image in facebook preview not Showing , using React-Helmet

I am using React-helmet to display metadata for my website. Image previews on Facebook and Twitter are not showing up. The Link for the image is correct . I tri

Google Api authorize an App running in the console

I want to manually authorize an app that runs in the console where there is no browser available. Basically I need the same code as they are using on this websi

Get previous row value based on a timestamp for matching IDs

I have a table about shipping that has information about the arrival (country and date) to a port. Now I need to extract the country where it departed from usin

In -App Updates not able to retrieve the old version intent object from Google Play Store

Using the below code: private void checkUpdate() { final AppUpdateManager appUpdateManager = AppUpdateManagerFactory.create(this); Task<AppUpdateInfo

Is there any difference in the way Python code is executed when run from REPL vs a script in the command line?

I was watching this video, How Do You Read a Python Traceback? and they mention that the traceback you receive will be slightly different depending on whether y

error at building spring native image (JmxMBeanServer)

I'm trying to build my spring boot application as a native image, but every time I try to build I get an error. my current build.gradle is https://paste.sv-stud

Create a function that shows user controls in a panel

I created several user controls that i want to display on a main panel. Thus, I have this function that takes in input the control I want to display by setting

Laravel 5.5 CORS issue when loading FontAwesome 4.7.0

I get a problem. I already read a lot of reference but still get error. Access to font at 'http://192.168.0.1/fonts/fontawesome-webfont.woff2?v=4.7.0' from ori

how to set Google Maps marker position with the address?

I'm fairly new to the Google Maps API and have to use it to locate some addresses. I want to know how the Google Maps marker can be located with the address wri

use the same key in both render and main process electron?

I am recently learning electron I have encountered a problem that I want to listen ESC in both process, In Main process, menu.append(new MenuItem({ label: "

hoist-non-react-statics issue on rollup.js build

i am having issues while trying to build my storybook with rollup.js, in my react components i am using @mui/material and in their installation page its asked t

Handle SwapChainPanel in ListView

I have my xaml code <ListView x:Name="ListVideo" ItemsSource="{x:Bind ScreenList}" VerticalAlignment="Stretch" Flow

How to create a file inside a folder?

I have fileUploadPath="d:/downloads"; and entry.name='155ce0e4-d763-4153-909a-407dc4e328d0/63690689-e183-46ae-abbe-bb4ba5507f1a_MULTI_0_3/output/res2/res2.fcs

At the time of priniting page is breaking in 2 page but first page has blank space

I had created a bill format in HTML and when I am viewing it in browser it viewed perfectly but when I am trying to print it is breaking in 2 pages. I am attach

problem to configure public key on google audit email api

I need a help! I'm trying to use the google auditing API (https://developers.google.com/admin-sdk/email-audit) Im getting a problem to configure the public key

Accessing specific JSON values in a deluge script

I have a JSON API response that contains multiple entries, with different types of subscriptions and multiple users. I need to search the list for a "user_name"