Friday, 12 September 2014

TOP Free and Paid APIs to kickstart your job board web application

Start your Job Board online website application with these free and pay per query APIs.

What is Free and Paid API?

           Free API are 100% free of cost. You don't have to pay nothing for these API calls. But Paid API are provided as pay per usage basis. for example, if you make 10 API calls then you will be charged some dollar as fee.Don't Worry most of Jobs APIs are almost come with free of cost. So you can Go ahead without any worry.

How to use these APIs?

      These APIs can be called in two ways,
  • Normal HTTP calls. 
  • SOAP webservice
And you can get results of these API calls in either JSON format or XML. Finally you can use in your applications easily.

Here is the list of  TOP Free and Paid APIs


Tuesday, 2 September 2014

Ruby on Rails tutorial with Blog application with database and CRUD

Creating a new Rails app:


after successful Rails installation in a machine do the below steps:

1. Open command prompt and type:

$ rails new my_app_name

2. Move to the current application directory:

$ cd my_app_name

3. Next Start web server as below:

$ rails server

4. Open your browser and goto:


Blog Application with Database and CRUD operations

Usage Specficiations:

– Blog is a discussion or information site published on the Web.

We will have two types of users
         –  The blog administrator and 
         – Blog users.

The blog administrator able to enter new posts.

Users able to visit the blog site, and enter comments for postings.

– The blog administrator can modify/remove any post or comment.

– Finally users should not be able to modify postings or other users’ comments.

Before we move on Please have a look at below videos:

Blog Application tutorial – Initial Steps to do

Our First step is to create the rails application as mentioned below: 

$ rails new blog  

Next, use the scaffold generator to create the MVC components needed for posts and comments: 

 $ rails generate scaffold post title:string \ body:text $ rails generate scaffold comment post_id:integer \ body:text

Now, create the database tables for post and comment using: 

$ rake db:migrate

If you type: 

$ rake routes a list of all the URLs currently recognized by your application will be provided.

At this stage all necessary files (model, view and controller) are generated successfully. But You didn't write even a single line of code. Framework done all the works for you.  

 Start the web server: 

$ rails server and point your browser to: http://localhost:3000

That's it. Your first blog application powered by ruby on rails is created.

What is next?
           We have just created a new application with basic design. Further more we need to work on design and validation part.

Where to work on validation and Design?
         Design works can be done at view files and Validation can be done at Model and controller files.

Thursday, 17 April 2014

Yii Framework Tutorial Set 2


       Before reading this post you must read my previous post Yii Framework Tutorial Set 1. Its been a long time i am writing this post, because i was busy with my Yii projects. In the previous post you have successfully installed Yii framework application. You can check it at this below url:

If everything is Ok, it will be like this.
You can change the contents of this home page at
protected/views/site/index.php .
in the same way you can edit about us page at
contact us page at
log in page at
and finally error page at


           In default, The application name will be "My Web Application". You can change this to your preferred name at protected/config/main.php . You have to change the 'name' parameter in array. In the same file you have to change Database details also. In default, DB connection is connected to SQLITE database. So, you must change the DB Details also.


        Do you confused by thinking from where this layout came? The main layout files for yii framework is in  protected/views/layouts/ .
at this layouts folder you can see three different files as below.
  • main.php
  • column1.php
  • column2.php
It means in default we have two different layout at present (You can also add layout files and modify these two files based on you view). As the name suggests the difference between these two layout is first one is single column and second is double column with sidebar. Where does the layout file is selected?      The layout for particular page or view can be selected in their respective controller file. For instance, in controllers/sitecontroller.php we have variable $layout. In this variable we have to specify either column1 or column2 (note: don't use column1.php and column2.php, Yii will point this automatically. In the same way at any situation in you want to include any file don't use php extension).


         When you open these layout files, index.php, contact.php all html elements will use blueprint css framework. I prefer you to go through this blueprint css at their official website for your reference i will give you one example:
          To design a DIV with 590px you can specify class name as span-15. 
So, you don't need to write your own css for each and every html elements. Once again i am asking you to read about blueprint css framework to design your application effectively.