Posts

Showing posts from 2013

Entity Framework: IQueryable vs. IEnumerable

Found a great post on this, with example .. Entity Framework: IQueryable vs. IEnumerable Many of us sometimes get confused of different aspects of using  IEnumerable < T >  and  IQueryable < T >  in Entity Framework. One of considered opinions is that Entity Framework and  DbContext  and deffered execution just do all the magic and there is no difference. ... But even though LINQ query result remains basically the same, it may significantly impact  the query performance. http://ivanitskyi.blogspot.ca/2013/04/entity-framework-iqueryable-vs-ienumerable.html Hope it is helpful for the team. Cheers Kam

Baseless merge!

Baseless merge in TFS ? or a Baseless Question? :-) A colleague came over wondering for what someone asked him to do - and that is to merge two branches. I believe, the tool allows you to do that however, I wouldn't recommend it simply because it is a sort of sibling-sibling merge rather than (what it is intended for) parent-child merge. Reference to support my perspective ... How do I merge two branches? To perform a merge, you can use the merge functionality in Source Control Explorer, or you can use the  merge  command-line tool. You can merge based on changeset, label, date, or version. You might find that your branching structure becomes deeper than one level. If this happens, keep in mind that it is only possible to merge one level at a time. For example, consider the following source tree structure: Development  – Container for isolation development branches. Feature A Source Feature B Source Main  – Main integration build branch Source Ot

How do you sort worksheets in Excel 2010?

Image
Interestingly enough, Microsoft Excel does not have an inherent functionality of sorting data sheets. I was working on something that required to segregate data across multiple worksheets and in no time had come up with several data sheets on the same workbook. I had to find a better way of organizing them and the first thing I needed was an ability to sort my worksheets ... However, there is always a way to find a workaround to it .. and to be honest, I do not find that difficult to apply - this post is about the same. and there I have it my worksheets, sorted ... Basically, you will have to run the macro in VB Editor and run that under a module. Do remember that unless you <save as..> as your workbook as type .xlsm, the macro will not be part of the spreadsheet and in which case you will have to revisit the steps to run the macro again. Reference:  http://support.microsoft.com/kb/812386

K A N B A N

Image
I've been thinking of writing about Kanban for a while and then I happened to read this fantastic blog site which describes pretty much everything that I'd like to share/put up on this site .. why bother typing, eh? Reference:   kanban What is Kanban?

Top 5 TDD Mistakes

While digging into some material related to Telerik's controls, I happened to stumble upon an interesting article by Bradley Braithwaite .. I couldn't agree any more for what Bradley has listed the top 5 mistakes people make in context to the Test Driven Development (TDD) 1. Not using a Mocking Framework 2. Too Much Test Setup 3. Asserting Too Many Elements 4. Writing Tests Retrospectively 5. Testing Too Much Code Navigate here   top5-TDD-mistakes   to dig in more ..

Reverse The Gear

Image
Something triggered this evening and prompted me to write up this post .. and the first thing it came to my mind, what are two difficult things the Driving License folks ask before handing you over for the G/G2 license .. and they are a. Reverse the Car (of course, the car has to be backed up properly between the two yellow lines) b. Parallel Parking -- Park this topic for now, some day we will talk about Parallel Programming Alright, so why the heck I am even talking about it.. well, like I mentioned earlier, something prompted me to ponder over writing up a Reverse routine that must not use a temporary array .. well, sure we can use a temporary variable to (temporarily) store a node value -- and then some one (from my kind of background) may say, well, I don't want to use any temporary variable, whatsoever ..  The following are the two quick code snippets that I believe should work for now :-) Snippet 1: Reverse Method (NOT using temporary Array) Note: Th

Be cautious! Name your WCF operation contract right

..  and attach a distinct and  meaningful name. When publishing metadata for a service that exposes two different service contracts in which each contain an operation of the same name an exception is thrown.  For example, if you have a service that exposes a service contract called ICarService that has an operation Get(Car c) and the same service exposes a service contract called IBookService that has an operation Get(Book b) , an exception is thrown or an error message is displayed when generating the service's metadata.  To remedy this issue you may want to consider one of the following approach: Rename one of the operations. I'd suggest give them some meaningful name, any way (such as GetCar(Car car) and GetBook(Book book) ) Set the operation Name to a different name Set one of the operations' Namespaces to a different namespace using the Namespace property Reference :  Metadata Architecture Overview

What's up with 2013 in context to 1987?

Image
2013 is the year with distinct numbers (digits) since 1987.. and 1987 was the year when I was out of high-school into the exciting world of pursuing higher education at universities. 1987-1990 : B.S. (Statistics) 1990-1993 : M.S. (Computers) a great snapshot of the MSU at evening time

India Becoming - A portrait of life in Modern India

Image
During the holiday break, the last couple of weeks, I read up a book that resonates so well with my personal observations about the transformation happening in Modern India, these days. This blog, being about a perspective, I couldn't not mention about it. A very brilliantly written and a must read for people interested in understanding various transformation a life juxtaposes while the country is going through some serious, drastic changes - cultures which have flourished over not years, but centuries ... amazon.com URL for the book