You can install wordpress by using FTP, but sometimes it’s much quicker to do it server site. Basic linux knowledge is needed!. First SSH into the server. Create a database and database user Connect to mysql with mysql -u root -p and specify the root password. You’re now in the mysql prompt (with mysql > infront).Create a database CREATE DATABASE new_database_name; (replace the...
A really nice way to improve performance in any web application is to using caching. This is also true for dotnet core. The Cache-aside pattern is a best described as. Let’s check the cache if we got the required result, if we got this item cached return that. If we don’t have it in cache, get it from the data store and save it for next time. In dotnet core you can use both Microsoft...
This is part of my JSON Web Token series. This time to show you how to create your own JWTs in dotnet core. Small note, creating your own token server isn’t something I would recommend! If you need your own token (identity/login/openid connect) server, have a look at Identity Server and the Identity server with Asp.net Identity quickstart.
Sometimes you just need a X509Certificate2 in your C# code. For authenticating to an external webservice for instance.
This will show you how to create such a certificate right from your C# code. By the way you’ll need the Bouncy castle or Bouncy castle core library
This page is created with the help of this page
I just found a really cool article about using deployment gates in VSTS, that use Azure functions to check Github issues.
Visual studio geeks – Check it out
If you’re creating a new Angular2 application, you definitely want to use the Angular2 CLI. It help you setup a new Angular application. It has a build-in development server and it will generate Components for you. This means less typing (isn’t that always better?).
I’ve found a few nice articles to get you started with Angular 2 and .NET core. Normally it would be somewhat of a hassle to get started, but this should provide you with some working samples. Fast track your Angular 2 and .NET Core Angular 2 and .NET Core – your first component Angular 2 and .NET Core – route directly to your components This is a series of posts by Jon Hilton and uses the...
Allowing users of your website to include a video into a message, can be done in two ways.
You instruct all the users to go to the video page, find the embed code, let them upload html to your website and displaying the raw html to all users.
You tell them to paste the link to the youtube page, and your website generates the embed code right from that link.
You’re building a new application, and you’re using Entity Framework Code First. Probably all your entities need an Id and CreatedAt/UpdatedAt property.
The sample below shows you how to define these properties in a base class, and (more importantly) how to set them correctly on every save, without setting them manually on every place where you’re changing things.