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
The best programming blog.
Covering a wide array of programming topics.
Ubuntu find out which folders are taking most of hard disk space
If your hard disk is getting full on Ubuntu and you want to find out which folders are taking most of the hard disk space, you can use the following commands: 1. du -Sh | sort -rh | head -10 This command will list the top 10 directories consuming most of the space on your…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
Ubuntu rm: remove write-protected regular file
You can use below command to avoid pressying Y Yes every time for a write protected file while deleting all files and folders in a directory in Ubuntu: If you want to do it recursively then do this: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
Angular Specified module does not exist adding component
Error while adding any component in Angular: Let’s the anme of your module is HelloFoo and the fill name of the module is hello-foo.module then you need to use this command: instead of this: You will be able to add your component after that.More
Your global Angular CLI version is greater than your local version
Warning in Angular project: Solution is to run the below comamnd in your Angular project to sync it with the latest Angular version. Run npm i again to conform any errors. You will not recieve the Angular CLI version is greater than your local version warning now.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