Category: .NET Core
-
Obtaining list of videos from a youtube playlist with Stankins
Because Stankins has a parser to html,you can have this kind of macro #see all href Stankins.HTML.ReceiverHtmlAHref file=https://www.youtube.com/playlist?list=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps #retain href column StankinsObjects.FilterRetainColumnDataContains namecolumn=href stringToHave=PL4aSKgR4yk4OnmJW6PlBuDOXdYk6zTGps #retain just videos which title contains 5Min StankinsObjects.FilterRetainColumnDataContains namecolumn=a_text stringToHave=5Min #remove column a_html StankinsObjects.FilterRemoveColumn namecolumn=a_html #transform column to li a href StankinsObjects.TransformerAddColumnExpressionByTable expression=”‘<li><a href=’+ href+’>’ + a_text+'</a></li>’” newcolumnname=test nametable=TableLinks #remove column…
-
DotNet CLI Tools
There is a revival of CLI tools. And dotnet is going with the wave. You can find the tools installed with .NET Core here,https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x and here https://docs.microsoft.com/en-us/dotnet/core/additional-tools/ Usually you do not need those – since Visual Studio is good to have all from the GUI. However,you can make your own tool – and you have the…
-
Small Task quiz knowledge
The task and the await /async never ceases to amaze me. That because there is so much under covers( see https://channel9.msdn.com/Events/TechDays/Techdays-2014-the-Netherlands/Async-programming-deep-dive ) Let’s say that we have this code that awaits and throws ( or not ) an exception: First problem: Error order What this code will produce as output for the line Console.WriteLine(“err ”…
-
C# and Null object
There is a lot to talk i n programming that null is bad,for example https://www.yegor256.com/2014/05/13/why-null-is-bad.html and https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/ . In C# we have a love-hate relationship with null : Love : Because the value type / struct cannot be null,C# creators invented Nullable<T> https://docs.microsoft.com/en-us/dotnet/api/system.nullable-1 Hate: Because reference types / classes can be null,c# 8.0 invented nullable…
-
7 Steps from (Angular) WebApplication to Windows Store
I have deployed fairly easy the .NET Core Alphabet applcation to Windows Store . Supposing that you already have registered the name of the application to the windows store (https://partner.microsoft.com/en-us/dashboard/windows/overview ) Those are the steps: 1. Compile the Angular Application ( with ng build –prod –build-optimizer ) 2. Create a new WinJS App for Universal…
-
C# integration testing in AzureDevOps with Docker containers– SqlServer and Cachet example
Every software that we make depends on others. For Stankins,as a general ETL data,it is more important to be tested with real data providers.For example,we may want to take data from Sql Server and send to Cachet . How can we have a SqlServer and a Cachet up and running easy ? The obvious answer…
-
.NET Core Alphabet
What I wanted is a simple application ( Web,Mobile,Desktop) that can list,alphabetically,the .NET Core keywords. What is the purpose? For interviews – suppose you want to test the people knowledge in C#. You start the application( again: Desktop or Web or Mobile) and let the candidate choose a letter. Then you see the keywords for…
-
Create a new exception–add fields and/or properties
This post is not about why we need custom exception (https://blogs.msdn.microsoft.com/jaredpar/2008/10/20/custom-exceptions-when-should-you-create-them/ ) . It is (more a rant ) about a specific item in best practices in Exceptions( https://docs.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions ) It says: In custom exceptions,provide additional properties as needed Provide additional properties for an exception (in addition to the custom message string) only when there’s…
-
Dynamic loading controllers in .NET Core
I needed to load dynamically some controllers to the Stankins application .Dynamic like in – written in some text file,then loading them,The best reference was https://www.strathweb.com/2018/04/generic-and-dynamically-generated-controllers-in-asp-net-core-mvc/ . But it was not enough : what I wanted is to write the controller in some text file and compile and load them. First problem ; What about…
-
[Presentation]Angular + .NET Core => Applications for Mobile,Web and Desktop – Andrei Ignat
I was invited at http://apexvox.net/#schedule to present ] Angular + .NET Core => Applications for Mobile,Web and Desktop It was very exciting to find so many people interested in .NET . And it was good to re-see old friends,like http://vunvulearadu.blogspot.com/2019/03/post-event-apexvox-cluj-napoca-2019.html,Daniel Costea,Ciprian Jichici and to make new ones You can find the code and the presentation…