Using the brightness() CSS Filter to generically highlight Content
July 28, 2024
- Maui, Hawaii
Filters are not new in CSS, but their often overlooked for providing some useful generic behaviors for things like hover styling or nice background effects. In this post I discuss how to use the brightness() filter to create a generic button hover behavior and also briefly discuss the newish `backdrop-filter` property.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
4 comments
July 25, 2024
- Maui, Hawaii
I still use Web Site projects frequently for purely static Web sites that don't require a proper build process where 'DevOps' of any kind is overkill. Invariably when using Web site projects though, I end up requiring that 1 or 2 files are excluded on publishing and every time I do I spent a while trying to find the information how to do that in the `.pubxml` file. Well no more - I'm writing it down this time.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
July 12, 2024
- Maui, Hawaii
When building ASP.NET Core backends for SPA applications one thing that you have to worry about is how to handle client side routes that end up being fired against the server through external or reloaded links. While ASp.NET Core has built-in support for this if you build a generic Web server, you might need a little more control on how to handle the Fallback routing functionality. Here's how.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
5 comments
July 10, 2024
- Maui, Hawaii
In this short post I'll discuss a small Console helper class I've been using to make it easier and more consistent to use colors with the .NET Console command. The .NET Console support colors easily enough, but switching colors and resetting them can be a bit tedious, so these helpers make working with color a bit easier.
Read more...
Mirror your iOS Device Screen on Windows with the free 5KPlayer
June 26, 2024
- Maui, Hawaii
Apple doesn't exactly make it easy to use iOS devices on Windows and one complication is how you can cast your iOS device to a Windows screen. This is useful for presentations or screen captures that I often do and in the past i've gone through a number of shady tools that have come and gone. Recently ran into 5KPlayer which is a nice video player that as a bonus acts as an AirPlay server and makes short work of casting iOS content to Windows
Read more...
Using Angular's Live Reload Web Server to Refresh Pages on a Phone
2 comments
June 23, 2024
- Maui, Hawaii
Live Reload is now common for client side application development and it has become ubiquitous for Web development. But setting up Live Reload to work on a phone is not quite so obvious. In this post I'll walk you through what you need to do to get Live Reload to work on a mobile device for more productive on-device execution.
Read more...
Adding Additional Mime Mappings to the Static File Provider
June 12, 2024
- Maui, Hawaii
If you're using the Static File Provider in ASP.NET Core you might need to add some additional extensions that are not handled by default. For example, if you host a Blazor site in your own application an additional mime mapping for `.dll` is required. Here how you can map extra extensions to the Static File middleware.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
May 28, 2024
- Maui, Hawaii
WebSockets in ASP.NET Core are easy to use but due to the simple model it's easy to forget that socket requests are long lived and can linger for a long time in the background and that can cause problems when an application needs to shut down cleanly. Luckily there's an `IHostApplicationLifetime` interface available that allows hooking shutdown operations and that provides the necessary cancellation tokens to allow an WebSocket connection to be terminated in response to a shutdown event. This post shows how this works.
Read more...
Fixing Adsense Injecting 'height: auto !important' into scrolled Containers
May 25, 2024
- Maui, Hawaii
Ran into a weird issue today with AdSense in one of my older Web sites. I noticed that the site was not using the custom scrolling in containers that I've been using for years. Turns out Google's AdSense on this page is injecting some extra styling that changes the scroll behavior - and the way the entire page works. Here's what the problem is and how you can work around it.
Read more...
Using WSL to Launch Several Bash Commands from an Application
2 comments
May 19, 2024
- Maui, Hawaii
Struggled today with launching WSL from a Windows application to automate an external build process. Turns out this was a lot harder than it should have been due to some quirks on how the `wsl.exe` and `bash.exe` are registered by the Windows Sub System for Linux.
Read more...
Static Constructor Failures and Declaration Order
3 comments
May 04, 2024
- Maui, Hawaii
I ran into an ugly problem today with an application where nested static constructors where not doing the expected thing - failing to provide a value when one should be available. It turns out the issue has to do with constructor calls nesting and the order in which auto-initialized values are assigned.
Read more...
Missing Sharing Tab in Windows Explorer and Sharing with PowerShell
April 13, 2024
- Maui, Hawaii
On several of my machines I've found that the 'Sharing Tab' in Explore had gone missing and I've been unable to create a share through the Windows UI. Apparently some update or software installed mucked with my settings that created an explicit exclusion to disable this Shell Addin. In this post I describe how to fix this problem and then offer several solutions: Fixing the UI problem and maybe more usefully show how you can use Powershell to share a folder or drive instead of the Windows UI.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
1 comment
April 06, 2024
- Maui, Hawaii
The Windows Forms designer sometimes feels very dumb - one of those times is when dealing with nested properties on a control which by default is not displayed as an expandable property that you can just dig into. Instead you have to do a bit of busy work using a TypeConverter to make it possible to create an expandable property in the designer. Here's how.
Read more...
Content Injection with Response Rewriting in ASP.NET Core 3.x
March 29, 2024
- Maui, Hawaii
If you're creating middleware components you might need at some point to inject content in the existing HTTP output stream in ASP.NET Core. In this post I discuss how to intercept Response output by using a customized stream, modify the data and update the final output generated, effectively providing response filtering.
Read more...
Back to Basics: Rewriting a URL in ASP.NET Core
9 comments
March 13, 2024
- Maui, Hawaii
Sometimes in an application you need to take over the routing process with some custom processing that acts on an incoming URL and actually has to go to another URL. This can be a simple relinking task from old content to new, or it can be more complex where you access a specific URL on the public site that actually needs to be processed by another URL altogether.
Read more...
Troubleshooting Windows Sleep Insomnia
7 comments
March 02, 2024
- Maui, Hawaii
Windows long has had problems making machines stay in Sleep mode. In this post I describe some of the problems and likely solution by using `powercfg.exe` to hunt down and disable devices that can wake the computer from sleep.
Read more...
Working with IWebHostEnvironment and IHostingEnvironment in dual targeted ASP.NET Core Projects
p站搭梯子加速软件
February 26, 2024
- Maui, Hawaii
In ASP.NET Core 3.x Microsoft introduced a new `IWebHostEnvironment` to replace the obsoleted `IHostingEnvironment`. While that works for top level applications this can cause some complications for multi-targeted libraries that need to support both .NET Core 2.x and 3.x. This post describes the problems and offers a few workarounds.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
5 comments
February 24, 2024
- Maui, Hawaii
ASP.NET Core's default API handlers return an HTTP 204 response for null value results. This is meant to be a convenience feature, but if your calling API depends on a proper JSON response or an HTTP 200 result code, it can cause applications to break. In this post I'll describe why this can be a problem and how you can return proper JSON results for null values.
Read more...
软件下载_更快更安全的软件下载中心_多特软件站:2021-6-15 · 多特软件站是国内更快的软件下载平台,国内更安全的软件下载中心。安全下载,从多特软件站开始,多特软件站只提供绿色、无毒、无插件、无木马的纯绿色软件下载站。
11 comments
February 10, 2024
- Maui, Hawaii
Ever have a problem not being able to delete a file or folder because the filename is invalid? You see it in Explorer, but you can't delete or move the file? Well I just ran into this issue and after some digging figured out that you use extended path syntax `\\?\` to get around some interesting naming and sizing issue with Windows path operations.
Read more...
ASP.NET Core IIS InProcess Hosting Issue in .NET Core 3.1
14 comments
January 14, 2024
- Maui, Hawaii
Ran into a nasty little issue with a hosted ASP.NET Core 3.1 application where InProcess hosting was not working. It turns out I hit a regression bug in 3.1 that causes InProcess hosting to fail if there are certain dependencies.
Read more...
A HighlightJs Copy Code Badge Component
December 30, 2024
- Maui, Hawaii
In this post I describe a small, very specialized addon component for the HighlightJs Syntax highlighter that displays a badge that lets you copy the code snippet and displays the syntax language. The post covers how to use this simple component, and a look behind the scenes on how it works.
Read more...
VSIX Installer Extension Manifest and Visual Studio Version Numbers
4 comments
December 18, 2024
- Maui, Hawaii
Ran into a problem with updating a Visual Studio extension today where the VSIX installer first failed to install for the latest version of Visual Studio and then failed to enable the option to install for that same version. Turns out it was related to incorrectly specifying the right version number for VS 2024 and in this post I show how to use the correct (and somewhat unexpected) version syntax.
能上p站的梯子2021
Creating Angular Synchronous and Asynchronous Validators for Template Validation
1 comment
November 18, 2024
- Maui, Hawaii
Validations are a key feature of any business application and in Angular there's an infrastructure for building validators built in. A number of existing validators provide the basics but if you have custom business logic to process for validation you'll need to create custom Validators. In this post I describe how to create both sync and asycn Angular Validators for use in declarative forms.
Read more...
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
November 14, 2024
- Maui, Hawaii
Ran into issues today with Windows Authentication and FireFox in a ASP.NET Core application where auth was working with all browsers **except** for FireFox. Firefox would just throw up endless sequences of login dialogs or in some cases just show the default ASP.NET Core 'UnAuthenticated' dialog. Here's what this looks like and how to work around it.
能上p站的梯子2021
原子加速器官网3.2旧版-暴雪vp永久免费加速器下载官网
5 comments
November 05, 2024
- Maui, Hawaii
I've been working on some tools that create generic, standalone Web servers using ASP.NET Core, in various configurations. One of the versions I'm building also supports Razor Pages and while genericallly hosting Razor Pages out of a locally run folder, there are some complications that arise out of dynamic runtime compilation. In this post I look at how to dynamically load assemblies at runtime.
Read more...