For a while I have found myself writing the same bits of code for different web projects. This annoys me as it goes against the DRY principle (don’t repeat yourself). One possible solution is to write your own nuget packages. You can then add this piece of code to any project you work on. nuget.org is the public nuget...
For a while the Async and Await commands in c# have confused me. Like most things the best way to learn about something is to use it in a real world example. I am currently adding an email alert feature to a website. This is an ideal example of something that would benefit from Asynchronous programming. There is no...
I recently watched Troy Hunt’s What Every Developer Must Know about HTTPS course on Pluralsight. Its very good and really make you think about SSL certificates and how to correctly implement them. One thing in particular Troy mentions is the website SSL Labs . This website allows you to test a websites implementation...
Whenever I write a new test I have to think how best to do it. Hopefully I can summarise a few tips here to help get started. Arrange Act Assert The first thing I think about when writing a test is Arrange, Act, Assert. Arrange, Act, Assert is a pattern for writing the tests. Arrange – This gets things in order ready...
I am a fan of Azure but today I have been looking at AWS. Specifically how to upload and download files. AWS S3 stores files in Buckets. I already had an AWS S3 account setup with a Bucket. I am going to assume you have got a bucket setup and concentrate on the code to get files in and out. First step is to use nuget...
I keep hearing about Azure WebJobs but I have never used them. Time to change this. WebJobs are a feature of Azure App Service that can run a script at a specific time. In my case I would like to hit a specific url of my website at the same time every day. To the right you can see an example of the WebJobs form on the...
A while ago I blogged about promoting my blog with Buffer. At the time I made use of the nuget package BufferAPI but lets look at some improvements I can make. The BufferAPI package worked great from my console app, but when I tried to use it from a Controller in an MVC app I never got it to work. Lets look at the API...
Last week I talked about Power BI , what it is and some of the different services you can use with it. This week lets add some of that data to a simple web page. For this example I am going to add the google analytics data from this website to this page. First login to your Power BI https://app.powerbi.com/ Click the...
The term Business Intelligence (BI) refers to technologies, applications and practices for the collection, integration, analysis, and presentation of business information. The purpose of Business Intelligence is to support better business decision making. Essentially, Business Intelligence systems are data-driven...
Have you heard of the website https://haveibeenpwned.com ? Well you should have. Have I Been Pwned is a website created by security expert Troy Hunt that keeps track of data breaches and allows you to search and find ones that affect you. As I write this Troy Hunt has tracked 3,752,984,562 pwned accounts from 216 pwned...