首页›发现›编程›Scott Hanselman

Scott Hanselman

RSS
访问网站
文章数10
更新频率近 8 周没有更新
最近抓取4分钟前
订阅方式RSS
订阅地址https://feeds.hanselman.com/ScottHanselman

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

Debugging my new network, when 10 Gigabit Ethernet Runs at 300 Megabits

AI 摘要While troubleshooting slow file transfers on a 10 Gigabit Ethernet home network, the author used iperf3 to rule out the NAS and storage, revealing the Windows desktop's Intel E610-XT2 NIC as the culprit, with nearly a million discarded receive packets. Increasing the adapter's receive buffers to 4096 improved receive throughput, but disabling Large Send Offload V2 (IPv4) was the key fix, boosting one-way iperf3 performance from 313 Mbit/sec to 7.03 Gbit/sec. The author cautions against blanket disabling of LSO, emphasizing that systematic measurement—removing storage variables to isolate the network layer—was the real lesson.

Migrating a Synology NAS to a UniFi UNAS Pro 8 with Robocopy, SMB Multichannel, and Surprising Performance Traps

AI 摘要The author documents migrating data from an aging Synology NAS to a new UniFi UNAS Pro 8 using Robocopy over SMB, encountering failures caused by NTFS Alternate Data Streams that were resolved with the /COPY:DATX flag to skip them. Performance tuning revealed several surprising traps: the /Z restartable flag dramatically slowed copies, multithreading (/MT) helped only modestly for many small files, and the /J unbuffered I/O flag hurt SMB-to-SMB transfers despite being recommended for large files. Finally, SMB Multichannel allowed Windows to aggregate all four 1 GbE ports on the Synology, revealing the old NAS was faster than expected—the author concludes that Robocopy switches describe behavior rather than guaranteed performance gains.

Is the craft dead?

AI 摘要Scott Hanselman reflects on whether AI-assisted coding kills the craft of software development, comparing it to earlier shifts like moving from assembler to C or the rise of copy-paste from Stack Overflow. He argues that software remains hard and that craftsmanship, good taste, and human judgment still matter—much like the difference between IKEA furniture and true woodworking. While there will be plenty of work cleaning up AI-generated 'slop,' skilled developers can achieve amazing results with AI augmentation, and the craft still exists, just no longer bound by the speed of one's fingertips.

The danger of glamourizing one shots

AI 摘要Scott Hanselman argues that AI-augmented coding shouldn't be judged by impressive 'one shots,' since prompts like 'one shot Minecraft' rely on the name itself carrying enormous semantic weight—asking for the same result without using the name is far harder. He notes that one-shotting famous games just yields the statistically average, 'mid' version of them, and that real AI-assisted development is about sculpting ambiguity into specificity while keeping systems stable through change. As programming shifts toward a 'prose compiler,' good SDLC practices, historical knowledge, and clearly specified goals with sound judgment will matter more than ever.

Automatically Signing a Windows EXE with Azure Trusted Signing, dotnet sign, and GitHub Actions

AI 摘要The author explains how they code-signed their Windows Edge Light app using Azure Trusted Signing to avoid Windows Defender SmartScreen warnings, covering account setup, identity validation, and certificate profile creation. They demonstrate signing executables locally with the dotnet sign tool and automating the process in GitHub Actions using a service principal, noting the service costs about $10/month but eliminates the hassle of hardware tokens and manual certificate renewal.

Webcam randomly pausing in OBS, Discord, and websites - LSVCam and TikTok Studio

AI 摘要The author's webcam started randomly pausing in OBS, browsers, and other apps every 90 seconds or so, and after investigating with PowerShell and JavaScript's enumerateDevices(), he discovered a mysterious virtual camera called 'LSVCam' that hung on enumeration and caused NotReadableError failures. He traced it to TikTok LIVE Studio, which installs LSVCam.dll as a poorly implemented virtual camera for its streaming feature. The fix is deleting the registry key HKEY_CLASSES_ROOT\CLSID\{860BB310-5D01-11d0-BD3B-00A0C911CE86}\Instance\LSVCam, though the key reappears each time TikTok Studio is run, so he deletes it before each stream until the bug is fixed.

Open Sourcing DOS 4

AI 摘要Microsoft, in partnership with IBM, is releasing the source code for MS-DOS 4.00 under the MIT license, ten years after open-sourcing earlier versions like MS-DOS 1.25 and 2.0. The release was spurred by researcher Connor "Starfrost" Hyde's correspondence with former Microsoft CTO Ray Ozzie, whose collection contained unreleased DOS 4.0 beta binaries, and it sheds light on the complex history connecting DOS 4, Multitasking DOS, and OS/2. Alongside the source code, Microsoft is publishing the beta binaries, documentation PDFs, and disk images, and notes it may update the release if more materials are found in its archives.

Updating to .NET 8, updating to IHostBuilder, and running Playwright Tests within NUnit headless or headed on any OS

AI 摘要The author describes upgrading his websites from early .NET versions to .NET 8, which required migrating from the obsolete IWebHostBuilder to IHostBuilder and broke his old hack for spinning up the Kestrel web server inside unit tests. He shares a WebApplicationTestBuilderFactory helper (with help from David Fowler) that starts the real web application within the NUnit test host, enabling clean Playwright browser automation tests that run headed or headless on Windows, Linux, Mac, Docker, and CI pipelines. He notes one remaining 'hack' relying on the aging MvcTesting package's manifest file to resolve the content root path, which he hopes will be fixed to make .NET 9 far more testable.

Using WSL and Let's Encrypt to create Azure App Service SSL Wildcard Certificates

AI 摘要The article walks through generating a free Let's Encrypt wildcard SSL certificate using certbot within WSL, then converting it into the password-protected, triple DES-encrypted PFX format that Azure App Service requires. The workflow involves creating the certificate in WSL, copying it to Windows, re-importing and exporting it via PowerShell to ensure the full certificate chain is included, and finally uploading it to App Service under Bring Your Own Cert. The author notes this solves the expensive wildcard domain certificate problem, though automating the process further remains a future goal.

GitHub Copilot for CLI for PowerShell

AI 摘要GitHub Next's Copilot for CLI offers shell commands (??, git?, and gh?) that translate natural language into command-line instructions, but they are designed primarily for bash. The author discovered these commands are just routers to an underlying github-copilot-cli executable and wrote PowerShell function aliases that inject 'use powershell to' into the prompt so the tool works with PowerShell instead. He shares his alias code and hopes the Copilot CLI team will add official PowerShell support.