Skip to main content

Posts

Showing posts from January, 2021

Using C# Source Generators to create an external DSL

This post looks at how to use C# Source Generators to build an external DSL to represent mathematical expressions. The code for this post is on the roslyn-sdk repository . A recap of C# Source Generators There are two other articles describing C# Source Generators on this blog, Introducing C# Source Generators and New C# Source Generator Samples . If you’re new to generators, you might want to read them first. Let’s just remind ourselves of what they are. You can think of a Source Generator as a function that runs at compile time. It takes some inputs and produces C# code. Program Parse Tree -> Additional Files -> File Specific Options -> C# Code This conceptual view is implemented in the ISourceGenerator interface. public interface ISourceGenerator { void Execute(GeneratorExecutionContext context); void Initialize(GeneratorInitializationContext context); } You implement the Execute method and get the inputs through the context object. The Init

Data Structures - Full Course Using C and C++

Data Structures - Full Course Using C and C++ Learn about data structures in this comprehensive course. We will be implementing these data structures in C or C++. You should have a good understanding of pointers in C. If you need to learn about pointers, watch this course: https://www.youtube.com/watch?v=zuegQmMdy8M  Data Structures - Full Course Course Contents: ⌨️ (0:00:00) Introduction to data structures ⌨️ (0:06:33) Data Structures: List as abstract data type ⌨️ (0:19:40) Introduction to linked list ⌨️ (0:36:50) Arrays vs Linked Lists ⌨️ (0:49:05) Linked List - Implementation in C/C++ ⌨️ (1:03:02) Linked List in C/C++ - Inserting a node at beginning ⌨️ (1:15:50) Linked List in C/C++ - Insert a node at nth position ⌨️ (1:31:04) Linked List in C/C++ - Delete a node at nth position ⌨️ (1:43:32) Reverse a linked list - Iterative method ⌨️ (1:57:21) Print elements of a linked list in forward and reverse order using recursion ⌨️ (2:11:43) Reverse a linked list u

Improvements to the new Razor editor in Visual Studio

It’s been six months since we announced the first preview of a new experimental Razor editor for Visual Studio based on a common Razor language server and it’s time to give an update on our progress. The team has been hard at work bringing the new Razor editor up to parity with the old one, fixing bugs, and adding lots of great new functionality. We think the new editor is close to being ready for normal daily development, so now is the time to give it a try with the latest Visual Studio preview. We hope you’ll give the new Razor editor a try and share feedback with us on your experience! Get started To get started wtih the new Razor editor: Install the latest Visual Studio preview (16.9 Preview 3) . Note : Visual Studio previews can be safely installed side-by-side with your stable Visual Studio installation. Go to Tools > Options > Environment > Preview Features and select the Enable experimental Razor editor option: When you go to turn on the new Razor

Android Studio Tutorial - Build a GPS App

Curriculum for the course Android Studio Tutorial - Build a GPS App Learn how to create a GPS Android App. You will learn how to use FusedLocationProviderClient, Google Play services, Location Provider, and other parts of a GPS-aware application. 💻 Starting XML file: https://github.com/shadsluiter/gpsDemoStarting/blob/master/activity_main.xml ✏️ Course developed by Shad Sluiter. Check out his channel: https://www.youtube.com/user/shadsluiter -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp Watch Online Full Course: Android Studio Tutorial - Build a GPS App Click Here to watch on Youtube: Android Studio Tutorial - Build a GPS App This video is first published on youtube via freecodecamp. If Video does not appear here, you can watch this on Youtube always.

Build a Shopping Cart with React and TypeScript - Tutorial

Curriculum for the course Build a Shopping Cart with React and TypeScript - Tutorial Learn the fundamentals and how to build a ReactJS shopping cart with Typescript, Material UI, Styled Components and React-Query. This tutorial uses a free open API for dummy data to the items in the shop. React-Query hooks is used for fetching the data from the API. Styled Components is used in combination with Material UI to customize the styles. 💻 Code: https://github.com/weibenfalk/react-shopping-cart ✏️ Course created by Thomas Weibenfalk. Check out his channel: https://www.youtube.com/channel/UCnnnWy4UTYN258FfVGeXBbg -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp Watch Online Full Course: Build a Shopping Cart with React and TypeScript - Tutorial Click Here to wa

