Latest Questions

Python-pptx, find special text and replace with image

I'm trying to replace text in PowerPoint slides with an image. For example, if I find <graph1> I would like to replace that text with the picture "picture

From Advanced Custom Field's checkbox, I need to add something as checked in the checkbox

this is what my code looks like: Any help will be very appreciable. <?php $btn = get_field('line_btn'); if( $btn && in_array('stu

Not able to find Analytics option in Kibana

I've Elasticsearch and Kibana 7.10.0 installed on Centos7.9 which is working fine but I am not able see Analytics option as per below screenshot. whereas my cur

(Python) Fill the column by webscraping the data on the website. Getting an error: UnicodeError: label empty or too long

I have a dataset that looks like this: ID Link 1 'https://wwwexamplecom/hello/details-5565558html' 2 'https://wwwexamplecom/hello/details-5489292html' 3 'https

Update to .NET Core 6.0 in JetBrains Rider

A teammate recently updated our code base to use .NET Core 6.0 and I'm trying to build the project in JetBrains Rider. I went to File > Preferences > Envi

HTML tags not showing where they should be

I'm writing an html email and for some reason when I display it onto the browser, the inspector tool shows that the HTML is written differently than I how I wro

I can't run rshiny prefectly in vscode T_T

When I am runing shiny in vscode I can't draw a plot. Even the example shiny::runExample("01_hello") enter image description here this is my sessionInfo() R ve

vec3 and int in the same SSBO

I have an SSBO that contains a list of structs that contain both integers and vec3s as you can see below. I am using OpenTK for the C# opengl bindings. struct B

Unity - WebGL build works fine into the localhost but not into the webserver

I wanted to create a WebGL game with Unity. So i created my version of the game, i built it and works just fine in the localhost that unity launches after the b

MassTransit - Assign consumers to two different endpoints when the consumers are resolved via container

I'm using MassTransit 7.3.0 with Autofac and RabbitMq. So far, I was content for all my services to use a single queue/endpoint per service. I registered my con

how to customize tooltip width in bootstrap

I have a bootstrap tooltip like the following. <i class="fas fa-question-circle" style="color: #f44336; cursor: pointer;" data-toggle="tooltip" data-plac

Rust generic value memory store implementation

I am working on an API for an object store, and I am struggling to figure out a way to implement it in Rust. It is a bit frustrating, since I have a good idea o

Best way to update/delete records in db based on Apache Kafka topic message

I have an application publishing messages on a Kafka Topic. I've used Confluent's Snow Sync to synchronize the topic with a Snowflake table so when I publish a

Generate JWT Token for logged in user?

I have a razor pages app [username and password auth] and a WebAPI app that uses JWT auth. Both the services use the same user table. After user proceeds to che

How to call substring() with variables?

How to call the substring() function with variables for the start & count parameters? Below example code is not working. DO $$ declare v_idx numeric(3)

Visual Studio fetches data but not display

I've read all the related answers on stackoverflow. Reportviewer never fills up. There is data but it does not show

Refresh recoil atom with async fetch, after it has been updated locally?

I have an application where I show a set of invites, each invite has a set of answers connected, that the users can update, I have the following recoil state: e

Optional calls in GoMock

I want to use GoMock to test some code, without coupling my tests too tightly to the actual implementation of the thing under test. But GoMock seems to require

Symfony 5 - A problem with the form to registrate a credit card with MangoPay

I'm trying to register a credit card with MangoPay. I've installed the mangopay/php-sdk-v2 package. To register a credit card, it needs three steps. Create a to

I am getting an error in my npm when trying to install expo-cli globally

When I try to install npm globally, using the command npm install -g expo-cli I am getting an error that says npm install -g expo-cli npm ERR! code ERR_OSSL_U

Change object data type to float data type

I read the .cvs file, which dataframe is named "df". But because I want to focus in one row I renamed my dataframe to "br". My problem is that I'm trying to con

Running website via Docker on macOS loading images but not on server

I run a website via Docker as I develop on macOS and macOS is set up with a case-insensitive filesystem by default. When I run the site, I was rendering an imag

How to Merge two datasets with different indexes but one common ID factor?

I am working with two distinct datasets: one regarding COVID-19 statistics and one with demographic characteristics of a city. The covid19 one, namely covid.df

Pytorch transfer learning accuracy and lossess not improving. Resnet 50 and Cifar-10

I have been trying everything to fix this issue however my results are still the same, my validation accuracy, train_loss, val_loss are not improving. I have no

Assigning empty list

I don't really know how I stumbled upon this, and I don't know what to think about it, but apparently [] = [] is a legal operation in python, so is [] = '', but

Sass / Dartsass-rails Error: Can't find style sheet to import / Undefined mixin

Rails 7, dartsass-rails, cssbundling-rails, propshaft, importmaps App structure app/assets/stylesheets/ /components _index.scss ///other flies /global _in

Why my Facebook ads dashboard unable to track the app installs?

I have been running an app install campaign on Facebook and it was giving me good results at less CPIs and the dashboard was tracking all the installs data prop

I can't connect watcher to openstack

I have the following scenario: server: Ubuntu 20.04.3 LTS openstack installed with devstack watcher 2.2.0 Every services seem to be working and i can see the w

Path always returning false when trying to manually put a path with Rust

I've been learning Rust, and I'm having a bit of a problem with this code. let path = Path::new(&return_path); // return path is the user input println!("{