Monday, 10 May 2021

This project references NuGet package(s) that are missing on this computer.

Find the .nuget folder in your project folder. Sometimes when you copy the project you might be miss that folder because of its hidden in your project directory.

If you dont miss the folder and still you get the error, hope you can find solution from this link 

Saturday, 1 May 2021

will-change css property

The will-change CSS property hints to browsers how an element is expected to change. Browsers may set up optimizations before an element is actually changed. These kinds of optimizations can increase the responsiveness of a page by doing potentially expensive work before they are actually required. 


  • Don't apply will-change to too many elements. The browser already tries as hard as it can to optimize everything. Some of the stronger optimizations that are likely to be tied to will-change end up using a lot of a machine’s resources, and when overused like this can cause the page to slow down or consume a lot of resources.



Saturday, 20 February 2021

Datatable does not contain a definition for asenumerable

 Add System.Data.DataSetExtensions from "nuget" or "add reference"

using System.Data.DataSetExtensions;

Wednesday, 13 January 2021

AAPT: error: attribute android:requestLegacyExternalStorage not found

 

You need to compile against SDK 29 and maybe use the most recent build tools for aapt to know this attribute, because it's introduced in Android 10.

Add this to build.gradle

subprojects {

    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 29
                buildToolsVersion "29.0.2"
            }
        }
    }
}


android:requestLegacyExternalStorage="true" to <application> tag in AndroidManifest.xml

Monday, 14 December 2020

Optional chaining is one of the new JavaScript language features that are available as of Node.js 14

 Optional chaining allows you to read the value of a nested property without having to check whether each preceding reference is valid. We can demonstrate this syntax in the REPL. First, we'll define a JSON object that has nested properties. Copy and paste the following into the REPL: 

Sunday, 19 July 2020

copy column from one table to another without column duplicate postgres

if you want to update data to One table from another table without duplication of data.

//Postgres Database Query
insert into table1(column1,column2)
select c1,c2
  from table2 a
 where not exists ( select 0 from table1 b where b.id = a.id )


Friday, 24 April 2020

How to add validation message to React Material UI Autocomplete?

You can firnd Autocomplete textbox of material ui on this link
When you use this autocomplete inside form and you want to set validation error message on autocomplete then you have to put the attribute to  textfield inside the <Autocomplete> Tag
Here below some example code which is working on versions dependencies
"@material-ui/core": "^4.9.4",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.50",
"@material-ui/styles": "^4.9.0"



<Autocomplete
                  value={editcountry}
                  id="combo-box-demo"                 
                  options={countryList}
                  getOptionLabel={option => option.CountryName}
                  onChange={onCountryChange}
                  disableClearable
                  style={{ width: 300 }}
                  className={classes.textField}
                  renderInput={params => (                   
                    <TextField
                      {...params}
                      error={hasError("idCountryMaster")}
                      helperText={
                        hasError("idCountryMaster") ? formState.errors.idCountryMaster[0] : null
                      }
                      label="Country Master"
                      variant="outlined"
                    />
                  )}
                />