Angular Single Page Application – TODOs

By | October 8, 2020

This post is going to walkthrough things to be considered when making design decisions on an Angular SPA application. Application Structure The application should be structured according to the recommendations from the official Angular documentation (https://angular.io/docs). We also want to have additional recommendations from NGRX documentation (https://ngrx.io/docs) for application structure. It is recommended to divide… Read More »

Angular Best Practices/Review Checklist

By | October 8, 2020

Analysis and Design activities Decide on UI structure, if the new feature creates a module. Decide on components to be built by category of presentational or container components. Decide on redux state activities to be performed Decide on redux actions, reducers, effects.  Coding rules Any additional npm package, utility or pattern to be implemented must… Read More »

How I enabled HTTPS

By | October 8, 2020

Last year, I upgraded this website to run on HTTPS. I obtained a free SSL certificate from sslforfree.com. Although it was upgraded to run on HTTPS, not all traffic was running on HTTPS. Running a website on HTTPS didn’t change non-secure access to contents such as images, stylesheets, etc. These files loaded over HTTP leading… Read More »

ES6 deep dive

By | October 8, 2020

ES6 Introduction JavaScript is an implementation of the ECMA script. The link to the full specification can be found at https://www.ecma-international.org/ecma-262/6.0. I will try to highlight some features that will help developers write cleaner JavaScript code. As we all know JavaScript has been there for years, I remember working on JavaScript in the year 2000,… Read More »

RSS feed in AngularJS

By | October 8, 2020

  Introduction This post provide details on how to read RSS feed in an AngularJS application. Web Application The AngularJs web application structure was initially generated using Yeoman scaffolding. It was modified to adhere some of the best practices. The structural changes brought modifications in grunt file for getting right dependencies and files generated when published. This… Read More »

limitTo filter for HTML in Angularjs

By | October 8, 2020

limitTo in Angularjs I have been using Angular 1.x for sometime. limitTo filter allows you to truncate a given input. limtTo takes a numeric parameter that defines, what length of input string you want to keep when this filter is applied. The limitTo however doesn’t work properly when you have a HTML embedded with in the string.… Read More »

Upload image to ASP.NET Web API 2

By | October 8, 2020

Introduction This post will provide detail on uploading image from a web application (ASP.NET MVC5 web application) to a web service (ASP.NET WebAPI2). We will use Visual Studio 2012 (.NET framework 4.5) to build web application and web service. Web Application Web application is written using Microsoft ASP.NET MVC5 and Razor views. The below given… Read More »

Snippet – Palindrome using C#

By | October 27, 2015

Old simple Palindrome using C# This is just a code snippet for creating a palindrome program. Please find code below. Project Structure This is a console application built using VS 2012. IDataType Interface Integer Palindrome Implements IDataType interface. String Palindrome Implements IDataType interface PalindromeFactory class Returns right type of object depending on data type.Example StringPalindrome… Read More »