Showing posts from November, 2016

Exception handling - Introduction

Why do we need exception handling ?

Most computer hardware systems are capable of detecting certain run-time error conditions, such as floating-point overflow. Early programming languages were designed and implemented in such a way that the user program could neither detect nor attempt to deal with such errors. 

In these languages, the occurrence of such an error simply causes the program to be terminated and control to be transferred to the operating system. The typical operating system reaction to a run-time error is to display a diagnostic message, which may be meaningful and therefore useful, or highly cryptic. After displaying the message, the program is terminated.
 In the case of input and output operations, however, the situation is somewhat different. For example, a Fortran Read statement can intercept input errors and end-of-file conditions, both of which are detected by the input device hardware. In both cases, the Read statement can specify the label of some statement in the …

Java Beans

Introduction to Java Beans
A Java Beans is software component that has been designed to be reusable in a variety of different environments. There is no restriction on the capability of a Bean. It may perform simple function, such as checking the spelling of a document, or complex function, such as forecasting the performance of a stock portfolio. A bean may be visible to an end user. One example of this is a button on a graphical user interface. A bean may be designed to work autonomously on a user’s workstation or to work in cooperation with a set of other distributed components.  
Advantages of Java Beans ·A bean obtains all the benefits of Java’s “write once, run-anywhere” paradigm.  ·The properties, events and methods of a bean that are exposed to an application builder tool can be controlled.  ·A bean may be designed to operate correctly in different locales, which makes it useful in global markets.  ·Auxiliary software can be provided to help a person configure a bean.  ·The configurat…

How to install GIT and Atom editor

Installing Atom editor and GIT

Okay so now I'm in Windows and we're going to ahead and installthe required tools for this course.
 The first thing is we're going to need a browser. And if you want to just stick with  Internet Explorer you can, but I would highly suggest you get another browser. And for this course I highly recommend you get Google Chrome.
 Now I'm not going to go over how to install Google Chrome. I am going to assume that  you know how to install it.  I already have it pre-installed here on my machine.  
So the first thing we need to do is install the Atom editor, or whatever editor you want but  I'll show you how to install Atom. And the way you install it is to download it from "", click Download. And once it's downloaded,you can go ahead and show it in folder and double click it and it's showing us that Atom is being installed. And once it gets installed,it shows the welcome screen, we'll go ahead and close that,we don&…

Fragments in Android - Introduction

Fragments in Android
I am really excited because this topic is really interesting. Today, we are going to learn interactive android development using Fragments.
There is a lot of documentation in the Android’s official website which is irritating for a beginner. In this post I have made some adjustments so that it will be useful for you to learn easily. 
Similarly, we need to know about Fragments before we can use them in our application.
So let’s start our topic “Fragments in android”.
What is a fragment?
A fragment is a part of an activity. By this I mean that a fragment (as the name suggests a piece) is a certain part of an area in an activity.

If you are familiar with Web development, you can assume fragments as frames in HTML which are used to display different webpages in a single page. 
We can have infinite number of fragments in an activity .

A fragment has its own lifecycle and callback methods similar to an  activity (For example, onCreate(),onDestroy()........)����������������…

Convert a blog or a website into an android app

Have you ever thought of having an app for your website? Your website or blog is running great and you are happy with that. But the world is changing. Most of the netizens are now preferring mobile devices over desktops or laptops for browsing. Smartphones have changed the world. So it would be great to have a smartphone app for your blog or website so that people can easily follow you anytime .

Unlike other websites or blogs which give you a sample example of an app, in this post I am going to show you how to convert my website "" into a real android app.

All you need is a website with responsive design and Android studio to code you app. That's it and you are done!

Before starting, let us understand how can we convert a website into an app. What procedure is involved ? What are the different ways to do it?

Let us answer these questions one after the other.

Firstly, there are 2 ways of converting a website into an app.

1. Using WebView - The simple …

Introduction to Python

Introduction :
Python is a widely used high level language. It is a general purpose language which is mostly used by the developers.

Python was initially designed by Guido van Rossum in 1991 and developed by Python software foundation.

Why Python?

The programming languages which were designed before python was introduced mostly contained complex syntax which the developers found difficult to learn and deal with. For example, languages like C, C# and java contained complex syntactical structures which lead to large number of errors in a program. As a result, the programmer finds it difficult to find the errors. This reduces the code readability. On the other hand, python was developed for emphasis on code readability. It contained simple syntax which allowed programmers to easily understand and write code. The major advantage of python over other languages is that the python code can be written in fewer lines of code compared to other programming languages. Python is a strongly typed l…