Skip to main content

Posts

Showing posts from 2011

WebMatrix-The Swiss Army knife from Microsoft

  What’s more in store for Web developers, ASP.Net 4.5(with full support for HTML 5 , CSS 3 amd Javascript) and to complement it, is the new awesome tool-WebMatrix. WebMatrix combines five products in one, letting you install, develop, optimize, deploy and manage your sites and databases. With support for the latest web standards like HTML5 & CSS3, multiple frameworks like ASP.NET & PHP, and multiple database engines like MySQL & SQL Server ..and what’s even better…it FREE!! ! ( Download Webmatrix ). To learn more about webmatrix, I recomment the following video. WebMatrix-An intro The tools promises a lot and I have already downloaded a copy and started playing with it. Hope the information  here is useful. Till next we connect…. Happy Learning.

.Net Framework 4.5 –What’s New

Net framework 4.5 promises a lot in terms of User Experience, Code Performance and many other aspects of programming. Let’s explore what .Net Framework 4.5 has to offer and who else can explain it better than the guys who actually made it. .Net Framework 4.5-What’s New Additionally. if you are interested in going through Kernel level details, this video below is what you are looking for. Explore .Net Framework 4.0 kernel details Hope this was useful…. Till next we connect….. Happy Learning…..

ASP.NET 4.5-What's New

