Posts

Showing posts from November, 2012

HTML5 | How do you "reset" a Canvas?

Image
I'd say, it's one interesting way to reset a canvas ...

When you write code - you are not just a Developer

This morning I was reading the section Executive Bloggers  [Microsoft Developer Tools Blogs]  on Microsoft  Blogs and happened to read  Soma's Blog  - very inspirational, I must say and the way he has made it to leading the Developer Division. Further I accidentally happened to read  Jason Zander's blog  and noticed one thing that I don't see to read or hear or know these days ... About Jason Zander Hi there!  I'm the corporate vice president for the development team of Windows Azure in the Server and Tools Business at Microsoft.  I've worked on lots of products in twenty years at Microsoft with the unifying theme of building platforms and tools for developers to do great work.    I love writing code!  And I love working on a team where developing software and helping others build and deliver their own software is a core mission.  Jason I couldn't resist to share my perspective ( after all, my blog is all about perspective, any way! ) that writing

SQL Server 2012 | Sequence Feature

Sequence feature which has been in Oracle for a number of years is now available in MS SQL 2012! A Sequence object is an object that provides functionality similar to Identity (Autonumber) column. The sequence object can be used with more than one table which is not possible in identity object. This is useful when you have parent-child tables and you want to know the value of the ID column before you insert records . A sample example is as follows: Sample 1: create sequence dbsequence start with 1 increment by 5 select next value for dbsequence --output=1 select next value for dbsequence --output=6 1.1    Should you need to clean up … drop sequence dbsequence Sample 2.1: create sequence idsequence start with 1 increment by 3 create table Products_ext ( id int, Name varchar(50) ) INSERT dbo.Products_ext (Id, Name) VALUES (NEXT VALUE FOR dbo.idsequence, 'ProductItem1') INSERT dbo.Products_ext (Id, Name) VALUES (NEXT

TFS | The Power of Search

Image
This morning, a colleague of mine prompted me to find a list of changeset checked-in by a user .. I wasn't surprised to not find in either VS 2010 or VS 2012 but was little when I can't find under the TFS Power Tool plugin for Visual Studio (Team menu), however TFS Power Tool is not restricting! TFS Power Tool has this nice little nifty command tfpt searchcs Open up the Command Prompt for VS and there you go ... The tfpt searchcs brings up a popup window as below .. and you have various options to interrogate the change sets ... Happy Searching! Reference: TFS Power Tools for VS 2012 http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f TFS Power Tools for VS 2010 http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef

WCF - design a reliable, extendible and consistent data exchange between consumer and provider of services

Let me share with the community with what I've learnt and successfully implemented a generalised data response (data packet) exchanged between the consumer and the provider, in context to WCF services ..  The idea behind this concept is pretty simple! Instead of expecting a specific data type returned from the server call on its own, package that as part of a container that can facilitate not only the actual data expected by the consumer for a call to any service from the provider but additionally figure out if there were any validation/error that may have happened during that service call - all in one go!  The following is a simple implementation within the context of using ASP.Net MVC on the front-end and Entity Framework as a ORM tool (data layer) .. Step 1: PayLoad.cs (where the generic payload implementation lives)     [DataContract(Name = "PayLoadListUsing={0}")]     public class PayLoadList<TEntity>     where TEntity : class, new()     {        

Fixed it! Internet Explorer issue - IE will open up an empty tab when navigating to a hyper link from any source page

Image
The other day, I decided in the morning to put this issue to the rest. I analysed various scenarios and nailed down that the issue was concentrated to just my IE or local configuration/settings .. I like to stay with the latest stuff and thus I have IE 10 preview for Windows 7 I can tell you, the issue is/was not with the version of Internet Explorer  (I did try the fantastic F12 developer tool to play with various compatibility modes .. no luck, though!) Any way, it was my determination to nail down the issue to the bottom of it and figured out that the TFS (Team Foundation Server) plug-in for Office 2010 that I had enabled on my machine, for some reason screwed up (excuse my French!)  the registry settings .. I've a feeling that happened along with my upgrade of TFS from 2010 to 2012! Any way, if this happens to you, I'd suggest check out the registry (Run, regedit) .. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{79EAC9C5-BAF9-11CE-8C82-0