Basics of SQL Injection - Penetration Testing for Ethical Hackers

Curriculum for the course Basics of SQL Injection - Penetration Testing for Ethical Hackers SQL injection is common hacking technique used retrieve or destroy data from a database without permission. It is considered one of the top web application security risks. In this course, you will learn how SQL injection works so you are able to defended against this hacker attack in your own web applications. ✏️ This course was developed by Sagar Bansal. Check out his channel: https://www.youtube.com/channel/UCdsl8fYtJM2Mw-HueDy2G4Q ⭐️ Course Contents ⭐️ ⌨️ (0:00:00) Introduction ⌨️ (0:02:33) What is SQL Injection ⌨️ (0:06:56) Lab Setup ⌨️ (0:11:04) Basics of SQL ⌨️ (0:16:33) Classic Injection Bypass ⌨️ (0:26:01) Types of SQL Injection ⌨️ (0:30:21) Union Based SQL Injection ⌨️ (0:41:08) Error Based SQL Injection ⌨️ (0:53:27) Boolean Based SQL Injection ⌨️ (1:03:04) Time-Based SQL Injection ⌨️ (1:11:39) Semi-Automated SQL Injection ⌨️ (1:24:02) Fully Automated SQL Injection ⌨️

The Plan for Entity Framework Core 6.0

Today we are excited to share with you the plan for Entity Framework Core 6.0 . This plan brings together input from many stakeholders and outlines where and how we intend to invest for the Entity Framework (EF Core) 6.0 release. This plan is not set-in-stone and will evolve as we work on the release based on what we learn. This learning includes feedback from people like you, so please let us know what you think! IMPORTANT This plan is not a commitment. It is a starting point that will evolve as we learn more. Some things not currently planned for 6.0 may get pulled in. Some things currently planned for 6.0 may get punted out. General information EF Core 6.0 is the next release after EF Core 5.0 and is currently scheduled for November 2021 at the same time as .NET 6. EF Core 6.0 will align with .NET 6 as a long-term support (LTS) release . EF Core 6.0 will likely target .NET 6 when released. It is unlikely to support any .NET Standard version. It will not run on .NET Framewor

Azure Active Directory’s gateway is on .NET Core 3.1!

Azure Active Directory’s gateway service is a reverse proxy that fronts hundreds of services that make up Azure Active Directory (Azure AD). If you’ve used services such as office.com, outlook.com, or xbox.live.com, then you’ve used Azure AD’s gateway. The gateway provides features such as TLS termination, automatic failovers/retries, geo-proximity routing, throttling, and tarpitting to services in Azure AD. The gateway is present in more than 53 Azure datacenters worldwide and serves ~115 Billion requests each day. Up until recently, Azure AD’s gateway was running on .NET Framework 4.6.2. As of September 2020, it’s running on .NET Core 3.1. Motivation for porting to .NET Core The gateway’s scale of execution results in significant consumption of compute resources, which in turn costs money. Finding ways to reduce the cost of executing the service has been a key goal for the team behind it. The buzz around .NET Core’s focus on performance caught our attention, especially since TechE

Diagnostics improvements in .NET 5

Building upon the diagnostics improvements we introduced in .NET Core 3.0 , we’ve been hard at work further improving this space. I’m excited to introduce the next wave of diagnostics improvements. Diagnostics tool are available without the .NET SDK Until recently, the .NET diagnostics suite of tools was available only as .NET SDK global tools. While this provided a convenient way to acquire and update the tools, this meant it was difficult to acquire them in environments where the full SDK was not present. We now provide a single-file distribution mechanism that only requires a runtime (3.1+) to be available on the target machine. The latest version of the tools is always available at a link that follows the following schema: https://aka.ms/<tool-name>/<platform-runtime-identifier> For example, if you’re running .NET Core on x64 Ubuntu, you can acquire the dotnet-trace from https://aka.ms/dotnet-trace/linux-x64 . The list of supported platforms and their download li

How to Make a Landing Page using HTML, SCSS, and JavaScript - Full Course

