Posts

Showing posts from 2013

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;           }     ...

Intro: Entity Framework

Recently I had a Job Interview asking about Entity Framework, since I don't have a background in EF I had to tell him some idea that I have about Entity Framework, I'm not coming in empty with regards to Object Relational Mapping Tools (ORM) which is what Entity Framework is. I had an experience working with DevForce Ideablade and CSLA.net back then CSLA was almost the de facto standard. So I did some research about Entity Framework to better understand the concepts and details behind it. Here are some of my research findings: You basically have three options on how to approach it: Database First Model First Code First Let's discuss each. Database First Here you have an existing database that you can use to create your models. There's an Entity Framework Menu once you install the Entity Framework Powertools. Basically you select your database from your source and it will automatically generate your entities. Model First With this approach you ar...

Var vs Dynamic what's the difference?

Here's a quick look: var dynamic Introduced in  C# 3.0 Introduced in  C# 4.0 Statically typed  – This means the type of variable declared is decided by the compiler at compile time. Dynamically typed  - This means the type of variable declared is decided by the compiler at runtime time. Need  to initialize at the time of declaration. e.g.,  var str=”I am a string”; Looking at the value assigned to the variable  str , the compiler will treat the variable  str  as string. No   need  to initialize at the time of declaration. e.g.,  dynamic str; str=”I am a string”;  //Works fine and compiles str=2;  //Works fine and compiles Errors are caught at compile time. Since the compiler knows about the type and the methods and properties of the type at the compile time itself Errors are caught at runtime Since the compiler comes to about the type and the methods and properties of the type at the run time. Visual ...

Projects and Involvement.

It's hard to recall all those projects that I've worked with so I decided to list them down in a table format which include some description and the technologies used. Name of Project Details The Memorium GreatMinds Collaboration IT Solutions. TheMemorium.com, is a website to celebrate and share story and memory of a lost love one. It uses a dynamic tool to create collage of memories in terms of symbolic images. Site Link:    www.thememorium.com Involvement:  Senior Developer Technologies:      MySQL 5 T-SQL,  Microsoft .Net Framework 4.0,  C#.Net,  ASP.net MVC 4.0 /      Razor Engine,  JavaScript / Ajax /  JQuery 1.8 /  Knockout.js, HTML5/CSS3 /      Zurb Foundation VRP Mobile Site GreatMinds Collaboration IT Solutions. The Vacation Rental People (VRP) Mobile Site is a web based application designed ...

Concordance Algorithm

Image
I was given this test before in one of my Job Interviews will not name the company. I'll show you how I tackled the problem. "Given an arbitrary text document written in English, write a program that will generate a concordance, i.e. an alphabetical list of all word occurrences, labeled with word frequencies. Bonus: label each word with the sentence numbers in which each occurrence appeared." For example, this is a concordance of the above text: a. a {2:1,1} b. all {1:1} c. alphabetical {1:1} d. an {2:1,1} e. appeared {1:2} f. arbitrary {1:1} g. bonus {1:2} h. concordance {1:1} i. document {1:1} j. each {1:2} k. english {1:1} l. frequencies {1:1} m. generate {1:1} n. given {1:1} o. i.e. {1:1} p. in {2:1,2} q. it {1:2} r. label ...