Deploying .NET Web API to Azure with Terraform and GitHub Actions

This project demonstrates how to deploy a .NET Web API application to Microsoft Azure using Terraform for infrastructure provisioning and GitHub Actions for CI/CD, providing an end-to-end example setup. https://github.com/kaajoj/iac-azure-dotnet-api-deploy

.NET MAUI – app to add expenses quickly

I recently created an application in .NET MAUI that is now available for download. I made it for myself to be able to add costs in a very fast way. I will probably add some functionalities, improve the appearance and possible bugs. Feel free to use. Link to Google Play: https://play.google.com/store/apps/details?id=com.companyname.fastcost Screenshots: Some short vids:

.NET MAUI – fix ‘failed processing manifest’ AndroidManifest.xml

The .NET MAUI application. I had the following errors when launch the application: Error APT2067: failed processing manifest. 0 Error APT2260: resource mipmap/appicon (aka com.companyname.fastcost:mipmap/appicon) not found. This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file. 0 Error APT2260: resource mipmap/appicon_roundContinue reading “.NET MAUI – fix ‘failed processing manifest’ AndroidManifest.xml”

Using the OpenAI API in a C# console application

Repo: https://github.com/kaajoj/OpenAIApp To run it, you need to provide your own API key. Sample code with request to generate new image: https://github.com/kaajoj/OpenAIApp/blob/cc1881a985365683c90484e9cb2dca7c1361b810/OpenAIApp/OpenAI.cs#L52 Sample results of image generation: Big dogs flying a plane to Mars Dogs like top gun

Truffle test – ReferenceError: accounts is not defined

When you run command ‘truffle test’ and get error:“ReferenceError: accounts is not defined” To fix this, use below code line:contract(“Contract”, async (accounts) => {} and put test code between brackets e.g.:

Truffle test – network error

truffle(ganache)> truffle testError: You must specify a network_id in your ‘ganache’ configuration in order to use this network. Go to config file: truffle-config.js -> uncomment ‘development’ section in ‘networks’. Change port if you have a different one in Ganache, e.g. modfiy from 8545 to 7545. Save file -> back to console -> run command: ‘truffleContinue reading “Truffle test – network error”

Create new ERC20 token – smart contract

Sample smart contract to create your own token: The same code, but with a hard-coded name, symbol and initial supply: Sources:https://docs.openzeppelin.com/contracts/4.x/erc20https://solidity-by-example.org/app/erc20/https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol