Latest Questions

MVC Core 6 and EF 6 Database First Scaffolding

I am migrating a project from a .NET MVC5 EF6 to a MVC core 6 EF6 project. I been hunting for some guidance on how to scaffold the model from the SQlServer data

C# groupBox BackColor = transparent not working

Hey I have created a form in c#. I made some groupboxes and set their BackColor to transparent, but there is still a backcolor. Anyone here who can help me solv

Blazor Webassembly Prerendering: How to avoid HeadContent render two times

I have a Blazor WASM prerendered .NET6 application. In Index.razor on the Hosted server project, I have a component that loads css files dynamically. The probl

Set Colorbar Range in matplotlib

I have the following code: import matplotlib.pyplot as plt cdict = { 'red' : ( (0.0, 0.25, .25), (0.02, .59, .59), (1., 1., 1.)), 'green': ( (0.0, 0.0,

How to save JSON to CSV?

I am trying to use a raw data output from mixpanel API and save all events to a .csv. Mixpanel gives me the following data as <class 'str'>: {"event":"Te

How to develop salesforce chatbot with xamarin forms

I want to develop Salesforce chatbot with xamarin forms application. I am not able to find what sdk or nuget package, I should use. There is no information seem

Gradle : How to automatically install CMake

I am working on an Android native project which builds using CMake. In my build.gradle I specify : if(project.hasProperty("native")) { externalNativeBui

Django aggregation Many To Many into list of dict

It's been hours since I tried to perform this operation but I couldn't figure it out. Let's say I have a Django project with two classes like these: from django

How to cache response in iOS and show only when internet is not available?

I want to cache the response of API. When the internet is available it should fetch data from the server and should update locally cached data every time and wh

NodeJS MySQL DB connection fail

thank you in advance for the help. I am using nodejs v16.13.1 and mysql 5.7.37-cll-lve. my nodejs app is currently on my local machine and my mysql db is on a r

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