Latest Questions

Issue on my Wordpress Site with the footer.php file

I used a debug and I get the following error: PHP Fatal error Uncaught TypeError: ceil(): Argument #1 ($num) must be of type int|float, string given in /var/www

Google script - Service error: Spreadsheets

As of a couple of weeks now, I'm getting a "Service error: Spreadsheets" error when running a script in Google Sheets. Before that, it was working fine. It's su

How to send URL of video from one html file to another using flask

Trying to create a simple website consisting of two webpages Few radio buttons to choose which input/output video to display Displays input and output video mai

WordPress Redirection Plugin Redirect

I'm trying to redirect a page and any subpages to the root but I can't find a way of doing it. I'm using the redirection plugin (https://redirection.me/). I wou

Django Rest Framework ignoring custom field

I have a model with a nullable boolean field that I'd like to have serialized in a way that converts null in the output to false. My model: class UserPreference

Should I use Azure Topics over Queues?

I understand that Topics have the additional features of subscriptions and filters which Queues do not. In which case, when would I absolutely need to use a que

Using python code typed with ParamSpec on older versions of Python

So, I was writing an event emitter class using Python. Code currently looks like this: from typing import Callable, Generic, ParamSpec P = ParamSpec('P') clas

Unable to move file with MS Graph API for Onedrive. 200 Response containing old Parent ID

So I'm quite a fan of the Graph API to manage Onedrive from my server. Now I'm trying to use the Graph API to move a file from one directory to another one foll

Using the dynamic_cast operator

I'm trying to understand dynamic type casting. How to properly implement the DrawAnimals and Talk To Animals functions using dynamic_cast? DrawAnimals draws ani

Python's Paramiko gets stuck sometimes when verifying credentials - log file stuck at [chan 0] Unhandled channel request "[email protected]"

I'm using the Paramiko Python module to connect to a remote server as user admin and then switch user to root. here is the class I'm using class ShellHandler:

How to verify aadhar XML signature with the help of public key certificate in Java?

I am working on Aadhaar Paperless Offline e-kyc, trying to validate aadhaar XML signature using public key certificate. But I'm not sure is this the right way t

laravel livewire insert selected data from datatable to an application form

I have a datatable with a list of job/career vacancies where in the selected item_number and position_title should be automatically filled in the application fo

Possible to set hex color opacity independently?

Is it possible to set opacity value in hex color independently (to avoid repetition), or to append to var() e.g. var(--set1)1? Example: :root { --set1: #abc;

transfer from Provider to Getx Error: 1 positional argument(s) expected, but 0 found

Im new to flutter and download a code which is using Provider, now I tried to transfer to use getxcontroller, here is original code with Provider: class Browser

Declaring multiple custom css properties in :root causes error

I've been trying to create multiple custom properties to use in my CSS files, after searching I discovered they should be prefixed with a double-dash and usuall

If it possible accelerate From-Where-Select method?

I have two var of code: first: struct pair_fiodat {string fio; string dat;} List<pair_fiodat> list_fiodat = new List<pair_fiodat>(); // list filled

Different output when running lmer and summarise

I am doing some easy linear mixed effects model as below: lmer( as.numeric(o.m_20_r_coded)~ site + (1 | village), o.m_20_r_coded_dat) %>% summary() Random

Create Magic Links for users to access a .Net MVC WebApp

I want to add a new feature to my WebApp for events - build with .Net MVC - to send a magic link to each participant - after they register in the event - to acc

Typescript check that all env variables are set based on interface (union type to tuple type issue)

I want env.d.ts file to represent required application env variables and make sure that any change or addition to it will result in typescript error as well as

TypeORM OneToMany and ManyToOne relations cases 500 error on GET request

After adding OneToMany and manyToOne relations in the entities and doing GET request it shows in postman 500 error. // Car entity @Entity({ name: 'car' }) expor

Can the *.mdb file be open in two thread at the same time?

Android Objectbox Version 3.1.2 Flutter Objectbox Version 1.4.1 Android code does read/write operation Flutter code only does read operation Sometimes the andro

Can GKE filter logs by application?

We are GKE managing several applications: app1 app2 app3 In GCP Error Reporting dashboard, errors are intermixed for all the applications. For example, the err

Since Fluentd Daemonset has access to the pod log locations why it needs to contact API server?

I have deployed Fluentd as DaemonSet on my cluster using fluentd-daemonset-elasticsearch. In the logs I can see this error start_pod_watch: Exception encountere

High Chart Polygon Chart inside pie Chart options?

I am using High Chart js library for my project. I use polygon chart I want polygon chart inside pie chart options but I can't use. how i do it? example

How do I allocate space for elements in vector for type T?

fn test<T>(arr: &mut [T]) { let vector=vec![] //what can I do here so that I have vector as vec with same size as arr and of type T. } fn main(

GKE GCE Ingress FrontendConfig redirect non-www to www

I want to redirect all non-www traffic to www traffic. E.g. mydomain.com to www.mydomain.com GKE Ingress (GCE) uses Frontendconfig. Is there a way to configure

Nextauth Twitter - Function not found with Netlify dev

I couldn't find any reference to this and finally managed to solve problem. When using Nextauth with Twitter (and probably other providers) you get a 'Function

PHP / JS - Firefox Cookies Expires not set

This is the way how I set cookies in JavaScript: function setCookie(cname, cvalue) { expires = "expires=2147483647"; document.cookie = cname + "=" + c

How to generate aware time object in Faker?

I have the following (simplified) model and factory: models.py class Event(): duration = FloatField() start_time = TimeField() finish_time = DateTim

Failed to log metrics

There is no Buildtime or runtime error on my code. however, when I run the code it says succeeded and a black screen comes up. I get the following on my console