Posts

Projects and Involvement : Update

Name of Project Details CMI Utilities Cognizant Technology Solutions CMI Utilities are small utilities developed for the CMI Production Support Team. -           Batch Job Monitoring Tool -           Error Analysis and Job Status Report Generator -           ORC Server Information Extractor -           Control Sheets File Generator. Role: Developer/ Production Support Technologies:     Microsoft C#.Net, .Net Framework 4.5, Microsoft Setup and Deployment Package,     SQL Server 2008. Shell Lube Bay Rewards GreatMinds Collaboration IT Solutions Inc. An Android mobile application used by Shell customers for earning and claiming rewards. Role: Project  Lead Technologies:  ...

Learning Android Development with Android Studio.

Started doing android development using Android Studio so far I'm now comfortable using android studio IDE, able to use the shorcut keys but still trying to get the hang of using VIM emulator (they say its good), I've gain understanding of what an activity, fragment, service provider is, as well as the controls such such as layout, spinner and others. Here is my Stack: Android Studio Gradle Butterknife Retrofit. So far, I've completed one project on my own and the other one as a joint project with an expert android dev.

XML to ExpandoObject using Recursion in C#

Here's how to convert XML to an ExpandoObject using recursion. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 public static dynamic ToExpando ( this XDocument document) { return CreateExpando (document.Root); } private static dynamic CreateExpando (XElement element) { var result = new ExpandoObject() as IDictionary< string , object >; if (element.Elements().Any(x => x.HasElements)) { var list = new List<ExpandoObject>(); result.Add(element.Name.ToString(), list); foreach ( var childElement in element.Elements()) { list.Add(CreateExpando(childElement)); } } else { foreach ( var leafElement in element.Elements()) { result.Add(leafElement.Name.ToString(), leafElement.Value); } } return result; } Happy Coding!

Successfully Migrated and Deployed FilGlobal Site to Windows Azure.

http://filglobal.azurewebsites.net/

MVC in a nutshell

Trying to explain MVC in a very simple way. How do we tell people about MVC, for none technical person or to just someone interviewing you for a job? I did some research to further strengthen my knowledge in MVC. Here's how. So what is MVC? MVC stands for  Model - View - Controller , okay hmm.. doesn't make sense yet. Let's define each. Model -  model is all about data and nothing else. View -  view is simply our presentation layer, what users sees on the front end. Controller -  this is where the magic happens it contains the logic or actions being called by the view. So what's the advantage of using MVC? *Advantages of MVC Model Enable clean separation of concerns (SoC) . Enable full control over the rendered HTML. Enable Test Driven Development (TDD) (built with TDD in mind). SEO and REST friendly URL. Easy integration with JavaScript frameworks. Support third-party view engines such as NVelocity, Brail, NHaml. No ViewState and Post...

Lazy <T> what it does.

It's a new feature of .Net Framework 4.5 According to MSDN: Use an instance of Lazy to defer the creation of a large or resource-intensive object or the execution of a resource-intensive task, particularly when such creation or execution might not occur during the lifetime of the program . So what does this exactly  mean?

ASP.Net Web API [FromBody] parameter is not being Mapped.

I was creating a Web API for TheMemorium project. Description: This Web API exposes the search functionality of  The Memorium.com.  I was having an issue with mapping the [FromBody] keyword from the data json data that I have in the Ajax call. Here's the code on the API Controller:  // POST api/obituary public List Post([FromBody]string keyword, int pageNo, int Not) {       List result = new List ();       int total = 0;       if (!string.IsNullOrWhiteSpace(model.SearchValue))       {  result = ObituaryService.SearchObituary( keyword ,  pageNo , Not);          if (model.Not > 0)          {           result = result.Where(x => x.MemorialId != model.Not).ToList ();                     total = total - 1;           }     ...