Quantcast
Browsing all 38 articles
Browse latest View live

Comment by learning... on Ionic 6 ionViewWillEnter cannot read property 0 of...

@RaviAshara html added to the question.

View Article


Comment 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)),&co‌​de)),&id). My condition is id=ASC, CODE=DESC and update_only ASC. My instructions will come via json...

View Article


Comment 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 Article

Comment 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 Article

Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment by learning... on Completely Uninstall Visual Studio, multiple versions

Location of InstallCleanup.exe C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe

View Article


Adding 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 Article


LINQ 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 Article

Image may be NSFW.
Clik here to view.

Less 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 Article

Image may be NSFW.
Clik here to view.

VS 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 Article

no 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 Article


The 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 Article

Proper 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 Article


Using 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 Article

iqueryable 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 Article


Answer 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 Article

Answer 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 Article

Substring 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
Browsing all 38 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>