Skip to main content

Posts

Showing posts with the label windows 11

Fixing "Filename too long" errors on Windows with Git

There's a moment when you clone or pull a repository on Windows and Git throws an error like this: error: unable to create file some/very/deeply/nested/path/to/a/file.ts: Filename too long Nothing wrong with your code, nothing wrong with the repo. It's Windows. Why does this happen? Windows has a default path length limitation of 260 characters (the infamous MAX_PATH ). Git operations that create files with a full path longer than that — cloning, checking out, pulling — will fail with this error. Repositories with deeply nested folder structures (think node_modules, or generated code) hit this constantly. The fix: enable long paths in Git Git has a config setting for exactly this: core.longpaths . You have two ways to set it, depending on your rights on the machine. System-wide (requires Administrator privileges): git config --system core.longpaths true User-level (no Administrator required): git config --global core.longpaths true If y...

Getting started with AI development in .NET

Getting started in the world of AI development can be a challenge. Every day new libraries, models and possibilities appear. So what is your first step and where can I find good examples on how to tackle different problems? This is where Microsoft wants to help through the AI Dev Gallery. The AI Dev Gallery is an open-source app designed to help Windows developers integrate AI capabilities within their own apps and projects. The app contains the following: Over 25 interactive samples powered by local AI models Easily explore, download, and run models from Hugging Face and GitHub The ability to view the C# source code and simply export a standalone Visual Studio project for each sample You can download the AI Dev Gallery directly or through the Windows App Store: A walkthrough Let me walk you through some of the features in the AI Dev Gallery application. After opening the app you arrive on the Home page where you have a carrousel of different use cases: ...

WSL–Getting started experience

Windows Subsystem for Linux (WSL) lets developers run a Linux environment directly on Windows, without the overhead of a traditional virtual machine or dual-boot setup. It is a very convenient way for developers to access and use a Linux environment. But although it not that difficult to get started , it can still take some time before you really understand how to use it. If you also had some trouble to get started with WSL2, or even never took a look at it before, I have some good news for you. Starting from WSL 2.4.4(Pre-release), you get a ‘Getting Started’ experience. Let me show… Getting Started experience First we need to make sure that we download and install the latest pre-release version. You can find the correct installer here . Download the msi file and run the installer. After the installation has completed, open the freshly installed WSL Settings app:   The WSL settings app gives you easy access to a lot of the options that can be configured w...