C# POST Request.Form — Chanmingman’s Blog

This article shows you how to POST to a legacy system that using Request.Form to read the POST data. When you click the link at the bottom on this article then you will get the code simulate to the one below. public static void PostData() {     // Create a request using a URL that can […]

C# POST Request.Form — Chanmingman’s Blog

Blazor WebAssembly Rest Client

ChristianFindlay.com

Blazor is Microsoft’s latest Single Page Application (SPA) framework, which is C# based and renders to the browser HTML DOM. Blazor comes in two flavors: server-side and client-side rendering. This article focuses on client-side rendering and explains how to use RestClient.Net to make calls to a RESTful API. Blazor WebAssembly uses C# compiled for WebAssembly (Wasm).

Blazor lets you build interactive web UIs using C# instead of JavaScript. Blazor apps are composed of reusable web UI components implemented using C#, HTML, and CSS. Both client and server code is written in C#, allowing you to share code and libraries.

https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor

If you haven’t heard of Blazor yet, now would be a good time to start doing some research. Front-end development has been primarily dominated by JavaScript and related technologies like TypeScript for a long time. C# developers often need to switch between JavaScript and C#, even though working in a…

View original post 478 more words

It’s here! Trackable Entities for EF Core!

Tony Sneed's Blog

The idea behind my open source Trackable Entities project is quite simple: track changes to an object graph as you update, add and remove items, then send those changes to a back end service where they can be saved in a single transaction.  It’s an important thing to be able to do, because it’s difficult to wrap multiple round trips in a single transaction without holding locks for a long time.  On the other hand, you could break up related operations into multiple transactions, but then you lose the benefit of atomicity, which enables you to roll back all the changes in a transaction should one of them fail.

To get started with Trackable Entities for Entity Framework Core, download the NuGet package and check out the project repository.  You can also clone the sample applications and follow the instructions.

View original post 1,320 more words

ReSharper: Using [NotNull] to generate better code

If you’re a ReSharper user I think this can be very usefull technique in identifying bugs in your code from the very early stage

Christian Harlass's Blog

My all-time-favorite VS plugin, ReSharper, has amongst all the features one which gets hardly noticed: The Annotation Framework and it’s influence on code generation.

The Annotation Framework is a set of “hints” which can be applied to your code, either directly in form of Attributes or stored as an an external XML file (the ReSharper team was using the later method to enhance the .Net Framework libraries). The attributes, which I usually use, are NotNull and CanBeNull. There are some more but those two give you the greatest benefit.

To use them, add at first a reference to theJetBrains.Annotations.dll to your project. It can be found in the ReSharper installation folder (better add a copy to your project and SCM though).Then you can already start annotating your code, such as:

Pretty self-explaing, isn’t it? When trying to assign then null to the person’s name, ReSharper will give…

View original post 86 more words

Phantom 4 Advanced

Drone Users Anonymous - Feeding the drone addiction

Just two days ago I bought myself Phantom 4 Advanced. I debated within myself whether I needed all the features of Phantom 4 Pro and decided that the extra pair of anti collision sensors plus the ability to use 5.8Ghz spectrum wasn’t worth it. I noticed in all the screenshot from Phantom 4 Pro that everyone still uses 2.4GHz. 5.8GHz is designed to be used in built up areas. Due to the fact that the whole area where I live use the same ISP, which provides 5.8Ghz routers as standard it wouldn’t have helped me. Out in the open you would still want to use 2.4GHz as it provides a superior range. In the end the deciding factor was the deal that I managed to get on eBay – I got a brand new Phantom 4 Advanced for a mere £700. How and why would someone want to sell a…

View original post 624 more words

A morning with new Phantom 4 Advanced

Got up at 3am yesterday to take the new drone for a spin. Went to a lake, canal, mountain drawing, windmill and a hill.

Had a really close call first thing in the morning when the drone went into the brunches of a tree. No way did I think it would be able to survive that and I thought it would plummet into the canal under the tree. To my surprise the drone came unscathed! No propeller damage, just dirt from the tree. Phew! Great job DJI!

Again the collision avoidance just made things worse! It is now permanently turned off.

The parabolic reflectors seem to decrease the range rather than increase it, so they are going to the bin.

Positives: managed to clock about 2 hours of flight. Phantom 4 Advanced seems to get along very well with Phantom 4 Ver 2 propellers and I’m averaging 29-30 minutes of flight time with 10% to spear!

Got a lot of great footage, which needs to be cut, edited, colour graded etc.

Some photos from yesterday:


Still can’t believe how great the camera on the drone is. 1 inch sensor is definitely worth it. The UHD footage looks unbelievable on 4K monitor!

Blog at WordPress.com.

Up ↑