Maybe you were looking for...

Mocking LocalDate.now() but when using plusDays it returns null?

In my code I need to use LocalDate.now(), then I work out an estimated date from today by using the plusDays(num). In my unit test, when I mock the static .now(

How can I transfer columns of a table to rows in python?

One ID can have multiple dates and results and I want each date and result column stacked sideways to be stacked into 1 date and 1 result row. How can I transfe

Is there any way to get the daily availability of the items listed by an ebay seller account?

I need to put together a pipeline that gathers the daily availability of items listed by an ebay seller account. Unfortunately, this metric isn't included in th

PostgressSQL: how to select select X rows FOR UPDATE to prevent locking all rows for multiprocessing?

query: cur.execute('''SELECT * FROM tracks WHERE sent_to_sqs IS NULL LIMIT 10 FOR UPDATE''') locks all the rows in the table so multiple processing doesn't w

Give python process a name or title for windows

I have multiple python scripts that keep running in background. I need to distinguish between them. So I think about giving every script like a name or title th

Why is the discord bot not talking?

The discord bot is not answering back when I said !hello. It does not respond. What is the issue? import discord import os client = discord.Client() @client.

Filtering a stream of CompletableFuture<SomeObject> on some attribute of SomeObject

I have a Stream of CompletableFuture of SomeObject and I'm trying to filter this on some attribute of SomeObject and I can't seem to find a satisfying way to fi

How to get the indexes of all minimum values in pandas dataframe?

I have a dataframe: df = pd.DataFrame({'A': [0, 0, 1], 'B': [1, 0, 0]}, index=['x', 'y', 'z']) A B x 0 1 y 0 0 z 1 0 For each row, I want the names