Comment by learning... on Ionic 6 ionViewWillEnter cannot read property 0 of...
@RaviAshara html added to the question.
View ArticleComment by learning... on How to do sorting with jmespath both ASC and DESC
Is second reverse needed: sort_by(reverse(sort_by(reverse(sort_by(@,&update_only)),&code)),&id). My condition is id=ASC, CODE=DESC and update_only ASC. My instructions will come via json...
View ArticleComment by learning... on Searching and deleting a node from JSON
I'll get a path to the json file, it is like a repository. The code needs to run on any json file. The key and value will get passed in as well. I cannot create a class out of it.
View ArticleComment by learning... on ASP.NET Core 6+ how to access Configuration during...
Class MyAppSettings is a better approach. How can i register this data (AddSingleton?) and then where ever i need it i just inject IMyAppSettings and then start using it?
View ArticleComment by learning... on Angular 13 reusable text input
Cannot use ngControl.control.errors?.required or get Property 'required' comes from an index signature, so it must be accessed with ['required']. When i use ngControl.control.errors['required'] then i...
View ArticleComment by learning... on FormBuilder group is deprecated
Should the validators be with upper case or lower case "v"? I have followed you and put as lower case and the warning is gone. Also, implemented the return along with setErrors as pointed out by...
View ArticleComment by learning... on Trying to get all roles in Identity
When only need to get role name: var siteRoles = await _roleManager.Roles.Select(x => x.Name).ToListAsync();
View ArticleComment by learning... on Completely Uninstall Visual Studio, multiple versions
Location of InstallCleanup.exe C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe
View ArticleAdding list property using reflection
I am reading a file which is likeHDR …LIN …LIN …LIN …HDR …LIN …LIN …Now LIN corresponds to line items and belong to the HDR line above it.Also, mapping for the data comes from xml which has already...
View ArticleLINQ distinct on groups of information
I have multiple items (List)I need to get distinct features for the items but the issue is that each item has two features. So both features need to match on GroupTypeId and GroupId to become a...
View ArticleLess compiler issue (probably)
I have installed the less compiler extensionhttps://github.com/madskristensen/LessCompilerWhen I create a less file and save it, it isn't building CSS and min.css file for me. In the lower right...
View ArticleVS Code - the type or namespace name 'System' could not be found error
I am learning VS Code with .Net Core. I have installed .Net Core 3.0 SDK. I have also installed the following extensions in VS Code C# ms-vscode.csharp C# for Visual Studio Code (powered by...
View Articleno suitable method found to override onmodelCreating .net core 3.0
I have looked at a number of solutions but nothing helped so asking. I am creating a very simple MvcApp in .Net Core 3.0 and it will be using EntityFramework 3.0 as well. This app is to learn .Net Core...
View ArticleThe type 'System.Web.IHtmlString' is defined in an assembly that is not...
Little lost right now...I am following the following article to test/learn nested layouts.http://blogs.msdn.com/b/marcinon/archive/2010/12/15/razor-nested-layouts-and-redefined-sections.aspxAnd i am...
View ArticleProper use of "this" in JavaScript objects [duplicate]
In the below example, how can i access enums.ROCK inside the prop? As it currently stand, i get an error Uncaught TypeError: Cannot read property 'enums' of undefined. Plz check comment ERROR LINE....
View ArticleUsing add or push to add items to an array in groovy
I am getting the following error while push/add items to an array in groovy. $groovy main.groovyCaught: groovy.lang.MissingMethodException: No signature of method: [LProgressNotes;.push() is applicable...
View Articleiqueryable with sub query as outer join
I have a sample to look into Async calls and i need to get a count from the sub query. I know how to write this in a TSQL query but i am bit confused with the iqueryable use. Here is what i currently...
View ArticleAnswer by learning... for iqueryable with sub query as outer join
Could be handled in one of the following two ways. I have picked #2 for my sample. 1 : with sub queryvar singleQuery = from u in db.Users join sub in (from us in db.UserSubscriptions join s in...
View ArticleAnswer by learning... for Substring French text using javascript replaces the...
var byteLength = function(str) { // returns the byte length of an utf8 string var s = str.length; for (var i=str.length-1; i>=0; i--) { var code = str.charCodeAt(i); if (code > 0x7f &&...
View ArticleSubstring French text using javascript replaces the special characters
I can't do substring due to french special characters. My resulting string is usually more than the number specified due to special characters in french. Here is the approach i am using after doing...
View Article