Curriculum for the course How to Make a Landing Page using HTML, SCSS, and JavaScript - Full Course Learn how to build a responsive website from scratch with HTML, CSS, and JavaScript. ✏️ This course was created by Jessica Chan. 🔗 Jessica's YouTube Channel: https://www.youtube.com/thecodercoder 🔗 Jessica's Twitter: https://twitter.com/thecodercoder 💻 Starter files from Fontend Mentor: https://www.frontendmentor.io/challenges/easybank-landing-page-WaUhkoDN 💻 Source code on GitHub: https://github.com/thecodercoder/fem-easybank 🔗 Responsive Design for Beginners course: https://coder-coder.com/responsive/ ⭐️ Course Contents ⭐️ ⌨️ (0:00) Introduction ⌨️ (0:30) Part 1: Setup and Navigation Bar ⌨️ (49:52) Part 2: Animated Hamburger Menu ⌨️ (1:21:28) Part 3: Animated Mobile Menu ⌨️ (1:43:56) Part 4: Responsive Hero ⌨️ (2:39:24) Part 5: 4-Column Features (flexbox) ⌨️ (3:16:58) Part 6: 4-Column Articles (CSS grid) ⌨️ (4:04:56) Part 7: Footer -- Learn to code for free and ge

.NET January 2021 Updates – 5.0.2, 3.1.11, 2.1.24

Today, we are releasing the .NET January 2021 Updates . These updates contains reliability and security improvements. See the individual release notes for details on updated packages. You can download 5.0.2 , 3.1.11 , 2.1.24 versions for Windows, macOS, and Linux, for x86, x64, Arm32, and Arm64. Installers and binaries: 5.0.2 | 3.1.11 | 2.1.24 Release notes: 5.0.2 | 3.1.11 | 2.1.24 Container images Linux packages: 5.0.2 | 3.1.11 | 2.1.24 Release feedback/issues Known issues: 5.0 | 3.1 | 2.1 Security CVE-2021-1723: ASP.NET Core Denial of Service Vulnerability Microsoft is releasing this security advisory to provide information about a vulnerability in ASP.NET Core and ASP.NET 5. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability. A denial-of-service vulnerability exists in the way Kestrel parses HTTP/2 requests. The security update addresses the vulnerability by fixing the way the Kestrel par

.NET Framework January Security and Quality Rollup Update

Today, we are releasing the January 2021 Security and Quality Rollup Updates for .NET Framework. Security The January Security and Quality Rollup Update does not contain any new security fixes. See October 2020 Security and Quality Rollup for the latest security updates. Quality and Reliability This release contains the following quality and reliability improvements. CLR 1 Improved the clean-up process for X509Certificate2 certificates WPF 2 Addressed an issue with a FailFast crash arising in apps with two threads that both load application resources. 1 Common Language Runtime (CLR) 2 Windows Presentation Foundation (WPF) Getting the Update The Security and Quality Rollup is available via Windows Update, Windows Server Update Services, and Microsoft Update Catalog. Microsoft Update Catalog You can get the update via the Microsoft Update Catalog. For Windows 10, NET Framework 4.8 updates are available via Windows Update, Windows Server Update Services, Microsoft Upda

Migrating RealProxy Usage to DispatchProxy

As I’ve helped customers port .NET Framework apps to .NET Core 3.1 and .NET 5, one question that has come up several times is the question of what to do about System.Runtime.Remoting.Proxies.RealProxy usage. Customers using the API are concerned because they know that remoting is not supported on .NET Core. Fortunately, the new DispatchProxy API works as an easy replacement in many cases. In this blog post, I’m going to briefly discuss how to use DispatchProxy (or Castle.Core’s DynamicProxy ) in place of RealProxy for aspect-oriented programming scenarios and what differences exist between the three proxy APIs. Despite being in the System.Runtime.Remoting namespace, in many cases, users aren’t actually doing any cross-process remoting with RealProxy . Instead, many developers use it as an easy way to implement an aspect-oriented programming (AOP) paradigm as explained in Aspect-Oriented Programming : Aspect-Oriented Programming with the RealProxy Class . The idea is that cross-