Making Notification Center with Redis Cache

In your web service there is a time you want to let user know that they have got comment on their post, got message, got news etc.  Like ones that I see on top right at Facebook, Twitter.  Today I want to make the same thing using Redis Cache.

In-memory cache is a good choice when it comes to frequently accessed and disposable data.  Redis Cache is even nice that they can store structure data.  For C#ers, you can define data model and just insert up and fetch from cache into the model.

Continue reading “Making Notification Center with Redis Cache”

Making Android App with Xamarin 3 – Connecting with ASP.Net Identity

Many of ASP.Net guys or girls are taking great feature of ASP.Net Identity to manage credential of their web services.  When offering same service via App, it is nice to be able to use the same credential management.

Continue on from  Making Android App with Xamarin 2 – Get InsntaceID. Now that we know how to get InsntaceID to identify the app, we will connect this ID with ASP.net Identity.

Continue reading “Making Android App with Xamarin 3 – Connecting with ASP.Net Identity”

Making Android App with Xamarin 2 – Get InsntaceID

Continue on from the previous article on Making Android App with Xamarin 1 – Splash Screen.  Let’s now make sure the device has valid credential, and if not ask user to input their login information.

Since TWC handles sensitive personal information I want to make sure the app is secured.  So there will be two way authentication to manage credential and devices.

There are two things that can happen, when they launch the app.

  1. The user is already a member, already registered via web service.
  2. The user is new want to register as a member.

If the case, user is a member, then;

First get device ID and see if it is valid to move forward.

If valid then move forward to the main Activity, if not, then get ready link that device ID and credential information.

Continue reading “Making Android App with Xamarin 2 – Get InsntaceID”

Azure Search, Deleting A Document

Here is how to delete a document in your Azure Search Index collection, using Azure Search SDK for .Net version 1.1.0

Reference: https://msdn.microsoft.com/en-us/library/azure/microsoft.azure.search.models.indexbatch.delete.aspx#M:Microsoft.Azure.Search.Models.IndexBatch.Delete(System.Collections.Generic.IEnumerable{Microsoft.Azure.Search.Models.Document})

I shall put full run through tutorial on Azure Search .. soon soon.

OData Azure Search DateTime Format

Working with Azure Search and building filter string in OData, needing to feed current date and time, you can do;

string filter = “filterfield ge ” + DateTime.Now.ToString(“yyyy-MM-dd’T’HH:mm:ss-00:00”); ;

Reference: https://msdn.microsoft.com/en-us/library/azure/dn798921.aspx

 

Agile Project

Agile project management is about

  • continuous improvement
  • scope flexibility
  • team input
  • delivering products

which are all great things when it comes to developing web services in team.  If you want to run a well managed project, read http://www.dummies.com/how-to/content/agile-project-management-for-dummies-cheat-sheet.html and follow.

On the other side of agile there is a waterfall style development.  These two models have pros and cons.  Please read, http://www.base36.com/2012/12/agile-waterfall-methodologies-a-side-by-side-comparison/.

Memo on RAID

What is RAID? RAID, abbreviation for redundant array of independent disks, is a technology to manage disk IO in multiple disks. (more accurate and detail version of definition is at Wiki (https://en.wikipedia.org/wiki/Standard_RAID_levels).

RAID has few different types and called RAID 0, 1, 2, 3, 4, 5, 6.

It’s not like I did background check on facts, but I hear, the most popular types are RAID 0 and 5 today.

RAID 0 evenly distribute data across n number disks.  It’s simple straightforward way to take advantage of adding multiple disks.  The risk, if one of the disk goes wrong, then it’s all gone.

RAID 5 distribute data across n number disks randomly, plus parity information on one of the disk, so if one of the disk is damaged, you can recover like nothing happened.

Next I will organize pros, cons, and theological speed of each RAID.

What is Azure Active Directory

What is Azure Active Director? and of course they have exact same title article covering exactly I wanted to know at https://azure.microsoft.com/en-us/documentation/articles/active-directory-whatis/.  So here is my short memo version.

Azure Active Directory is a service where you can manage things around credentials.  You can offer your app, API and other services based on credentials that you manage on Azure Active Directory.

For example, you have API service that is privately offering and want to manage accesses, you can do so through Azure Active Directory.