Quantcast
Channel: Scott Hanselman's Blog
Browsing all 1148 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

How to detect if the User's OS prefers dark mode and change your site with...

I got a tweet from Stevö John who said he found my existing light theme for my blog to be jarring as he lives in Dark Mode. I had never really thought about it before, but once he said it, it was...

View Article


Image may be NSFW.
Clik here to view.

Implicit Usings in .NET 6

".NET 6 introduces implicit namespace support for C# projects. To reduce the amount of using directives boilerplate in .NET C# project templates, namespaces are implicitly included by utilizing the...

View Article


Image may be NSFW.
Clik here to view.

The code worked differently when the moon was full

I love a good bug, especially ones that are initially hard to explain but then turn into forehead slapping moments - of course! There's a bug over on Github called Hysteresis effect on threadpool...

View Article

Image may be NSFW.
Clik here to view.

How to make Shared Google Calendars show up on your iPhone and iPad Calendar

My niece just started her MBA at a local university and that uni is a G Suite/Google/Gmail user. Her professors share their class calendars (vs inviting the students to events) so everything is a...

View Article

Image may be NSFW.
Clik here to view.

Differences between Hashtable vs Dictonary vs ConcurrentDictionary vs...

I'm very much enjoying David Fowler's tweets, and since he doesn't have a blog, I will continue to share and expand on his wisdom so that it might reach a larger audience. He had a conversation with...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core Diagnostic Scenarios

David and friends has a great repository filled with examples of "broken patterns" in ASP.NET Core applications. It's a fantastic learning resource with both markdown and code that covers a number of...

View Article

Image may be NSFW.
Clik here to view.

Shrink your WSL2 Virtual Disks and Docker Images and Reclaim Disk Space

Docker Desktop for Windows uses SSL to manage all your images and container files and keeps them in a private virtual hard drive (VHDX) called ext4.vhdx. It's usually in...

View Article

Image may be NSFW.
Clik here to view.

Dotnet could not execute because the application was not found or a...

I ran into this interesting issue where my System PATH environment variables got out of order. I ran "dotnet --version" and saw an error I'd not seen before. Dotnet "Could not execute because the...

View Article


Image may be NSFW.
Clik here to view.

Space Cadet Pinball for Windows 95 recompiled for Linux running on Windows 11...

Award for longest blog post title ever? Andrey Muzychenko has a great github repository where they decompiled the 25 year old Space Cadet Pinball application from Windows 95/XP and then recompiled it...

View Article


Image may be NSFW.
Clik here to view.

Parallel.ForEachAsync in .NET 6

Great tweet from Oleg Kyrylchuk (follow him!) showing how cool Parallel.ForEachAsync is in .NET 6. It's new! Let's look at this clean bit of code in .NET 6 that calls the public GitHub API and...

View Article

Image may be NSFW.
Clik here to view.

How to fix Base System Device Driver issue in Windows 10 and Windows 11

I had a hard drive die recently so I decided to do a full fresh reinstall of Windows, this time a fresh Windows 11 from a downloaded ISO burned to a USB stick. It was a solid install and everything...

View Article

Image may be NSFW.
Clik here to view.

How to set the default user for a WSL distro that has been manually installed...

I've blogged before on how to easily move WSL distributions between Windows 10 machines with import and export. I recently did a full fresh install of Windows 11 and wanted to bring my existing highly...

View Article

Image may be NSFW.
Clik here to view.

WSL2 can now mount Linux ext4 disks directly

If you're on a version of Windows 11 that is build 22000 or greater, you can now use WSL to mount Linux disks directly. Run winver to see your Windows version. I'm on 22000.282 as of the time of this...

View Article


Image may be NSFW.
Clik here to view.

PowerShell 7.2.0 - Could not load type...

My PowerShell upgraded to the new PowerShell 7.2.0 and it happened automatically since I get PowerShell from the Windows Store. However, my fancy prompt use PSReadLine with Predictive Autocomplete...

View Article

Image may be NSFW.
Clik here to view.

Let's upgrade my main site and podcast to .NET 6 LTS

.NET 6 is released and it's a LTS release which means it'll be fully and actively supported for the next 3 years. If you've been paused waiting for the right time to upgrade to .NET 6, it's a good time...

View Article


Image may be NSFW.
Clik here to view.

DotNetConf 2021 - .NET Everywhere - Windows, Linux, and Beyond

.NET 6 is released and it's a LTS release which means it'll be fully and actively supported for the next 3 years. If you've been paused waiting for the right time to upgrade to .NET 6, it's a good time...

View Article

Image may be NSFW.
Clik here to view.

.NET 6 Hot Reload and "Refused to connect to ws: because it violates the...

If you're excited about Hot Reload like me AND you also want an "A" grade from SecurityHeaders.com (really, go try this now) then you will learn very quickly about Content-Security-Policy headers. You...

View Article


Image may be NSFW.
Clik here to view.

Upgrading a 20 year old University Project to .NET 6 with...

I wrote a Tiny Virtual Operating System for a 300-level OS class in C# for college back in 2001 (?) and later moved it to VB.NET in 2002. This is all pre-.NET Core, and on early .NET 1.1 or 2.0 on...

View Article

Image may be NSFW.
Clik here to view.

A Nightscout Segment for OhMyPosh shows my realtime Blood Sugar readings in...

I've talked about how I love a nice pretty prompt in my Windows Terminal and made videos showing in detail how to do it. I've also worked with my buddy TooTallNate to put my real-time blood sugar into...

View Article

Image may be NSFW.
Clik here to view.

JavaScript and TypeScript Projects with React, Angular, or Vue in Visual...

I was reading Gabby's blog post about the new TypeScript/JavaScript project experience in Visual Studio 2022. You should read the docs on JavaScript and TypeScript in Visual Studio 2022. If you're used...

View Article
Browsing all 1148 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>