Latest Questions

Material UI DropDown Focus Remove

I want to remove the focus background color for the target dropdown <Dropdown options={branding} fullWidth id

Error when setting attributes in an igraph object

I am trying to create a plot in igraph in which nodes are colored red for females and blue for males. I have a data frame called "advisory_edge_1" that houses m

How to fix floating header

I've finished my website and everything, but I'm having trouble with the floating header on top, which, as you can see in the image, takes up half of the page.

Script '/opt/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102

I am trying to build a flutter app using google Cloud Build, I am constantly getting this error 1: [+1000 ms] FAILURE: Build failed with an exception. 1: [

Prevent multiple fast clicks from triggering API

For my project a instagram-clone, I have a like and dislike button. If there are no likes or dislikes from the current logged in user, both will show black. If

Seaborn not plotting head but instead plots whole dataframe

I have a dataframe that I groupby() count and then sort_values() by count. I then take the head() and tail() of this dataframe to plot on a seaborn barplot(). H

Getting no configuration error when running Storybook in a turbo repo

I am running turbo repo with and my ui library has storybook. When I execute "start-storybook -p 6006", I get this error: ERR! Error: No configuration files ha

Trying to simulate a git merge conflict

I am trying to simulate a simple merge conflict, having read about similar tasks on the website, my situation is slightly different. Here are the steps that i a

Decision tree score always return 1

I got 100% score on my test set when trained using decision tree and I think it's a bit strange, given that i set max_depth = 2. And I don't understand that I d

Can we make folder inside template package of SpringBoot Application?

I have been working on dummy Web application, and there are lot html file in template which I want to organize. I am getting an error when I have keeping them i

I called Paypal subscription API which returns success message but don't see any active subscription in the Paypal dashboard

I am trying to create Paypal subscription through its Rest API using live client and secret. The API returns success message. The GET subscription API returns t

Convert getdate to format 22nd APR, 2022

Can anyone please help me with this, How can I convert getdate() to format 22nd APR, 2022, 21st APR, 2022, 23rd APR,2022, 24th APR, 2022, nd or th or rd is impo

Java -> operator

I know that -> is used for lambda expressions with the syntax ()->{}. But I saw this code: file -> file.isFile() - with no () and {}. What does it do?

Emacs Org-mode: org-agenda-custom-commands and hiding future scheduled tasks

I have set my org-agenda-custom-commands to (among others) this: (setq org-agenda-custom-commands `( ("x" "Scheduled tasks with Prio"

More descriptive error messages for Django Serializers?

I am deserializing JSON data from file to a model object. I'm using a Django Rest Framework serializer. The JSON is quite large and I expected some fields that

Google Drive API to identify the changes in files

I have a list of files and folder stored on a google drive folder. My objective is to identify any changes (modify/create/delete) related to any file/folder wit

ASP.Net MVC returning 404 for generated JS

ASP.Net MVC project is not able to serve js in wwwroot/js folder (generated by webpack). I'm getting a 404 when page is trying to access js/app.js. The csproj h

Send register name to mapped command

I made this command to send my current buffer's file path into the + register: :nmap <Leader>yp :let @+=expand("%:p")<cr> I'd like to extend it so

Filter between dates in MongoEngine

I have a problem filtering between date_from and date_to in MongoEngine. This is the document structure and the next MongoEngine query: def devices_graph(device

Customize the default error on vuetify's v-data-table : "no matching records found"

How can I change the warning message "no matching records found" by a customized one? For example: I want to change this by my own customisation Shown in the do

Does Rust narrow lifetimes to satisfy constraints defined on them?

Please consider this example (playground): struct Container<'short, 'long: 'short, T: 'long> { short_prop: &'short u8, long_prop: &'long T

How to use drop down to lock and unlock cells according to values selected and still matain drop downs in the unlocked cell

Google Sheets I have a sheet with two cells (B2 and B3) and I added drop downs to the cells, Cell B2 has Yes and No as its values(drop downs) and B3 has Yes and

How can i filter parents that has at least one active child on parent child relationship model

I have "Category" model which has multiple parent/child relationship. class Category(models.Model): pass class CategoryParent(models.Model): parent_cat

Do I need two different queue submissions here?

I have once command buffer 1, and command buffer 2. Both have had their recordings finished, and now I want to submit both of them, preferably in an efficient w

Dart preview Flutter UI guides is not present in vscode?

I can't find the dart preview flutter UI Guides... I have installed flutter and dart extensions in vscode... Can anyone help?? my Flutter version 2.10.4 and Dar

Delay STATE change in React

I'm writing a website. It's a website that uses and fetches data from a stock API to displays stock prices and charts. I have a search bar which changes state w

How to use async calls in WPF event handlers

I have this event handler in WPF with async call. private void Button_Click(object sender, RoutedEventArgs e) { var folderStructure = restApiProvider.GetFol

ASP.NET Core MVC & C# - redirect to same view ( action ) when changing language using culture

I have localization in my project. What I want is to whenever a user changes language it redirects him to the same page he was in. But now I always redirect him

Using Brackets in MathJax - Tree Question

I have used LaTeX using different packages to make trees, e.g. using the format below. Is there a way to get a tree to run using MathJax using the code below? I

Week number calculation in Power BI

I am new to Power BI.I have one year filter (Range filter) and one week number filter (Range filter). I want to calculate values such that when i select year 20