Introduction to Django – Part 2

In my previous post I wrote briefly about web frameworks and Django. In this post I will give brief introduction about different IDE to develop Django application. In the Introduction to Django series I will use Visual Studio IDE for development purpose. But I will try not use to use features or code which are purely related to Visual Studio, so that if you want to use any other IDE to run the code you can easily do that.

Read more ›

Tagged with: , , ,

Introduction to Django

Django is a web framework written in Paython. It’s free and open source web framework, used for rapid development. The Django project website defines Django as

“Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.”

Before start exploring about the Django, lets get an idea of what is web framework. Because most of the people compare Django with WordPress or tools like WordPress. Which is not correct?

Read more ›

Tagged with: , ,

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 ›

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 ›

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 ›

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 ›

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 ›

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 ›

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

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 ›

Tagged with: , , , ,