Category Archives: Software Development
A Few Great Ways to Consume RESTful API in C#
https://www.codeproject.com/Articles/1190592/A-Few-Great-Ways-to-Consume-RESTful-API-in-Csharp
Build a .NET Core and SQL Database web app in Azure App Service on Linux
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-dotnetcore-sqldb-app
Steps to securing and managing your VMs in production with Azure
Virtual machine migration to Azure: Step-by-step guide for migrating from VMware to Azure
Combining a key and certificate into a .pfx file
If you want to use SSL with your site in Azure you need to have a .pfx file.
We Apache you most likely have a certificate and a private key. I am using certificate from Letsencrypt.
Using openssl you can generate the .pfx file like this:
openssl pkcs12 -export -out /tmp/certificate.pfx -inkey /etc/letsencrypt/live/yourdomain.tld/privkey.pem -in /etc/letsencrypt/live/yourdomain.tld/cert.pem -certfile /etc/letsencrypt/live/yourdomain.tld/chain.pem
Replace yourdomain.tld with your actual domain name.
You will be asked for a password to protect the .pfx file
How to Build a Chat Bot Using Azure Bot Service and Train It with LUIS
https://blogs.msdn.microsoft.com/uk_faculty_connection/2017/09/08/how-to-build-a-chat-bot-using-azure-bot-service-and-train-it-with-luis/
Export git with version history
http://stackoverflow.com/questions/11879287/export-git-with-version-history
How to install .Net Core on Ubuntu 16.04
Add the dotnet apt-get feed
In order to install .NET Core on Ubuntu, you need to first set up the apt-get feed that hosts the package you need.
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 sudo apt-get update
Install .NET Core SDK
Before you start, please remove any previous versions of .NET Core from your system by using this script.
sudo apt-get install dotnet-dev-1.0.0-preview2-003121
Initialize some code
Let’s initialize a sample Hello World application!
mkdir hwapp cd hwapp dotnet new
Run the app
The first command will restore the packages specified in the project.json file, and the second command will run the actual sample:
dotnet restore dotnet run
And you’re ready!
You now have .NET core running on your machine!
Source: .Net Core on Ubuntu
Speeding up database access
This is a very thorough article on ways to speed up a SQL database by Matt Perdeck