Latest Questions

SQL to count the instance and total instances on sorted data

Is there an efficient way to add the Instance and Instances columns on sorted SQL? Some kind of self join? I quite often have to do something like this and loop

Tailwind CSS custom Typography

I'm trying to create a custom typography for my app. This are my classes. as an example: main.css :root { --typescale-display-large: font-size: 57

ASP.NET Core error: System.InvalidOperationException: Unable to resolve service for type while attempting to activate

I am following this article: https://code-maze.com/net-core-web-api-ef-core-code-first/ to set up my backend using .NET 6.0 (in article they are using 5). I am

Laravel does not upload video file and store tmp filename in database

I'm working with Laravel 5.8 and I wanted to upload a video file. So in the Controller, I added this code which does the uploading: if ($request->file('prd_v

Is it possible that getters and setters be made abstract in an abstract?

public abstract class Modeller { private String model; abstract void getModel(); abstract void setModel(String model); Is it possible having somet

Change default cursor position in ComboBox

I am working on a c# based Winforms Project where I have used a ComboBox filled with some values and Set AutoCompleteMode = Append . Now the problem is whenever

JPA query receive column name not valid

I need to execute a very simply JPA Query but I receive the error message "column name not valid". Obviously, if I execute manually the query it works fine, bu

Get function inside default export function

I have function inside user.js with default export like this export default { var getListFriends = async (accessToken) =>{ } ....other function ret

Why my customize cursor keep blinking in react

I have problem with my customize cursor and this has been in a month but now I created it again and still wasn't solve it still. I'll direct how it will works.

Associating foreign key on dropdown in Entity Framework Core

I am building a simple college management system where I have two models(right now). The following are my model classes. public class FacultyModel { [Key]

TemplateBinding with IValueConverter

I want to generate a custom button in a WPF-project. I want the button to change its background color in such a way, that the opacity is reduced. Therefore I ha

How do I initiate multiple strings in malloc in C

I'm trying to learn C and I have an asignment to use malloc and struct and I have it print out the queue number but the string wont print. I have attached a pic

Using PartiQL with DAX for DYnamoDB

If we use only PartiQL for Dynamodb calls, do the calls get automatically routed via DAX because we are using DAX cache also in front of some of our tables. Bas

Angular 11 - To add files zip using JSZip

I am trying to add several txt files to a zip file and download it locally. For this, I am using the libraries: JSZip and FileSaver. This is the "typescript" co

How to show an attribute of an item (generated by a loop) on-click?

In my vue3 app I have three boards : one for draggable elements (already defined in a JSON file) one for droppable elements (stored in a empty list in the vue)

I have set up an alertcondition on SPY, once triggered, how can it send me the price of another ticker like TSLA in PineScript?

I'm using TradingView to follow the trend of the SPY index. Once its RSI fall out of range, I have set up a alertcondition to trigger the system to send me a me

Refactor Query Builder Laravel

I want to do repetitive get data and foreach on several tables (see example below). Is there a way to write the code in a cleaner way instead of repeating the s

How do I convert float tensor into binary tensor using PyTorch?

I have a tensor and want to convert in into a Quantized Binary form. x= torch.Tensor([-9.0387e-01, 1.4811e-01, 2.8242e-01, 3.6679e-01, 3.2012e-01])

Why does the useQuery hook in react-query force me to check if the returned data is not undefined

I'm experimenting with react-query as a replacement for my custom logic when loading data from a server in a react application. What I cannot seem to understand

How to add significance markers (*) when comparing means and confidence interval in R

I need to compare the mean of each yeast with the reference(Rf) mean at a 90% confidence interval. I have plotted the graph below with the following code. The

PowerShell Team Owners and Team names from a List of GroupIDs

Good afternoon all, Hoping someone can help with a broad problem I'm having with efficiency in the follow PowerShell query. In brief, the idea behind the follow

How can i show results of more than 2 websites on a page of my website [duplicate]

Eg like one website is amazon and other Flipkart and i want to show their results at same time on my website.. Is something like this possible

Is the function binded to the button always executed or did I make a mistake?

So I have this PHP page, with at the start some unimportant stuff and a session opening : <?php session_start(); ?> I want the disconnect button to a

Extracting items from 2d List

I have one 2d list splited_body: splited_body= [ ['startmsg', 'This is a test massage.', 'endmsg\r\n'], ['startmsg', 'Hi There is some issue in the process.'

How do I manipulate data based on another data in Redux Toolkit (React)?

const { data, isLoading } = useGetDataQuery({ skip: !dependency } ); const { data2, isLoading2 } = useGetData2Query({ skip: !data } ); const { data3, isLoadin

Function based trigger for audit table

I have 2 tables, one main table and one audit table. create sequence dbo.users_seq; create table dbo.users ( id bigint primary key default(next value for dbo.

Pyspark list to rdd and split function inside map throws error

What is the issue with this code in pyspark raw_data = ["James,Smith,36636,M,3000", "Michael,Rose,40288,M,4000", "Robert,Williams,42114,M,4000", "M

How to call git commands during AWS CodeBuild

I need to show the "build version" in my application. For that purpose, I am using the npm package 'git-describe', which fetches the 'distance' of the current G

Grep is not recognized as command in windows [duplicate]

I'm trying to convert a file into txt and sort it. I'm using wget, that I've already installed wget 'https://bitkeys.work/btc_balance_sorted.c