Git commits with correct user from terminal but not from VS Code

The question about how to use multiple identities for Git has already been asked several times… I read some instructions and followed this one https://itnext.io/setup-git-with-multiple-configs-9b4111d6928c At home I’m using Linux and Github. At work I’m using Windows 10 and Gitlab. Two Git identities are required for work. I changed the .gitconfig located at C:\Users\jdoe from…

Details

Table variable in User Defined Function SQL Server and performance of UDF

I have an UDF like this CREATE FUNCTION Lob_function ( @policy NVARCHAR(MAX) @table Table ) RETURNS NVARCHAR(MAX) AS BEGIN select @policy= case when @policy like ‘%AMM%’ then ‘AMM’ when @policy like ‘%MOT%’ then ‘MOT’ when @policy like ‘%MOX%’ then ‘MOX’ when @policy not like ‘00%’ then LEFT(@policy,3) end from @table return @policy END; I want…

Details

How to set angular form logics?

I have a data structure to post my api like following. { name: string, price: number, allowedMinPirce: number, allowedMaxPrice: number } So I have creted a reactive form for this model. myForm = this.fb.group({ name: [”, Validators.required], price: [”, Validators.required], allowedMinPirce: [”, Validators.required], allowedMaxPrice: [”, Validators.required], }); The fields are required as I set. But…

Details