Dr. James McCaffrey of Microsoft Research uses a full project code sample and screenshots to detail how to use Python to work with self-organizing maps (SOM), which let you investigate the structure of a set of data.
- By James McCaffrey
- 01/15/2019
Here's everything you need to write code for the Session object in ASP.NET Core -- including why you can't expect to migrate your existing ASP.NET MVC application to ASP.NET MVC Core (though Peter has some suggestions on easing that pain).
If you know how to create an ASP.NET MVC View, you know a great deal about how to create pages in Blazor. But, by packaging up pages as Blazor Components, you can use (and re-use) those pages more like objects.
Central to ASP.NET Core is the collection of objects that give you access to ASP.NET Core functionality. Here's how to access it, how to add to it and an example of how to use this technology with the "difficult" cases.
Templated components expose customizable sections via parameters, and consumers then pass in their own templates for these sections that the component will use when rendering. They make it really easy to create some high-level reusable components, especially when incorporating generics.
- By Chris Sainty
- 01/03/2019
Creating a custom image classification model is challenging, but the existence of neural network libraries like Keras has made it doable. Here's how, with many code samples and a full project download.
- By James McCaffrey
- 01/02/2019
By default, tests in the new .NET Core testing framework (xUnit) are isolated. This is a good thing ... except when you need to create a single test environment that is used by multiple tests. Here's all the ways you can provide a single environment for a set of tests in xUnit.
There's a new testing framework in town. Here's how to use it.
Sometimes the easiest solution isn't the best one. Here's an architectural approach to building Blazor pages that also makes it easy to combine the worlds of JavaScript and Blazor.
Eric Vogel provides many code samples to show how to use Entity Framework Core for an ASP.NET Core MVC application.
There's a new kid in the Visual Studio testing environment, though it's only for your .NET Core projects. You don't have to use it, but here are some reasons you'll want to.
Custom sentiment analysis is hard, but neural network libraries like Keras with built-in LSTM (long, short term memory) functionality have made it feasible. Step into the Data Science Lab with Dr. McCaffrey to find out how, with full code examples.
- By James McCaffrey
- 11/15/2018
Not only can you integrate JavaScript with Blazor, that integration provides a strategy for moving your existing pages to Blazor without having to rewrite your existing JavaScript code.
If someone tells you that LINQ doesn't support subqueries ... well, they're not wrong. But they're also not entirely correct, either. With LINQ you can meet many of the goals of SQL subqueries including the ability to build complex queries out of simpler ones.
Blazor expert Chris Sainty provides hands-on code samples to explain how to handle DOM and user-defined events in Microsoft's experimental project for writing browser-based apps with C# instead of JavaScript.
- By Chris Sainty
- 10/31/2018
ASP.NET Web API and ASP.NET MVC have similar (but not identical) mechanisms that allow you to customize how your requests and responses are processed. Not surprisingly, ASP.NET Web API's implementation is both easier and more flexible than ASP.NET MVC.
You have at least two options for adding processing to multiple controllers without duplicating code in each of the Controllers.
The Data Science Doctor explains how to use the reinforcement learning branch of machine learning with the Q-learning approach, providing code on how to solve a maze problem for an easy-to-understand example.
- By James McCaffrey
- 10/19/2018
Eric Vogel shows how to create a new ASP.NET Core Web application using Visual Studio 2017.
If, in your "need for speed," you're looking to access and update your data as fast as possible, you can get to that goal by combining memory-optimized tables with compiled procs.
If screaming speed in data access is the most important thing in your life, SQL Server's durable in-memory, memory-optimized tables are your answer. They were good in SQL Server 2014 and they're even better in SQL Server 2016, 2017 and Azure.
You have a bunch of options for debugging Android applications built with Xamarin. Unfortunately, only one of them has worked well for Peter in all scenarios. Here are all your options with Peter's opinion on each and a recommendation on the best one.
If you want to call Blazor .NET code from JavaScript (or vice versa) with instantiated objects, or while passing multiple parameters, or while catching the results produced by that code, here's how to do it.
You're not a DBA but you're responsible for managing your organization's SQL Server installation. Here are some tips on what you can do to speed up all your data access.
The OpenAPI (Swagger) technology suite includes a file that describes your Web API service. Peter thinks it's the slickest tool available to ensure that clients can access your services.