Generic Bubble Sort in C# .NET
-
.NET
To practice algorithms and data structures, I reimplemented bubble sort using C#'s generic type parameters.
How to create a Discord Bot using the .NET worker template and host it on Azure Container Instances
-
Azure
Learn how to develop a Discord bot using the .NET worker template, containerize it using Docker, push the container image to Azure Container Registry, and host it on Azure Container Instances.
Guest on .NET Docs Show: Making Phone Calls 📞 from Blazor WebAssembly with Twilio Voice
-
.NET
Earlier this week, the folks at the .NET Docs Show invited me over to talk about Twilio, .NET, and Blazor WebAssembly. We discussed different architectures, workflow diagrams, Twilio capabilities, and how to integrate them using ASP.NET WebAPI's and Blazor WebAssembly.
How to bypass Captchas in Selenium UI tests
-
.NET
Captchas are often used as a way to combat spam on website forms. Unfortunately, this also makes it harder to verify the functionality of the forms using UI tests like Selenium.
To work around this you can extend your website with a bypass form.
Capture emails during development using smtp4dev and UI Test with Selenium
-
.NET
You can use smtp4dev during development to prevent emails from going out to real customers. This tool also supports IMAP which you can use to query emails for automated testing.
Create ZIP files on HTTP request without intermediate files using ASP.NET MVC Framework
-
.NET
The ZipArchive wraps any stream to read, create, and update ZIP archives. You can send the result to the client using ASP.NET MVC Framework.
How to deploy Blazor WebAssembly to DigitalOcean App Platform
-
.NET
Blazor WebAssembly can be served as static files. These files can be hosted in static hosting services such as DigitalOcean App Platform.
Don't use HttpContext.Current, especially when using async
-
.NET
Avoid using HttpContext.Current if possible, especially in asynchronous code. Use the properties provided on the Page or Controller instead and pass them on to the asynchronous code.
Create ZIP files on HTTP request without intermediate files using ASP.NET Core MVC, Razor Pages, and endpoints
-
.NET
The ZipArchive wraps any stream to read, create, and update ZIP archives. You can send the result to the client using ASP.NET MVC, Razor Pages, and endpoints.
How to deploy Blazor WebAssembly to Cloudflare Pages
-
.NET
Blazor WebAssembly can be served as static files. These files can be hosted in static hosting services such as Cloudflare Pages.
Download the right ChromeDriver version & keep it up to date on Windows/Linux/macOS using C# .NET
-
.NET
Chrome frequently updates automatically causing ChromeDriver versions to mismatch. Using C# .NET you can download the correct version of the ChromeDriver and keep it up-to-date.
Better Authentication with Twilio API Keys
-
.NET
API Keys are now the preferred way to authenticate with Twilio's API. You can create as many API Keys as you need and remove them if they are compromised or no longer used.
How to deploy Blazor WebAssembly to Heroku
-
.NET
Heroku doesn't officially offer a static hosting service but does have an experimental 'buildpack' which gives you static hosting capabilities you can use to deploy and host Blazor WebAssembly.
How to deploy Blazor WebAssembly to AWS Amplify
-
.NET
Blazor WebAssembly can be served as static files. These files can be hosted in static hosting services such as AWS Amplify.
Download the right ChromeDriver version & keep it up to date on Windows/Linux/macOS using PowerShell
-
PowerShell
Chrome frequently updates automatically causing ChromeDriver versions to mismatch. Using PowerShell you can download the correct version of the ChromeDriver and keep it up-to-date.
Use project Tye to host Blazor WASM and ASP.NET Web API on a single origin to avoid CORS
-
.NET
Using Microsoft's experimental Project Tye, you configured the proxy to forward requests to '/api' to the Web API, and all other requests to the Blazor WASM client.
How to deploy Blazor WebAssembly to Netlify
-
.NET
Now that you can run .NET web applications without server-side code, you can deploy these applications to various static site hosts, such as Netlify.
Run Custom Availability Tests using PowerShell and Azure Application Insights, even on-premises
-
Azure
The built-in availability tests in Azure Application Insights are great but very basic. You can create your own custom availability test. Learn how to create a custom availability test using PowerShell and Application Insight's .NET SDK.
Use YARP to host client and API server on a single origin to avoid CORS
-
.NET
Using Microsoft's new reverse proxy "YARP", you configured the proxy to forward requests to '/api' to the Web API, and all other requests to the Blazor WASM client.
Video: How to deploy Blazor WebAssembly to Firebase Hosting
-
.NET
With ASP.NET Blazor WebAssembly you can create .NET applications that run completely inside of the browser. The output of a Blazor WASM project are all static files. You can deploy these applications to various static site hosts like Firebase Hosting.