The best programming blog.

Covering a wide array of programming topics.

PyTorch ModuleNotFoundError: No module named torch

Error while building PyTorch project: The solution is to install torch package. Run the below command in the terminal pointing to your project: Output will be like this from the terminal: Build the project again and the issue will be fixed.More

Update all Nuget packages in Visual Studio on Mac

Download the Visual Studio for MAC if you don’t have. Open the solution in Visual Studio. Right click the root of your solution and select Update Nuget Packages It will prompt for few confirmations. Accept them and all your Nuget packages will be updated in one go.More

Delete Azure Devops agent cache to clear disk space on Ubuntu

If your disk on Ubuntu is getting full due to large cache of Azure Devops agent cache then you can run the following command to delete the cache from there: Above “./azure-pipelines-agent” is the path where Azure Devops agent was installed on Ubuntu. Replace it with your installed location to clear the disk space with…More

CSS specific query for Android and iOS

You can use the following CSS rules to differentiate between iOS and other devices. CSS rule: @supports not (-webkit-touch-callout: none) { /* This CSS rules will be applied for other than iOS devices, can be used for Android. */} @supports (-webkit-touch-callout: none) { /* This CSS rules will be applied for iOS devices */} Remember…More

How to add a new target in Xcode

A target in Xcode stands for the thing you want to create, such as an app or a framework. In order to add a new target to your existing project in Xcode follow the below-mentioned steps to add a new target in Xcode to your existing project. In Xcode, launch your project. In the Project…More

Xcode Error build: Build input file cannot be found

Error while building SwiftUI project: The solution is to go to Finder and manually drag that file (which is giving the error) into the desired folder and then the Xcode will prompt a message to add that file reference in the project. Build the prject again and the issue will be fixed.More