testing Faking .NET Framework ConfigurationSection for Unit Tests Many are now familiar with using typed configuration that's available in .net core and .net 5 with the help from Options pattern. However, if you are working on a projects
kubernetes Deploying GitHub packages docker image to Kubernetes GitHub had announced a major feature on their platform which is GitHub packages. As well as hosting private npm or NuGet registries, GitHub packages also includes private docker registries. If
haskell GitHub Workflow for Haskell Yesod Docker image with Stack In a previous post, I went over creating a Dockerfile for Haskell Yesod application. In this post, I will reuse part of the Dockerfile we ended up with and modify
haskell Haskell Yesod Web Application in Docker Yesod is one of the web frameworks available for Haskell. It seems to be the easiest one out of the multiple choices available to get started with. PrerequisitesDockerHaskell Stack version 2.3.1You can find all yesod stack templates available from the github repository.
mongodb Streaming MongoDB collection to S3 with dotnet core Pipelines In this article, we will be looking into a memory-efficient way of streaming data from MongoDB collection into AWS S3 File Storage using the System.IO.Pipelines introduced in .Net Standard 2.1. I will be using MongoDB version 3.6 and going to
entity-framework Entity Framework Core Elegant Database Migrations on ECS This article is insipired by the blog post Elegant Database Migrations on ECS from Adam Stepinski. The original article guides you through setting up an application thats setup with Django Framework. I am going to presribe a method with the following technologies: ASPNET Core
aws IAM policy permissions for a public load balanced ecs fargate service on AWS CDK Using AWS CDK with an admin user is all fine and straight forward. But, when it comes to creating a deployment pipeline with an IAM user specifically created with the actual permission needed, it can take a long time of trialing and failing to
javascript Defensive coding with guard assertions in Javascript Let’s take a look at a function that took a score between 1 and 100 and returned a rating out of 5. function rating(score) { return Math.ceil(score / 20); }At first glance, this function looks simple, it has made a lot of
haskell Install haskell platform on mac with homebrew The recommended way to install the components of the mac platform is using ghcup to install ghc and cabal-install. haskell.orgghcup is an installer for the general purpose language Haskell Open a terminal and execute the following command to install ghcup curl https://get-ghcup.
react Azure DevOps Create React App Pipeline The following azure pipeline yaml file works for create-react-app version 3.0.1. Install the package jest-junit for unit test code coverage results to be published. In the root of the repository, create a file called azure-pipelines.yml with the following content. trigger: -
wcf Migrating from SOAP to REST using Apigee Apigee is another option for converting your SOAP services to a RESTful API. I covered Azure API management in another blog post. I will use the same calculator SOAP service to create a SOAP to REST API proxy in Apigee. From the Apigee edge
wcf Migrating from SOAP to REST using Azure API Management If you’ve got legacy applications written in WSDL or SOAP, and you are planning to expose it as a rest endpoint, Azure API Management seems to be good option at the moment. Another option is apigee; Although, it seems to miss some of
dotnet dotnet aspnet core https certifcate not found error I came across this particular issue when my Mac’s account was changed from a domain associated account to a local user account. Among many other things, my dotnet aspnet core web api was failing to run at the start with the error that
elasticsearch Setting Up Elasticsearch Cluster on Kubernetes - Part 3 - Configuration File Part 1 - Setting up Single Node ElasticsearchPart 2 - Setting up Kibana ServicePart 3 - Kubernetes Configuration FilesNow that we have a single node elasticsearch service and kibana to monitor the cluster, lets try to capture the work so far into kubernetes configuration
elasticsearch Setting up Elasticsearch Cluster on Kubernetes - Part 2 - Kibana This is part 2 out of 3 in this series of blog posts. Part 1 - Setting up Single Node ElasticsearchPart 2 - Setting up Kibana ServicePart 3 - Kubernetes Configuration FilesSetup KibanaLet’s try to setup kibana pointing to our elasticsearch single node
elasticsearch Setting up Elasticsearch cluster on Kubernetes - Part 1 - Single Node Cluster This is the begining of a multiple part series of blog posts going through setting up Elasticsearch cluster in kubernetes. Part 1 - Setting up Single Node ElasticsearchPart 2 - Setting up Kibana ServicePart 3 - Kubernetes Configuration FilesThe main aim of this series
aws Access response headers in HTTP Fetch API with Serverless Framework and AWS Lambda In order to access response headers such as Location in HTTP Fetch api whilst using Serverless Framework and AWS Lambda Functions with CORS enabled, you need to do the following.
elasticsearch Ingesting data from Oracle DB into Elasticsearch with Logstash Alternative to Logstash was the Elasticsearch JDBC tool. Which at the time of writing was using port 9300 for transfering data. There were talks of not exposing this port externally
vsts Release Management Service and VSTS Team Build I’ve started working on a new project at my company and it is a massive project compared to anything I have done previously. We are not short on technologies in this project starting with an angular web site all the way to using
sharepoint Steps for Installing SharePoint Provider Hosted App On Premise Create SharePoint 2013 FarmCreate SharePoint site collection with development template.Upload app into “app in testing” library.Create new site using IIS on the vm where the SharePoint is installed.Assign identity for application pool for database connection string to use windows authentication.Install
azure Deploying SharePoint Provider Hosted App as part of the TFS 2013 Build Process I have been working on a SharePoint provider hosted app. In this project, we have an azure website, a database per installation of the app, and couple of web jobs. This blog is about my attempt at creating a build system which for now
webapi Adding External OData Feed with OAuth in Excel I have a web api which surfaces some odata collections using the asp.net web api v2 together with OData v3. I tried to use OData v4, but Excel ‘Add data feed’ wasn’t liking that at all. But, I wanted to have some
continuous-integration Packaging SharePoint 2013 App With TFS 2013 build If you have wondered why the tfs drop folder doesn’t contain the app.publish folder like it does when you run the command msbuild.exe /p:IsPackaging=true /p:OutputPath="D:\dev\" in your local machine, it’s because the property /p:PublishDir
migration Organizing Entity Framework Code First Migration Seed Method I recently started working on a complex ASP.NET MVC 5 Project with Entity Framework 6. This is the first time I am building an actual, to be production ready, deliverable web site on MVC. Of course, there are a lot of challenges and
sharepoint SharePoint 2013 App with Page that gets data from ASP Web Api The specific scenario I am trying to address here is when you have a page that is deployed into the SharePoint AppWeb and you are trying to access data from that AppWeb using a WebApi project for example. You might be trying to create