Using TensorFlow from a .NET Core application

My CodeProject article on how to productionize a deep learning model using a .NET Core application.


My book on Neural Networks is now available on Amazon

This book reflects my journey of learning neural networks. In this book I have presented the basic linear algebra behind the multi layer perceptrons. Your feed back is welcome.



Azure function v1 runtime- C# Queue trigger – Step by step

You want to develop a C# component which when deployed as an Azure function can handle messages from a Azure queue and carry out some custom task, without having to poll the queue.  You have ample documentation on MSDN. However, I discovered that the devil is in the details. The Cloud promises to solve your infrastructure scalability issues but there is learning curve which is not very widely talked. As it happens with AWS and Azure, there is no single best approach. You can always use a continuous job inside an Azure Web App which will poll the queue.

Read more of this post

C# Performance – Lessons I have learnt

My current work involves working with PDF documents. I deal with processing text elements and vector graphics in a PDF and make sense out of it through various machine learning models. I am using C# for most part of my coding. Over the course of my work I had to deal with very large lists and collections and carry out intensive graphical analysis. This taught me some very valuable lessons with regards to improving the runtime performance. I take this opportunity to share those experiences with the hope that this may help somebody.

Read more of this post

.NET Core Unit tests – how to deploy files without using DeploymentItem ?

MSTEST provides the DeploymentItem attribute which will instruct the test engine to copy over the files that you need. The DeploymentItem approach to handling of data files has been deprecated by XUNIT. Even if you are using MSTEST, I found DeploymentItem problematic with a large corpus of data files. So what is the alternative?

Read more of this post

Using Visual Studio.NET to develop custom HTML5/AJAX User Intefaces over SharePoint


Example of a bespoke application built with SharePoint as a backend

Read more of this post

SharePoint 2013 JavaScript CSOM without referencing out of box master page.

I was looking for a way to avoid the bloat that comes when you reference a SharePoint master page.  If you are developing bespoke user interfaces using HTML5/AJAX approach and you want to keep your pages as light as possible then you might find this approach useful. A hello world example of invoking Client Side Object Model is presented below. Tested on SharePoint 2013. This is a bare bones sample which will display the title of the current site and fetch a collection of all lists in the current web.

Read more of this post

PowerShell cmdlets that work with SharePoint over HTTP


Working with large banks in the past few years has made me realize that managing large Site collections can be simplified if there is some scripting support. Obviously, the Farm admin has all the tools at his/her disposal. But, what about the power user who is managing a large site collection. With this problem in mind I started developing some PowerShell cmdlets which would interact with SharePoint using the out of box web services.

Read more of this post

SharePoint 2007 – Breathing life into a large document repository with a ‘skin’ created using AJAX/HTML5

Think of a very large site collection with over 1000 document libraries created over several years and spanning 150 sub sites. I work for an Investment Bank which is facing such a scenario. Due to strict information security regulations access to every sub-site and document library is controlled through dedicated security groups. While there is not a shred of doubt that SharePoint deserves credit in this implementation, it was my observation that system had grown so large that users were often spending too much time trying to find content. In simple terms – there were too many clicks involved in getting to a document library. SharePoint 2013 has been rolled out in the bank, however there is far too much that has been invested in SharePoint 2007 and migration is far more complicated that it appears in writing. It was not just migration of content but also the need for solving the challenge I just described.

Read more of this post

Using jQuery draggable to implement a splitter


If you are developing a HTML based interface you might have come across the need for splitting the user interface either horizontally or vertically using a thin divider could be dragged using the mouse.

Thanks to jQuery Draggable component it is fairly simple.


Example of splitter

Example of splitter

Read more of this post