Latest Questions

Standard deviation for categories

Hi I have desperately been trying to work this out and have referred to several posts but am still not getting the correct answer! I have a bunch of providers o

Apply condition to opposite of regex pattern

How could I apply this regex so that all data in the column that does not match this regex turns to 'Need' - Currently, if I run this, it applies Need to all th

value of set::find() if not found in container

I am trying to understand std::find(). Below is my code. std::set::find searches the container for an element equivalent to val and returns an iterator to it i

How to convert RGB percentage to RGB values?

Given the RGB percentages of a color, e.g. "wild watermelon", (99%, 42%, 52%), the right RGB values are (252, 108, 133). But when I tried rgb_percent = ('99%',

htmlWebpackPlugin - <% works in windows but not wsl

I am working on webpack. In my template.html, the line: <title><%= htmlWebpackPlugin.options.title %}</title> works in windows. However wsl throw

Azure durable function - Python SDK - trigger Activity Function from Client Function

I am preparing automation solution in Azure. I decided to use Azure Durable Functions. As per Durable Functions design I have created: Client Function (triggere

Saving data in the table

How I can save this: a=1b=2c=3d=4 into the table like this (I do not need header): 1 2 3 4 Thanks.

Pyspark normal distribution

I'm trying to plot a normal distribution law with pyspark, does anyone have a syntax please? I tried with the numpy, matplotlib and scipy libraries but I still

How to extract titles as links from a list of Org files in a directory

I have a list of org files under a directory: > org-file1.org > org-file2.org > org-file3.org > ... > org-fileN.org I want to extract their titl

How can i change Header Bar height in react native?

i'm trying to change Header Bar height in React-Native Stack Navigator this is my code I tried to put headerStyle: height:'100', but it doen't work what should

impl Default sugar for large struct without derive

If I have a struct I need Default implemented on, if all the field's types have Default implemented themsevles, then I can use the derive macro, otherwise I nee

PostgreSQL: Cannot use numbers as tags for dollar quoted strings

How do we use numbers as tags for dollar quoted strings? INSERT INTO table(user_id,user_data) values (22176,to_jsonb($123${"name": "Helo. $ what is this $"}$12

Addition of function to create banner on management screen

I have a site built with Laravel, and I would like to add the function to create a banner to be placed on that site to the management screen. The requirements a

The most efficient way to track allowed object movement in Unity 2D for puzzle making

Okay so I've rolled this around in my brain, and while I would probably know what code to use if I could figure it out, I just can't decide what the best way to

How to solve Luhn algoritm

there is a lot of information about how to write Luhn algortim. I'm trying it too and I think that I'am very close to succes but I have some mistake in my code

Don't show live video from camera when deploying to domain @cycjimmy/jsmpeg-player

The problem I had when developing to a domain. On localhost although it was running fine, when deployed it didn't work. Whether the connection to ws://domain/ap

composes an array of functions into a function that passes a value through a pipeline of functions

Does anyone know how to do this ? #compose pipeline Q) composes an array of functions into a function that passes a value through a pipeline of functions. We ne

matlab linear model having precipitation of a basin [closed]

This is my first time that i try to programme. I have to do the best linear model (having high R^2). If I have precipitation of cumulative 5 d

Seed permanent data in typeORM v.0.3.6 with DataSource

Is there a simple way to seed data in typeORM v.0.3.6 with DataSource ? typeorm-seeding seems to use Connection which is deprecated.

Can you calculate the maximum physical address space given page size and virtual address size

A system has a 64 bit address space and pages with a size of 256KB how do you calculate the maximum physical address space?

Save form values to localStorage

I have been studying JS for a while so at some point a couldn't complete the assignment that my teacher gave me so its all about to create a input to fill with

KeyIsDown does not seem to work with the right arrow

I'm writing a simple 2D platformer game on p5js, with Visual Studio Code 2022. I want to move this dinosaur sprite to the right and the left, however the keyIsD

python3 join lists that have same value in list of lists

I have similar question to one that has been asked several years ago, the link is down here. the thing is that all answers are in python 2 and does work for me.

Can I use Decorations to achieve this in vscode?

WANT: I want to implement a multi-line prompt like the picture. tried: I've tried to use setDecorations, but I found that the contentText is string but \n does

Spaces between editor line numbers intellij

As you can see there is a lot of "Spaces" between editor line numbers and i dont know how to disable or delete that.

How to add decryption values for jwt and easyauth for azure functions

I have an Azure AD app registration that encrypts the JWT tokens it creates and this works well for API management. i decrypt and validate the token in API mana

I'm trying to understand php foreach list, I'm missing something [duplicate]

This should probably be simple, but I'm missing something. I want to have two arrays, combine them, then list out the values. I obviously don'

Discount on a price

So this is my code so far but at the end there i am trying to add a discount option. I am not sure how to add it to multiple products. Please let me know how i

Adding to list and displaying list functions in C

I have my linked list that I created. I made addToStart function which has2 paramters, first parameter is the head of the list, second parameter is the data to

I would like to check if the current time is before 11:00 with moment.js. How can I achieve this?

I'm working with the moment.js library, If I want to check if the current time is less than 11:00 or not How do I achieve this? let todaysDate = moment() // "y