Coding Blog

Troubleshooting TF14098 permission denied while deleting a branch
Recently I encountered the error TF14098: Access Denied: User DOMAIN\user needs Checkin permission(s) for $/teamproject/folder/* while delete a TFS branch.  In this post, I want to share experience troubleshooting this issue.  I am using TFS 2015 that is hosted on permises with latest update. I am also a TFS admin with project collection administrator rights.  When I first saw this error, I was f.....
Adding Google authentication to Azure App Service web app
In this post, I want to show you how quickly you can enable Authentication using Google to web app hosted in azure app service. You can configure other authentication providers also if you wish. The documentation for this feature can be found here. First of all create a blank asp.net web app and publish it to azure. It can be any web application. For demonstration purposes I have created a .net c.....
How to read Google SpreadSheet using Sheets API v4, .Net and a Service Account
In this post, I want to show how to read google spreadsheet data using google sheets v4 apis in .net via a service account.  First of all you need an active google account and then next head to google developer console and create a project. I created a project called My Project. Next on the dashboard screen click on Enable API. On the following screen click on Google Sheets API link and Sheets A.....
Compare TFS 2015 Build definition changes
Today I discovered a feature that I felt was quite useful.  I always wanted to know what changes were made to build definition. If someone made a change to build defnition then you would want to know what changed. If you are using TFS 2015 or on Visual Studio Team Services then go to Build> Right click on Build definition and click on edit build definition. Under History, click on a build definiti.....
Azure ARM template tips and tricks
In this post, I want to share some of the things I have learnt while authoring and debugging ARM templates.  In this post I am assuming you know what Azure ARM template deployment is. If you want to learn about ARM templates then go check this article about ARM. If you have any tips then please do share in the comment section below. 1. Azure ARM Quickstart Templates If you are having issues with.....
Some thoughts on putting JavaScript, CSS, Images inside wwwroot folder
Last week, our team spent time in converting JavaScript to TypeScript and CSS to LESS and re-structuring our client side developer workflow.  In this post, I just want to focus on the wwwroot folder.  We do our web development using ASP.NET MVC and there is still lot of code in Web Forms too. We wanted to bring sanity to our growing CSS and JavaScript code as we are doing more and more client side.....
Use Get-CommandVariable to auto generate variables for a command
In this post, I want to share a silly new PowerShell command Get-CommandVariable that I wrote and it is available on github as a powershell module and you can put inside your modules folder and start using it.  “What problem this is trying to solve?” you might be thinking. You start writing a powershell script and you want to pass variables to a command.  For example, you want to create a new Azur.....
PowerShell Tip: Start-Transcript and Stop-Transcript
You are trying to write a powershell script but you don’t know all the right comands to execute and what parameters to pass.  So you write a bunch of commands, out of which many don’t work and some work. After lots of experimentation you finally find the right commands with right parameters that would work for your script. You can do Get-history to get a list of all the commands that were executed.....
Making the Setup phase of Unit testing easier with StructureMap and FakeItEasy
In this post I am going to show you how I am using StructureMap Registry along with FakeItEasy to make the setup phase of my unit tests easier.  By no means I am claim that this is how it should be done but I feel it can be done this way. If you find any issues or it could be done better please let me know in the comments below. I will be happy to correct it and respond. In this post I am assuming.....
PowerForms update – 0.3.5.3906
If you are new to PowerForms then please checkout previous posts about PowerForms here and here.  This post explains about a new update to PowerForms 0.3.5.3906 which you can download through nuget.  So let’s dive into few new features added to PowerForms. 1. Adding ListBoxFor support to PowerForms and it is similar to how you would use ComboBoxFor var form = new PowerForm(); .....

Journey Blog

I feel today
I feel sad staying away from my familyI feel sad when I read newsI feel sad when I think politicsI feel sad when someone passes awayI feel happy when I am productiveI feel happy when I read technologyI feel happy when I am on stageI feel happy when I think innovationI feel alien in a foreign landI feel alien now in my own landI feel alien with changing feelingsI feel alien in a crowdI am wild on b.....
Finishing That Run Was Tough, Emotional, Challenging and Motivating
In the last post, I wrote about preparing for Glass City Half Marathon and in this post I would like to update on how it went for me.  Quick answer: It was awesome.  When I was training for it I wasn't sure whether I will be able to do it or not, so I didn't registered for Half Marathon.  I wanted to see whether I could meet my training goals or not and then register.  Well I waited too long to re.....
Preparing for Toledo Glass City Half Marathon
New Year resolutions are tough but absolutely worth it.  Although this has been on many resolutions but now I have started taking care of my health since second week of January of 2012. It was not like I was not taking care of my health before but now I have a goal to reach. Earlier my goals didn’t materialize; this time I have something which I am shooting towards. Early in January I made a goal .....
Know Your Food And Do the Right Thing
Eating healthy is expensive, stupid, foolish, and makes no sense to a person barely making enough money to meet the ends.  Yes, eating healthy and maintaining healthy habits has a cost associated with it.  It only depends on when you want to pay for the cost and in what form.  Food that is cheap and easily available is the most tempting one.  It has hidden cost associated with it in the long run. .....
Key Networking Feature: Sharing
Networking is about creating best friends forever who will advocate for you.  Let’s revisit some aspects of your friendship and see why that works great for both.   Let’s assume you have a fictitious best friend named Chris.  Now you receive a gold medal in 400 meters running race and call Chris immediately “to share your happiest moment”.  You just shared a part of your life and made Chris a part.....
Success Factor: Showing Up
In most successful people's case it was just a matter of showing up on time.  Just show up.  Some of the famous bloggers and blogs are successful because they always showed up.  They kept shipping.  Even when they sucked at it.  I have blogged before on shipping read this "Born to ship".  If you suck at whatever you do and if you keep doing it then eventually you will realize how much you suck at .....
A Make Sure List For Every Meeting To Stay On Track
Some projects last for a long period of time and lots of meetings are conducted to get the project done.  During those meetings lots of things are discussed.  Lots of decisions are being made and responsibilities being assigned.  At the same time not everything that was important gets accomplished.  It is because other priorities took over and that one thing which was important never got done.  An.....