.Net Framework 4.5 is here and with this comes the new ASP.Net vNext(C'mon simply ASP.Net 4.5) If you are interested in finding out what's new or how it is going to affect(benefit or give you nightmares with your existing code),click on the link below to explore it. ASP.Net 4.5-Documentation ASP.Net 4.5 with HTML 5, CSS3 and Javascrip t Besides this great tool, there are many enhancements that  I am sure you are going to like, by  watching this video. Create Rich, Data driven web apps using ASP.Net  4.5 WebForms Hope the information is useful, Till Next we connect..... Happy Learning.

MVVM and MVP pattern(s) as applicable to SilverLight

There could be more to these design patterns and its applicability in SilverLight, however this article is only intended to present and overview and high-level understanding of how to get started in SilverLight application patterns. SilverLight implements SOLID design guidelines along with a MVVM or MVP design pattern. Figure shown below  depicts the comparison of approaches followed in MVVM and MVP pattern. MVVM pattern can follow two approaches 1.        View First:  The view is responsible for creating an instance of a ViewModel, via databinding to a static resource or setting the data context in the code-behind file. Databinding approach UserControl.Resources local:SampleViewModel x:Key=” ViewModel ” / UserControl.Resources                 Grid DataContext=”{Binding Path= Object , Grid is bound to object that is obviously in Model. Code Behind approach   this.DataContext = new SampleViewModel(); 2.        View-Model first: The ViewModel creates an instance of the v

SOLID principles -Code Samples and Free Ebook

I planned to write code samples for SOLID principle implementations, however I am a firm believer of " NOT RE-INVENTING THE WHEEL ", when all you need is use the wheels and make a new CAR. Going by the ideology, I have found an excellent  SOLID principles FREE -Ebook ( covering all aspects of SOLID design principles, with Code sample). This book is an excellent visual aid to remember these principles, as it uses Motivational posters for explaining SOLID design principles. One additional advantage to the above mentioned book is the Code-Refactoring ebook . Both of these books can be downloaded from this EBOOK download Link Both of these books can be downloaded form here. Hope this book proves useful... Till next we connect.... Happy Learning..

SOLID- Design Principles

The SOLID Principles of programming are a set of rules which when followed during designing and developing an object oriented application, will reap the following benefits. Loosely Coupled Application   Easily Extensible application Highly manageable code for maintenance SOLID is an acronym that can be expanded as Below: (I’ll first  get into theoretical aspect of it and then clarify it via code) S: Single Responsibility Principle   A class should do only one thing . Logically speaking Separation of Concern and separation of responsibility is what we need to differentiate. This principle talks about responsibility not concern. “My responsibility as a developer is to meet deadline and code as per the standards, if the client is not happy, that is none of my concerns ( isn't  it soothing…..)” .Same goes with class, it should be doing only one thing at a time, if multiple responsibilities are entrusted to it(imagine you doing job of a co-coordinator, developer, designer, t

Windows Phone 7-My first App

I am kind of excited to install Windows phone SDK and developing my first Windows Phone App.( Simple Hello World-although I typed my name). I started of by downloading SDK, installing it and giving it a shot. One important point about the SDK is the fact that it contains Microsoft Expression Blend 4, that is installed as a part of the SDK along with the Windows Phone Emulator. However, WindowsphoneGeek  can be a good resource to start with and what's even better is that they are providing a Free -E book. I think this is too vague of a post, however I am too excited to think about it currently. Till next we connect... Happy Reading.... .

HTML-5 Let's get started

Want to see html 5 in action, before actually diving into it, here's your chance. Go to this LINK and see the wonderful features that HTML-5 has to offer. Feeling overwhelmed, feel like getting hands dirty with this new kid on the block? Here's how to get started Hope this was useful.... Till next we connect.... Happy reading.....

PRISM-Video Series

Although I plan to write my own articles about  the topic, however this time I am in  some sort of hurry to get started with development, so i am relying on Microsoft resources to get me(and of-course you) started. PRSM, as you will find across the web, is nothing more than guidelines for developing modular applications(Component based appications). This in simple terms, means creating loosely coupled applications that follow SOLID principles laid down in Microsoft patterns and practices book. PRISM relies on  Unity framework (downloadable from codeplex ). Details about the installation and sample code, quickstarts are a part of the download. Briefly , PRISM (via UNITY) requires the code to have the following Components and their Co-ordinated efforts results in Modular application 1. Bootstrapper 2. Shell 3. Regions 4. Modules 5. Views This Simple diagram depicts how they interact with each-other or rather how they should actaully interact. in the diagram IOC = Inversi

Dependency Injection(DI) Inversion of Control(IOC) and IOC Framewoks

Dependency Injection To understand DI better, lets  develop a hypothetical   role based application where the rendered view for the user depends upon the ROLE the user possesses. In a typical ASP.Net Application(c’mon I have  been asp.net developer for 6+ years…will take some time ),membership services will do the trick or if the developer is enthusiast enough, he/she will write some custom classes. In either of the scenarios, the Code Behind file will render view depending upon the role. Let’s say there are 4 views (AdminView, DeveloperView, Manager View, SupervisorView). If I develop a pseudocode  for administering admin user view, it wil be something like the following If (userRole==Admin)RenderView= AdminView To get into some details, it’s the code-behind(or rather say controller) that decides which view to render. How about the Views being intelligent enough, to know which controller (class/objects) to call and give the required results. This is where comes the Dependency Inj

SilverLight 4.0 -An Introduction

Finally there is Light...The SilverLight that i  never provided much of my attention.Major reason ..I was under the illusion that it's an alternative for Flash, and Flash programming never fascinated me. However as it's said it's never too late to learn  any technology, I am going to start with Silverlight and will concentrate web developer aspect of it.(No stand alone apps..or rather OOB (out-of-Browser) as it is called in Silverlight world.) I am starting the series with an introduction to Silverlight.Here I'll cover Silverlight as a technoogy, its architecture, it's building blocks and some pros and cons of the technology. Pre-Requisites for Learning Silverlight 1. XAML(e X tended A pplication M arkup L anguage).Start Learning here SilverLight-Programming Model The Silverlight exposes API that defines its set of objects as object trees that enable  the user to populate the initial content of a Silverlight-based application by loading XAML, and then ad

Send Meeting Request to Outlook 2007 and Update Calendar

Today, I encountered a very interesting issue of sending the updating the User Outlook calendar with an Event(remember one of those project status meeting mails that PM sends and I bet you HATE it). One of the Alternatives is to use ICAL dll to send get the work done. This aricle details out, how this is done. However, I prefer to use the .net provided feature for implementing this functionality. When I talk of Microsoft, I am talking about using the Miscosoft.Office.Interop.Outlook dll (obtained by adding reference to the project from COM tab in Visual studio.)  Once that reference thing is done, the Code demonstrated below is used to send a mail and the recipients’’ calendar is automatically updated for the event.   As the code itself is heavily commented, I am not diving into any details here. In case of any further clarifications, you are always free to write to me. Hope it was Helpful, Till Next we Connect……………………. Happy Coding.

ASP.Net MVC –Understanding Controllers

Controllers   MVC controllers are responsible for responding to requests made against an ASP.NET MVC website. Each browser request is mapped to a particular controller.   A controller is a class that derives from the base System.Web.Mvc.Controller class. Because a controller inherits from this base class, a controller inherits several useful methods .The following doe depicts a controller      Figure-1   Understanding Controller Actions   A controller exposes controller actions. An action is a method on a controller that gets called when a particular URL is entered in the browser address bar.   For e.g. consider the following URL   http://localhost/TestController/Index/3   In the above example, Index () method is called on the TestController class. The Index () method is an example of a controller action.   Following are the considerations that need to be made while writing controller actions.   • A controller action must be a public method of a controller class.

WCF VS Other Distributed Communications Technologies

Today, after such a long time, I got to get back to one of my favourite topics, the WCF. There is a need for justification to select WCF over other exising communication technologies, for one of the requirements. After a lot of RnD, the link here provides the proof , why WCF is the BEST. Hope it proves useful.... Till next we connect..... Happy learning.

Interview Queations-A Quick Recap

Today one of my friends, got his first blog entry published. I find it cool enough to get started and it can come up as an excellent reource for quick review of concepts prior to interview. Here is the link. Quick Review Hope this is helpful! Till next we Connect........ Happy Learning.

Authentication using Social Networking portals(Facebook, Gmail, and Yahoo)

There are tons of sites, which offer sign on using the social networking site credentials (Facebook, gtalk, twitter and the list continues).It can be termed a “SINGLE SIGNON” and offers a lot of benefits compared to traditional database authentication approach. However, not storing user credentials in the DB imposes an additional risk. How to track who all logged into the system. Now the question is, which approach to follow. The best approach is to use inbuilt asp.net users for storing the logging info about user activities and using single signon technique for authentication. This article will explore the approach and provide the details of implementation using some third party libraries and customizing it to the requirements. The Authentication will be done using the following networking portals Yahoo  Gmail Facebook    Special thanks to my friend Sumit Khandelwal, for implementation of Facebook part (in fact he did it all!!) Except Facebook, all other can be authentic

Code Samples-All Advaced concepts

While searching for  ThreadPool customization in asp.net, I came across an excellent link that discusses almost all the  the high level .net concepts and good part ;the author is kind enough to share all his work. Here is the  Link . I bet you'll thank the author for his contribution(s). Till next we connect.... Happy learning

Microsoft word to PDF/HTML Converter

Developing a content management System, I came across this requirement where the uploaded word docs needs to be converted to PDF at server, saved and later on be available for display on the browser. This is a clean approach as the content of the pages can change once in a while and there’s no point in making the content static and then reinventing the wheel when the content changes. The application uploads the word documents to the server, which are saved as PDF and become a part of the dynamic menu that contains the link if the document has been uploaded to the server. Now whenever the content of the uploaded files changes, the changed files can be uploaded to the server again and the modified content is available to the user. One of the pre-requisites for this functionality to work is the availability of save-as pdf template to be available in MS-Word 2007. If it is not available, it can be downloaded from here . I’ll not go into creation of dynamic menu and all other stu

Microsoft Outlook 2007-Add-in/Plug-in Development

Recently there was a requirement for Outlook plug-in development at place where I work and I grabbed this opportunity to write a detailed article about the basics of the outlook development and develop a demo application. The development is almost similar to the normal development except some additional outlook classes that we need to know for the development. The core of the development is the form regions that come in a variety, as depicted below. Types of Form Regions There are four types of form regions: • Adjoining. Adjoining form regions display in addition to a standard or custom form. They appear in a special region at the bottom of the Inspector window or Reading Pane. • Replacement. Replacement form regions replace the default form of an item with the replacement form region. You can only use replacement and replace-all form regions with custom message classes. • Replace-all . Similar to the replacement form region, except that a replace-all form regio