Introduction to Python – Part 3

This is 3rd post of Introduction to Python. In my previous post, I give brief introduction about numbers and strings. In this post I will show you how to write conditions and loops.

If statements

Conditions play an important role in any programming language. Where you decide if this action happen then do this. Or if this condition is true perform this action. In python we use if statements for decisions.

Read more ›

Posted in CPython, Python, Visual Studio, Visual Studio 2013 Tagged with: , , , ,

Introduction to Python – part 2

In the previous post  of Python series, I give you a brief introduction of Python and how to create a simple program using Visual Studio 2013.  In this post I am planning to cover some basic things about how to display output, get input from the user and strings and variables.  If you are wondering how to user or create python project using Visual Studio, please refer to Introduction to Python – Part 1.

Read more ›

Posted in CPython, Python, Visual Studio 2013 Tagged with: , ,

Introduction to Python – Part1

Python, I am going to write series of blogs about Python. I will show you from scratch how to write Hello World program in Python and will take up to advance level of programming specially in web development. As I am also new Python and going to learn this language. The reason I choose to learn Python is that, it is open source, it is very well matured language, as Google is using Python.  And Python is very easy to learn. There are number of free tools available to write code and learn Python. Even Microsoft is providing support for Python in its Visual Studio. You can use Microsoft Visual Studio to create applications using Python. Before learning Python I was thinking that it’s a scripting language only. But as I start learning about Python I find out that Python is not only used for web development but also used for following development purposes as well,

  1. Desktop GUIs
  2. Scientific and Numeric
  3. Network Programming
  4. Software & Game Development

Read more ›

Posted in CPython, Python, Visual Studio 2012, Visual Studio 2013 Tagged with: , , , ,

Introduction to AngularJS – Part 1

AngularJS is one of the popular JavaScript framework nowadays.  It is an open source web development framework maintained by Google. AngularJS simplifies the development and testing of a web application. AngularJS helps you to create web applications using MVC (Model, View, Controller) pattern. AngularJS particularly deals with the problems or difficulties a developer face while creating SPA (Single Page Application). I am going to write a series of blog on AngularJS, and try to cover most part of it. I will make the things simple and use only AngularJS and bootstrap to explain the framework.

Read more ›

Posted in AngularJS, Asp.Net MVC, C#, CSS, CSS3, HTML, JavaScript, JQuery, Visual Studio 2013 Tagged with: , , , ,

AngularJS intellisense in Visual Studio 2012

I was working on a web project and using Visual Studio 2012 IDE for the development. Visual Studio is really amazing IDE. If you are comfortable with Visual Studio it will really make the development process fast. But once you get used to it specially its intellisense feature you will get irritated if  it doesn’t appear. And the same thing happen with me. I was using AngularJS for my client side development. And Visual studio 2012 will not give intellisense support for AngularJS.  In Visual Studio 2013 you will find AngularJS support.

Read more ›

Posted in AngularJS, HTML, JavaScript, Visual Studio 2012, Visual Studio 2013 Tagged with: , , , ,

Cross Origin Request in Web API

In this post, I am going to show you how to call a Web API/RestulFul service from client side using AngularJS. It looks pretty simple. But what if your Web API is hosted on a different domain. Then if you try to make a call to Web API you will get an error, a cross domain error.

The idea is, if you are working on a distributed application or due to architectural decision, you want to host your web application on a different domain, and middle layer will be on a different domain and exposed as a RestFul service. This will be a good idea, if later you want to expose your RestFul service to a vendor it will be quite handy. Nowadays AngularJS framework is very popular in developing web applications.

Read more ›

Posted in AngularJS, C#, CSS3, HTML, JavaScript, MVC4, Visual Studio, Visual Studio 2013 Tagged with: , , , , , , , , ,

Intellisense and code suggestion not working in Visual Studio 2012

I was working on Visual Studio 2012. And I find out that intellisense was not working. Code suggestions are disabled and so as method parameters. Its not working until I press ctrl + Space.

The simple solution I find out for this is to

Go to

Tools –> Options –> Text Editor –> All Languages –> General
and enable Auto List Members and Parameter Information in right hand side pane.

VS 2012 intellisense not working


Posted in Visual Studio, Visual Studio 2012 Tagged with: ,

How to dynamically load images in crystal report

In this post I will show how to display images dynamically on crystal report.  If you store images in your database in a binary format, there could be two approaches to display them on a crystal report.  One approach is to read image from database in a byte array and then write image on your hard disk and then load images from the path. The second approach is to read the image from database and directly display it on crystal report. Second approach looks better to me as there will be no IO operation. And it will be more efficient.

Let’s start the work. I don’t have a database at the moment with me. So what I will do is that I will read an image from disk and convert it into byte array and then pass it to crystal report. I hope this will not matter if we read image from database or a disk.

Read more ›

Posted in C#, Visual Studio, Visual Studio 2010, Visual Studio 2012 Tagged with: , , , ,

Custom directory to Partial Views in MVC3

In this article I will describe how to change the default directory path of Razor View Engine Partial Views.  By default in Asp.Net MVC3 when you create a partial view, Visual Studio will by default create partial view in the controller view folder.

I am working on a project and want to put all the partial views in a separate folder. To full fill this requirement I am going to create partial views in Partial folder under Views. So that my all the partial views will be in same directory. To explain how we can achieve this lets create a MVC 3 project in Visual Studio 2010. I created an Internet project. It has default home controller. So when you run the application you can see default home page.

Read more ›

Posted in Asp.Net MVC, C#, HTML, MVC3, Visual Studio, Visual Studio 2010 Tagged with: , , , ,

Read emails from Exchange Server

Today I am going to write about exchange server. Last week I was working on a project and get a challenge to read emails from a mailbox on exchange server. It’s a new thing for me to read emails from exchange server. After digging out on the web I am able to read folders from a mailbox on exchange server. I thought it’s a good thing topic and let share my findings.
First of all to read emails from Exchange server you need download the SDK provided by Microsoft. It’s freely available and you can download from the following link,

Read more ›

Posted in C#, Visual Studio, Visual Studio 2010, Visual Studio 2012 Tagged with: , , ,