Latest Questions

makefile evaluates $(eval...) first prior to multiline IF's condition in the target

My issue: Inline $(eval...) evaluated first, then "IF" is evaluated. What I expect from the SSM target is "IF condition is evaluated first and only then $(eval.

Checking instanceof with a class

I have the following code: function Complex(real, imaginary) { let c = Object.create(Complex.methods); [c.real, c.imaginary] = [real, imaginary];

how to test if a variable is valid or whether it is initialized or not in C?

I am learning C from scratch with Harvard's cs50 course. I've been given an array that's been initialized this way: int stuff[9][9]; now I have to handle it. I

ubuntu 20.04 network bandwidth becomes small after connecting to a switch

This image is My network info The capacity property shown above is 1Gbit/s, but the size is 10Mbit/s. Is there a way to change the size of the size property? Th

Namespace split in multiple files not able to recognize class in same namespace

Hello folks I am working on a backend service using typescript and trying do something like following: a.ts export namespace X { export abstract class A {

Can't find the error in my django project

I am creating a booking website for hotels using Django, I used the booking api to get the hotels with its images and location highlights... I sent to the djang

Raspberry Pi SSH Access Denied

I am trying to log into my raspberry pi using putty from windows. However, whenever I try to log into my raspberry using the default username and password (pi &

Multiple url redirection by passwords

i need to make a blogger page that wants a passwords when you open it and has multiple password possibilities. Like, if you try password "a", then it will redir

Angular: Lazy-Loading Module not calling InjectionToken factory

I am trying to provide the APP_BASE_HREF injection token in a Lazy-Loading Module, however, the factory method is not called at all. Here https://github.com/Mau

How to use REST Api or CSOM in .NET 6 client app for Sharepoint on premise

In my SPA with ASP.NET Core backend, I want to create UI for uploading files that will be stored in Sharepoint 2016 hosted on premise. I was just about to use C

react toastify does not work it gives a div as it output

**as you can see i am trying to show toast by using toastify and i install it but still it not working and it gives a div when it render** import React, { useR

Error building Delegate Proxy 9.9.13 using G++ 11.2.0

I applied the 2 patches mentioned by the original author of Delegate 9.9.13 but still encountered another build error as shown below. Could someone suggest a f

Detect H.265 HEVC incompatibility

I am trying to detect when a browser will not play a specific video. A good example is trying to detect that Chrome cannot play H.265/HEVC encoded video. I tri

How to read from a .txt file into an array of objects

I have the following sample data in a .txt file 111, Sybil, 21 112, Edith, 22 113, Mathew, 30 114, Mary, 25 the required output is [{"number":"111","name":"Syb

Jest with TypeScript (Backend - Node/Express) says Cannot use import statement outside a module

I am working on Jest tests for a Node/Express TypeScript backend. I recently learnt about global test setup which I am implementing to reduce similar variables

Does in Java an implementing class inherits the interface constants or not? [closed]

I am asking myself, if an interface in Java inherits its constants or not?! I am just reading the "OCP Java SE Programmer II Exam Guide" (Orac

How to interpret the fixed effects in relation to random effects in mixed effects model?

This is a small subset of my data to show what it looks like because my data set is too large: I want to compare the long-term effect of two t

Django-How can I upload image to a Model, without that field being present in the ModelForm

I am trying to build an image steganography application and for the encoding part I have a form with two fields, one for image and one for the message that is t

How do you combine/stitch images of different sizes to one image with a size that is a power of 2?

Some context I am working on a voxel game (like minecraft). I can not use a prebuilt texture atlas as I need to allow players to add custom blocks to the game.

How do I add a Google font to a jekyll theme

I have a simple jekyll website using the minima theme at: https://github.com/WesPeacock/simplesite Here is what the site's simple index.md file looks like: ---

How do I use different environments in zsh and oh-my-zsh

I want to use different .zshrc and .zshprofile in different environments (or the same effort), how do I do that?

I want to export my whole code base like a package or something like a module that I can import

I created an app for a small group of people. I created a lot of widgets/pages and models. Now another group asked if I could make them the app too. I could cre

Kivy-Ios / Xcode ImportError: The _imaging extension was built for another version of Pillow or PIL

Deploying my Kivy app to iOS using Xcode. Everything works fine outside, only the iPhone Simulator is giving me this issue. The pillow recipe version in toolcha

How to configure a read-only server with MariaDB Maxscale

Is it possible to configure a read-only server that remains slave even though no more masters are available with MariaDB Maxscale 6. I tried it with a readconro

Node JS: execution-time-wise, is generating array of promises and then using Promise.all better than looping and instantly awaiting every task?

Suppose we have an array of objects that we have to upload to a cloud service, the service will do something with each object and the return a result. The servi

Print angular version in the azure build pipeline

I want to print the angular version of the project in the build pipeline. We are using azure devops and yml for the pipepline configurations I could able to rea

Can Google Dataflow connect to API data source and insert data into Big Query

We are exploring few use cases where we might have to ingest data generated by the SCADA/PIMS devices. For security reason, we are not allowed to directly conn

Too many copies of the function to use std::move in C++

I have 2 classes: A and B. I need to pass instances of them to a function that will push them into a vector. I want to have good efficiency in my program, so I

Create stored procedure Insert and Update

I'm trying to insert and update queries at the same time in stored procedure, but I get a syntax error: #1064 - You have an error in your SQL syntax; check the

What's the difference between Redux Toolkit Query vs. Redux Toolkit

What can Redux Toolkit do, or do well in that RTK Query can't? I know that RTQ Query makes it easier to perform data fetching and caching with less code, but wh