Meetup – Dev/Test Labs in Azure

Meetup – Dev/Test Labs in Azure

Attend a meetup on 5th July 2017 on “Dev/Test Labs in Azure” presented  by Brendan Ross –  Microsoft Cloud Consultant Main points of meetup – You can create a container in azure for testing web application. Pretty much everything from new pre installed windows machines, with various application like microsoft sql as well placing the web application on different […]

Read More

“No Access-Control-Allow-Origin” Error – Cors Plugin

I have been developing a reactjs application that calls a spotify-api that return some information on music artist. I got this error “No Access-Control-Allow-Origin Error” as below After doing some research I found out that Javascript is limited when making ajax / fetch requests outside of the current domain. Ex 1: your domain is example.com and you […]

Read More

Design Patterns – Software development

Design patterns are reusable solution that solve software design. The 23 Gang of Four (GoF) patterns are generally considered the foundation for all other patterns. They are categorized in three groups: Creational, Structural, and Behavioral – Reference links – http://www.dofactory.com/net/design-patterns Creational Patterns   Abstract Factory Creates an instance of several families of classes   Builder Separates object […]

Read More

Meetup – Intro to Reactjs

When to a meetup on reactjs this was hosted at  – Xero, Level 1, The Textile Centre on 5th of July 2017. Meet up with some new friends and learnt some new things about react. Below are some photos of the meetup.   Slides – This was taken by jishaal http://slides.com/jishaal/react-intro-react-native#/ React Docs – read it all because […]

Read More

Documentation using draw.io

One interesting and free tool that can be used for documentation of flowcharts, mockup is draw.io   It also integrates with Google.docs as extensions. You can install this by clicking the Add-Ons to install draw.io in google docs. To update just click on the Add-On, Update selected diagram.

Read More

Ninject with Windows Service

Lately, I had to develop a Window services that had to use ninject dependency injection from another project. Although I follow this blog from Martin, there were items I had to change. Step 1: After u build your windows services, import the dll from the project that contains your dependency injection file and add to the references of your window services. […]

Read More

My First Take on SignalR

Below are some of my notes and reference on SignalR Reference: https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/introduction-to-signalr What is SignalR? ASP.NET SignalR is a library for ASP.NET developers that simplifies the process of adding real-time web functionality to applications. Real-time web functionality is the ability to have server code push content to connected clients instantly as it becomes available, rather than […]

Read More

Retrieving/Activating Google Map GeoFence with Database Design

Frontend Google Map GeoFence – Drawing a circle and rectangle Reference for Google Map Documentation – https://developers.google.com/maps/documentation/javascript/reference // create map on document map Id map = new google.maps.Map(document.getElementById(‘map’), { center: { lat: defaultLocation.lat, lng: defaultLocation.lng }, zoom: defaultZoom }); marker = new google.maps.Marker({ map: map }); //add controls on map map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(mapCustomControl.locationButton()); //add circle with getBounds which contains […]

Read More

JavaScript Prototypes – Purpose and When to Use it ?

These are two important ways the prototype is used in JavaScript: Prototype Property: Prototype-based Inheritance Prototype is important in JavaScript because JavaScript does not have classical inheritance based on Classes (as most object oriented languages do), and therefore all inheritance in JavaScript is made possible through the prototype property. JavaScript has a prototype-based inheritance mechanism.Inheritance […]

Read More

S.O.L.I.D – Five Principle of Object Oriented Design

S.O.L.I.D is an acronym for the first five object-oriented design(OOD). Why? These principles, when combined together, make it easy for a programmer to develop software that are easy to maintain and extend. They also make it easy for developers to avoid code smells, easily refactor code, and are also a part of the agile or […]

Read More

Jquery/Javascript Deferred and Promise – Handling Asynchronous Execution

As of Jquery 1.5 there is a new ways of handling asynchronous execution. Firstly what is Asynchronous or Synchronous execution? It simply terms when you execute something synchronously, you wait for it to finish before moving on to another task. When you execute something asynchronously, you can move on to another task before it finishes. […]

Read More

Reflection in C# purpose

Reflection is the process by which a computer program can observe and modify its own structure and behaviour. being able to examine and change information about your application during runtime, offers huge potential read its own metadata for the purpose of finding assemblies, modules and type information at runtime By using Reflection in C#, one […]

Read More

Retrieve Polygon on a Google Map with datatype geography

To retrieve a polygon (that has a list of lat, long coordinates) on a google map with a data type of geography. The function below (C#) extract a polygon, by first converting to a string and then doing a regex to filter data that is not needed. The formatted that is return is a string, […]

Read More

AspNet Identity Owin

So lately I being playing around with AspNet Identity. Number of things I have found out that:- SignInManager was responsible for creating authentication cookie. SignInManager constructor need a UserManager ==> SignInManager(UserManager x) UserManager requires a implementation of IUserStore IUserStore uses Entity Framework User Store IUser<TKey> Using the existing SigninManager as a reference,  a IUser<TKey>. publicclassCustomUser:IUser<string>{publicstringId{get;set;}publicstringUserName{get;set;}} […]

Read More

PolyMorphism

Poly – means many , Morphism – mean form A person behaves as a mum in house while at the same time, a person behaves like an employee in the office There are two types of polymorphism. Dynamic and Static – Static: Method overloading in the same class Having more than one methods in a class […]

Read More

How to set a table field unique in SQL Management Studio

1. Right click on Table –> Design 2. Right click on particular field eg Name, click on Indexes/Key 3. Click on Add, it create default key constraint and under Columns change to table field name 4. Is Unique set to Yes

Read More

Dependency Injection (Ninject)

Definition:- Is a set of software design principles and patterns that enable us to develop loose coupled code. Loose Coupled means that class, modules and assembly have good isolation from each other. So if we need to make a change to one part of our application we only need to update the relevant module. We do […]

Read More

Kendo Scheduler with Remote Data Source

Ok so lately I been spending heaps of time try to get Kendo Scheduler working. The documentation is all over the places but one good documentation link I found that seem to be helpful is in http://docs.telerik.com/kendo-ui/api/javascript/ui So some of things I learnt trying to make Kendo Scheduler work using remote data source:- load the […]

Read More

How to document SQL Tables using SQL Management Studio

Paste this query in SQL Management Studio.  The query use the system catalog views which show the table attributes of the tables. Change the db to respective db USE [db]; SELECT OBJECT_SCHEMA_NAME(T.[object_id],DB_ID()) AS [Schema], T.[name] AS [table_name], AC.[name] AS [column_name], TY.[name] AS system_data_type, AC.[max_length], AC.[precision], AC.[scale], AC.[is_nullable], AC.[is_ansi_padded] FROM sys.[tables] AS T INNER JOIN sys.[all_columns] AC […]

Read More

Free Resources at VisualStudio – Plural Sights / Azure

  You need to have a Microsoft account As of August 2016 you can get free plural-sight resources by Sign into https://www.visualstudio.com/en-us/products/visual-studio-dev-essentials-vs.aspx Click on Benefits Activate Plural-sight documentation (3 Months Pluralsight)

Read More