Latest Questions

Output the Tuesday 6 weeks in the future in Python?

UPDATE: post edited to add answer to end of post Core Question Using Python, how do I output the date of the Tuesday that occurs 6 weeks after a certain date ra

Edit many sheets in same time - Excel online No VBA or Power automate or else

My team had to move to Office365 and we cannot use anymore our former MS Excel with his VBA or our former G Sheets with his Scripts. I already redo the workbook

how to use php preg_match_all() with overlap matches

I am trying (with no success) to get all possible matches with preg_match_all(). Any help would be greatly apreciated. Thank you in advance. No related question

ERROR: TypeError: in typeassert, expected VersionNumber, got a value of type Pkg.Types.VersionSpec

I am currently setting up a CI job on GitHub actions using Julia 1.6. However, the CI is randomly erroring out when it tried to update the general Julia registr

.htaccess Use variables to check if subpage exists

I have a website, which is a one-pager JS-based site. It has different "subsites" and "categories", but since everything is controlled via JS, and since there a

one node of rabbitmq cluster will consume large memory(until OOM) occasionally

Environment: Openstack Train, deploy by kolla-ansible RabbitMQ 3.7.10 on Erlang 20.2.2 three control nodes(also run other components) Problem: node-34 rabbitmq

Fitting two voigt curves, one after the other using lmfit

I have the following emission spectra of Neon collected on a Raman (background subtracted data): x=np.array([[1114.120887, 1114.682293, 1115.243641, 1115.80

Please how do i split this list using the split method in python

Edited I am trying to scrape avg_ratings, ratings and published year on goodreads so i can put them in a separate list import requests from bs4 import Beautiful

Django celery and heroku

I have configured celery to be deployed in heroku, all Is working well, in fact in my logs at heroku celery is ready to handle the taks. Unfortunately celery do

Load Assembly compiled with newer .Net Framework than executing assembly

I have an application compiled with .Net Framework 4.0 and I want to load a WPF UserControl inside it. The user control is a dll compiled for .NetFramework 4.8.

Create log files with Serilog only if their is any logs

I want to write different logs on different log files with Serilog by API request. The problem is when the log file configured within LoggerConfiguration(), the

Win32 application not finding icon for window

I created a icon as a resource I checked explorer and it works just fine, my exe now has that icon Next, I used hIcon to set the icon of my window but it says

Get top n records for each group of grouped results

The following is the simplest possible example, though any solution should be able to scale to however many n top results are needed: Given a table like that b

Uncaught Error: Class 'Service\UsersService' not found

I'm trying to run my php-based application, which connects to a mysql DB, launched through docker-compose. i get this message when i connect to localhost: Fatal

Stepper in a singlechildscrollview throw layout error

Main Screen Code Block: Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar(backgroundColor: Theme.of(context).primaryColor), endDrawer: const AppDrawer()

drag the object group in XY plane only in three.js

The objective is to drag the objects in the scene using mouse. zoom in and zoom out are working properly. while dragging the object is rotated, but not dragged.

problem with conditions in case when in SAS

I wanted to add a case when WPIS_ where if frm_code is one of the codes mentioned then we ASSIGNY W if not then B. I get "Syntax error" what I do wrong Rest cod

Need suggestions: Send multiple images to backend, perform upload operation in backend, send response

I need some best practice guidelines for a backend service in a scenario like this one: UI sends multiple images for uploading to the backend service Backend se

C# Rotate pictureBox , I want to move the bus vertically and I cant, can you help me of coding?

using System.Drawing; using System.Windows.Forms; public partial class Form1 : Form { public bool move_right, move_left, move_up, move_down; public in

How to return error response to calling channel when TCP destination gives 'Connection refused'

I have this pattern: channel ESANTE_MPI_CREATE_PATIENT_LISTENER (with a MLLP listener) calls channel ESANTE_MPI_CREATE_PATIENT that calls a TCP destination. If

How do I count the amount of lines (products) after a certain keyword?

I am trying to create a dataframe from all receipts of a supermarket. However, I cant seem to get the 'count' of the amount of items in a particular receipt. Ex

How can I know if an entity is a queue or an auto attendand in Teams?

I am querying a Teams customer via Graph, and when I download a record for a call through the Call Record API, I see many participants, each of them referenced

Fill up missing values based on other entries on R

I have dataset input with a couple of missing values. and I have to create dataset output with the following logic: If there is a missing in any of the columns

How can I Insert multiple rows with one query

I made a code allowing me to GET data from an API and insert it into a database. But I encounter a problem my api contains about 20 million data and to insert e

How to set, list, get breakpoints in classdef in octave?

Suppose I have a classdef in a MyClass.m file with properties and methods like in the polynomial2 example found here https://octave.org/doc/v7.1.0/Creating-a-cl

Create missing .htaccess file in wordpress and add the default wordpress .htaccess rewrite rule in it

I am stuck in a difficult situation here I have hundreds of addon and subdomains under my "public_html" having WordPress instances inside them. While cleaning u

Run assertions directly in browser context in Playwright

I would like to test some apis which are tied directly into browser and not necessary have UI representation. Simpliest test beeing something like: import { tes

Discord.js get current message embed

I've been trying to make my bot's embed color update dynamically (using random color, editing HSV value). However, using msg.embeds[0] seems to give me the prev

Building wheel for scikit-surprise (setup.py) ... error

I am getting this error when trying to install surprise libary in python. Does anyone know how to solve it ? Collecting surprise Using cached surprise-0.1-py2.p

(Anrdoid) How to prepopulate the Room database

I made a screen like the current image. Data such as A, B, C.. are currently being set by getting from the strings.xml resource file. I am now going to use Roo